diff --git a/swh/web/browse/templates/includes/top-navigation.html b/swh/web/browse/templates/includes/top-navigation.html index 370cb176..d71837b2 100644 --- a/swh/web/browse/templates/includes/top-navigation.html +++ b/swh/web/browse/templates/includes/top-navigation.html @@ -1,157 +1,157 @@ {% comment %} Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% load swh_templatetags %}
{% if snapshot_context %} {% if snapshot_context.branch or snapshot_context.release or snapshot_context.revision_id %} {% endif %} {% endif %}
{% include "./breadcrumbs.html" %}
{% if top_right_link %} {% if top_right_link.icon %} {% endif %} {{ top_right_link.text }} {% endif %} {% if available_languages %} {% endif %} {% if show_actions %} - {% if "swh.web.vault" in SWH_DJANGO_APPS %} + {% if "swh.web.vault" in SWH_DJANGO_APPS and vault_cooking %} {% if not snapshot_context or not snapshot_context.is_empty %} {% include "includes/vault-create-tasks.html" %} {% endif %} {% endif %} {% if "swh.web.save_code_now" in SWH_DJANGO_APPS %} {% include "includes/take-new-snapshot.html" %} {% endif %} {% include "./show-metadata.html" %} {% endif %}
{% include "./show-swhids.html" %}