mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Undo a minor isort refactor in searx] [sunil: Change the menu label to 'Donate'] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
50 lines
1.5 KiB
HTML
50 lines
1.5 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 or app_info.donation_url %}
|
|
<!-- 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">
|
|
{% if has_diagnostics %}
|
|
<li>
|
|
{% include "diagnostics_button.html" with app_id=app_id enabled=is_enabled %}
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if app_info.donation_url %}
|
|
<li>
|
|
<a target="_blank" rel="noopener noreferrer"
|
|
href="{{ app_info.donation_url }}">
|
|
{% trans "Donate" %}
|
|
<span class="fa fa-external-link"></span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
<div class="toolbar-collapsed-content">
|
|
{% include "clients.html" with clients=app_info.clients enabled=is_enabled %}
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock toolbar %}
|