mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-19 12:36:06 +00:00
- It avoids confusion with two separate app sections in a single page. The sections/pages can be better titled. - In future, we can style the apps page (with more status display) differently from apps-add page (with more search and featured apps). - Move page specific parts into individual pages instead of in the common template cards.html. - Add special message when there are no apps enabled and when there are no more apps to enable. - Drop show_disabled flag in cards template that is not needed anymore. Tests: - Unit tests work. - Functional tests work on bepasty when starting with uninstalled, disabled, or enabled states. - Apps page shows special message when there are no apps enabled. It is centered. - Apps page shows 'Add new app' button with icon. Clicking it takes us to apps-add page. - Apps page does not have disabled apps list (even hidden). - Disabled and uninstalled apps are not shown on apps page. - Apps-add page shows special message when there are no more apps to be installed or enabled (test by altering view code to have empty list of apps). - Apps-add page shows list of apps that are disabled or uninstalled but not enabled apps. It shows a title 'Add New App'. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
32 lines
698 B
HTML
32 lines
698 B
HTML
{% extends 'cards.html' %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load extras %}
|
|
|
|
{% block page_js %}
|
|
<script src="{% static 'tags.js' %}" defer></script>
|
|
{% endblock %}
|
|
|
|
{% block body_class %}apps-page{% endblock %}
|
|
|
|
{% block toolbar-container %}
|
|
<div class="btn-toolbar" role="toolbar">
|
|
<a class="btn btn-primary" href="{% url 'apps-add' %}" role="button">
|
|
{% icon 'plus' %}
|
|
{% trans "Add new app" %}
|
|
</a>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block cards-empty %}
|
|
<p class="text-center">
|
|
{% blocktrans trimmed %}
|
|
There are currently no apps added.
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% endblock %}
|