mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 11:52:54 +00:00 
			
		
		
		
	Add Logger UIModule
This commit is contained in:
		
							
								
								
									
										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)
 | 
			
		||||
		Reference in New Issue
	
	Block a user