2019-07-13 20:45:48 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div id="log_group" class="inputs">
|
2020-01-13 18:37:29 +01:00
|
|
|
{% if log_enable %}
|
2019-07-13 20:45:48 +02:00
|
|
|
<div><input type="radio" name="log_radio" id="log1" value="0" checked>
|
2020-02-03 04:22:00 +01:00
|
|
|
<label for="log1">{{_('Show Calibre-Web Log: ')}}</label>{{logfiles[0]}}</div>
|
2020-01-13 18:37:29 +01:00
|
|
|
{% else %}
|
2020-02-03 04:22:00 +01:00
|
|
|
<div><label for="log1">{{_('Calibre-Web Log: ')}}</label> {{_("Stream output, can't be displayed")}}</div>
|
2020-01-13 18:37:29 +01:00
|
|
|
{% endif %}
|
2019-07-13 20:45:48 +02:00
|
|
|
{% if accesslog_enable %}
|
2020-01-13 18:37:29 +01:00
|
|
|
<div><input type="radio" name="log_radio" id="log0" value="1" {% if not log_enable %}checked{% endif %}>
|
2020-02-03 04:22:00 +01:00
|
|
|
<label for="log0">{{_('Show Access Log: ')}}</label>{{logfiles[1]}}</div>
|
2019-07-13 20:45:48 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-11-15 14:19:25 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6 col-sm-7">
|
|
|
|
{% if log_enable %}
|
|
|
|
<div class="btn btn-default"><a id="log_file" href="{{url_for('admin.download_log', logtype=0)}}">{{_('Download Calibre-Web Log')}}</a></div>
|
|
|
|
{% endif %}
|
|
|
|
{% if accesslog_enable %}
|
|
|
|
<div class="btn btn-default"><a id="log_file" href="{{url_for('admin.download_log', logtype=1)}}">{{_('Download Access Log')}}</a></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-13 20:45:48 +02:00
|
|
|
<div id="renderer" class="log"></div>
|
2020-11-15 14:19:25 +01:00
|
|
|
|
2019-07-13 20:45:48 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
|
|
<script src="{{ url_for('static', filename='js/logviewer.js') }}"></script>
|
|
|
|
{% endblock %}
|