From 29d6cb230268594def91529580fb5864a17e2723 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 3 Mar 2025 12:52:28 -0800 Subject: [PATCH] ui: tags: Show tags on all cards pages if present Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/templates/apps.html | 39 ---------------------------------- plinth/templates/cards.html | 4 +++- plinth/templates/tags.html | 42 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 40 deletions(-) create mode 100644 plinth/templates/tags.html diff --git a/plinth/templates/apps.html b/plinth/templates/apps.html index 098be288b..439c36a17 100644 --- a/plinth/templates/apps.html +++ b/plinth/templates/apps.html @@ -11,42 +11,3 @@ {% endblock %} {% block body_class %}apps-page{% endblock %} - -{% block tags %} - {% if tags %} -
- -
- {% endif %} -{% endblock %} diff --git a/plinth/templates/cards.html b/plinth/templates/cards.html index 64ac96354..098b20e36 100644 --- a/plinth/templates/cards.html +++ b/plinth/templates/cards.html @@ -15,7 +15,9 @@ - {% block tags %}{% endblock %} + {% block tags %} + {% include "tags.html" %} + {% endblock %}
diff --git a/plinth/templates/tags.html b/plinth/templates/tags.html new file mode 100644 index 000000000..c263cb8ff --- /dev/null +++ b/plinth/templates/tags.html @@ -0,0 +1,42 @@ +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% load i18n %} + +{% if tags %} +
+ +
+{% endif %}