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 %}
{% endfor %}
{% if snapshot_context.branches|length < snapshot_context.snapshot_sizes.branch %}
Branches list truncated to {{ snapshot_context.branches|length }} entries,
{{ snapshot_context.branches|length|mul:-1|add:snapshot_context.snapshot_sizes.branch }}
were omitted.
{% endif %}
{% if snapshot_context.releases %}
{% for r in snapshot_context.releases %}
{% if r.target_type == 'revision' or r.target_type == 'directory' %}
Releases list truncated to {{ snapshot_context.releases|length }} entries,
{{ snapshot_context.releases|length|mul:-1|add:snapshot_context.snapshot_sizes.release }}
were omitted.
{% endif %}
{% else %}
No releases to show
{% endif %}
{% 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 %}