diff --git a/plinth/templates/app-logs.html b/plinth/templates/app-logs.html new file mode 100644 index 000000000..c701ac07b --- /dev/null +++ b/plinth/templates/app-logs.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% load i18n %} + +{% block content %} +

{% trans "Logs" %}: {{ app_info.name }}

+ +

+ {% blocktrans trimmed %} + These are the last lines of the logs for services involved in this app. + If you want to report a bug, please use the bug + tracker and attach this log to the bug report. + {% endblocktrans %} +

+ +
+
+ + {% trans "Caution:" %} +
+
+ {% blocktrans trimmed %} + Please remove any personal information from the log before submitting + the bug report. + {% endblocktrans %} +
+
+ + {% for component in logs %} +
+

{{ component.unit }}: {{ component.description }}

+

+ +

+
+ {% endfor %} + +{% endblock %} diff --git a/plinth/templates/toolbar.html b/plinth/templates/toolbar.html index e5b13a3a1..78b818a83 100644 --- a/plinth/templates/toolbar.html +++ b/plinth/templates/toolbar.html @@ -21,7 +21,7 @@ {% endif %} - {% if has_diagnostics or show_uninstall or has_backup_restore %} + {% if has_diagnostics or has_logs or show_uninstall or has_backup_restore %}