From 9b97e3dd1965ec7b1d3ca31f59741382b7c95205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 27 Nov 2017 18:11:57 +0100 Subject: [PATCH] Add WebIDE UIModule --- src/app/templates/module-webide.html | 9 +++++++++ src/app/ui_modules/__init__.py | 1 + src/app/ui_modules/webide.py | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 src/app/templates/module-webide.html create mode 100644 src/app/ui_modules/webide.py diff --git a/src/app/templates/module-webide.html b/src/app/templates/module-webide.html new file mode 100644 index 0000000..bd8366d --- /dev/null +++ b/src/app/templates/module-webide.html @@ -0,0 +1,9 @@ +

WebIDE

+
+    
+         
+    
+
+ diff --git a/src/app/ui_modules/__init__.py b/src/app/ui_modules/__init__.py index f4a7c5e..4630e6c 100644 --- a/src/app/ui_modules/__init__.py +++ b/src/app/ui_modules/__init__.py @@ -1,2 +1,3 @@ from .logger import Logger from .login import Login +from .webide import WebIDE diff --git a/src/app/ui_modules/webide.py b/src/app/ui_modules/webide.py new file mode 100644 index 0000000..011c427 --- /dev/null +++ b/src/app/ui_modules/webide.py @@ -0,0 +1,6 @@ +from tornado.web import UIModule + + +class WebIDE(UIModule): + def render(self, anchor_id, *args, **kwargs): + return self.render_string('module-webide.html', anchor_id=anchor_id, **kwargs)