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>
|
2020-11-15 13:19:25 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6 col-sm-7">
|
|
|
|
{% if log_enable %}
|
2021-07-30 07:25:08 +00: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 13:19:25 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if accesslog_enable %}
|
2021-07-30 07:25:08 +00: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 13:19:25 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-13 18:45:48 +00:00
|
|
|
<div id="renderer" class="log"></div>
|
2020-11-15 13:19:25 +00:00
|
|
|
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
|
|
<script src="{{ url_for('static', filename='js/logviewer.js') }}"></script>
|
|
|
|
{% endblock %}
|