Sunil Mohan Adapa 2764c58c53
views: Add a separate page for adding new apps
- 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>
2026-08-17 19:18:51 -04:00

50 lines
1001 B
HTML

{% extends 'base.html' %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% load static %}
{% load extras %}
{% block container %}
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2">
{% include 'messages.html' %}
</div>
</div>
</div>
{% block tags %}
{% include "tags.html" %}
{% endblock %}
<div class="container card-container">
{% block header-container %}
{% endblock %}
{% block toolbar-container %}
{% endblock %}
{% if menu_items %}
<div class="row">
<div class="card-list">
{% for item in menu_items %}
{% if advanced_mode or not item.advanced %}
{% include "card.html" %}
{% endif %}
{% endfor %}
</div>
</div>
{% else %}
{% block cards-empty %}
{% endblock %}
{% endif %}
</div>
{% block content-container %}
{% endblock %}
{% endblock %}