2019-07-13 18:45:48 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div id="log_group" class="inputs">
|
2020-01-13 17:37:29 +00:00
|
|
|
{% if log_enable %}
|
2019-07-13 18:45:48 +00:00
|
|
|
<div><input type="radio" name="log_radio" id="log1" value="0" checked>
|
2020-02-03 03:22:00 +00:00
|
|
|
<label for="log1">{{_('Show Calibre-Web Log: ')}}</label>{{logfiles[0]}}</div>
|
2020-01-13 17:37:29 +00:00
|
|
|
{% else %}
|
2020-02-03 03:22:00 +00:00
|
|
|
<div><label for="log1">{{_('Calibre-Web Log: ')}}</label> {{_("Stream output, can't be displayed")}}</div>
|
2020-01-13 17:37:29 +00:00
|
|
|
{% endif %}
|
2019-07-13 18:45:48 +00:00
|
|
|
{% if accesslog_enable %}
|
2020-01-13 17:37:29 +00:00
|
|
|
<div><input type="radio" name="log_radio" id="log0" value="1" {% if not log_enable %}checked{% endif %}>
|
2020-02-03 03:22:00 +00:00
|
|
|
<label for="log0">{{_('Show Access Log: ')}}</label>{{logfiles[1]}}</div>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div id="renderer" class="log"></div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
|
|
<script src="{{ url_for('static', filename='js/logviewer.js') }}"></script>
|
|
|
|
{% endblock %}
|