mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- So that it can be reused in frontpage. Tests performed: - Go to an app like Gitweb. Both launch web client button and clients apps button should be visible. Similarly, Deluge should only show launch button. Infinoted should only show clients button. - Go to an app like Gitweb where launch web client button is available. Enabling the app should enable the launch web client button and disabling the app should disable the launch web client button. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block toolbar %}
|
|
|
|
<section class="toolbar">
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
{% include "clients-button.html" with clients=app_info.clients enabled=is_enabled %}
|
|
|
|
{% if has_diagnostics %}
|
|
<!-- Single button -->
|
|
<div class="btn-group button-extra-actions">
|
|
<button type="button" class="btn btn-default dropdown-toggle"
|
|
data-toggle="dropdown" aria-haspopup="true"
|
|
aria-expanded="false">
|
|
<span class="fa fa-cog" aria-hidden="true"></span>
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
{% include "diagnostics_button.html" with app_id=app_id enabled=is_enabled %}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
<div class="toolbar-collapsed-content">
|
|
{% include "clients.html" with clients=app_info.clients enabled=is_enabled %}
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock toolbar %}
|