mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 23:01:20 +00:00
Add Logger UIModule
This commit is contained in:
parent
f3c9a21956
commit
b96c8e4457
7
src/app/templates/module-logger.html
Normal file
7
src/app/templates/module-logger.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<h1>Logs</h1>
|
||||||
|
<p id="{{ anchor_id }}">
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<button type="button" class="btn btn-outline-primary anchor" id="{{ anchor_id }}_event">
|
||||||
|
Next
|
||||||
|
</button>
|
@ -0,0 +1 @@
|
|||||||
|
from .logger import Logger
|
6
src/app/ui_modules/logger.py
Normal file
6
src/app/ui_modules/logger.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from tornado.web import UIModule
|
||||||
|
|
||||||
|
|
||||||
|
class Logger(UIModule):
|
||||||
|
def render(self, anchor_id, *args, **kwargs):
|
||||||
|
return self.render_string('module-logger.html', anchor_id=anchor_id)
|
Loading…
Reference in New Issue
Block a user