{% 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 %}
