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