Commit debc9172 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

controllers/admin.py, views/admin/log.html: 'raw' log format

parent 16205a0b
......@@ -57,6 +57,9 @@ def log():
file = open(defs.DIR_LOG+request.vars["file"])
log_format = request.vars['format'] if 'format' in request.vars else ''
if log_format == 'raw':
return {'raw': ''.join(file.readlines()), 'format': log_format}
if "filter" not in request.vars :
request.vars["filter"] = ""
......
......@@ -3,6 +3,14 @@
<h3></h3>
{{ if format == 'raw': }}
<div class="console-div">
<div class="console-flex">{{ =raw }}</div>
</div>
{{ else: }}
<div class="db_block">
<div class="db_block_left">
search
......@@ -43,3 +51,5 @@
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
{{ pass }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment