index: Reintroduce clients button in front page

Tests performed:

- Pick an app like Infonoted that does not have web client. Visit the front page
click on Infinoted. Clients button should show up. Clicking on it should expand
the clients information table.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-03-17 23:24:52 -07:00 committed by Veiko Aasa
parent 75bc011fe7
commit 07296f3300
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -37,12 +37,20 @@
{% endfor %}
{% endblock %}
{% include "clients.html" with clients=selected_shortcut.clients enabled=True %}
<section class="toolbar">
<div class="btn-toolbar" role="toolbar">
{% include "clients-button.html" with clients=selected_shortcut.clients enabled=True %}
{% if user.is_authenticated and user_is_admin and selected_shortcut.configure_url %}
<a class="btn btn-primary" href="{{ selected_shortcut.configure_url }}">
{% trans "Configure &raquo;" %}</a>
{% endif %}
{% if user.is_authenticated and user_is_admin and selected_shortcut.configure_url %}
<a class="btn btn-primary" href="{{ selected_shortcut.configure_url }}">
{% trans "Configure &raquo;" %}</a>
{% endif %}
</div>
<div class="toolbar-collapsed-content">
{% include "clients.html" with clients=selected_shortcut.clients enabled=True %}
</div>
</section>
{% endif %}
</div>