{% extends "tracker.html" %}
{% block subnav %}
<div class="header-extension">
  <div class="container">
    {% macro link(path, title, ico=None) %}
    <a
      class="nav-link {% if subview == title %}active{% endif %}"
      href="{{ path }}">{{ title }}</a>
    {% endmacro %}

    <div class="subnav">
      <ul class="nav nav-tabs">
        <li class="nav-item">
          {{link(url_for("settings.details_GET",
            owner=tracker.owner.canonical_name,
            name=tracker.name), "details")}}
        </li>
        <li class="nav-item">
          {{link(url_for("settings.access_GET",
            owner=tracker.owner.canonical_name,
            name=tracker.name), "access")}}
        </li>
        <li class="nav-item">
          {{link(url_for("settings.import_export_GET",
            owner=tracker.owner.canonical_name,
            name=tracker.name), "import/export")}}
        </li>
        <li class="nav-item">
          {{link(url_for("settings.delete_GET",
            owner=tracker.owner.canonical_name,
            name=tracker.name), "delete")}}
        </li>
      </ul>
    </div>
  </div>
</div>
<div class="container">
  {% block settings %}{% endblock %}
</div>
{% endblock %}
