frontpage: Reuse app header template for showing app description

- Show the short description under the app name.

- Show the link to manual page if available.

- Share the header styling with the app page.

Tests:

- Install OpenVPN app and visit the home page. Select the OpenVPN icon. Along
with app title and description, short description is now shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-05-11 11:06:45 -07:00 committed by James Valleroy
parent 48457dd0d0
commit bf86990382
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -27,15 +27,7 @@
{% endif %}
{% if selected_shortcut.description %}
{% block pagetitle %}
<h2>{{ selected_shortcut.name }}</h2>
{% endblock %}
{% block description %}
{% for paragraph in selected_shortcut.description %}
<p>{{ paragraph|safe }}</p>
{% endfor %}
{% endblock %}
{% include "app-header.html" with app_info=selected_shortcut %}
<section class="toolbar">
<div class="btn-toolbar" role="toolbar">