{% extends "layout.html" %} {% set active_page = "logview" %} {% block title %} - {{_('View Logs')}}{% endblock %} {% block body %}
{% include 'flash_messages.html' %}
{{form_log_view.hidden_tag()}}
{{form_log_view.lines(class_='form-control', type="number", value=lines)}}
{{form_log_view.search(class_='form-control', value=search)}}
{{form_log_view.log_view(class_='btn btn-primary btn-block')}}
{%- if log_output != None -%}
{%- if log_output == 404 -%} File not found: {{logfile}} {%- elif log_output == '' -%} File empty: {{logfile}} {%- else -%} Last {{lines}} lines of {{logfile}}:
{{log_output}}
{%- endif -%}
{%- endif -%}
{% endblock %}