Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/vault-create-tasks.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2017-2019 The Software Heritage developers | Copyright (C) 2017-2019 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
{% endcomment %} | {% endcomment %} | ||||
{% load swh_templatetags %} | {% load swh_templatetags %} | ||||
{% if vault_cooking %} | {% if vault_cooking %} | ||||
<!-- entry in the Actions menu --> | <!-- entry in the Actions menu --> | ||||
<div class="dropdown-submenu swh-vault-menu"> | <div class="dropdown-submenu swh-vault-menu"> | ||||
<a class="dropdown-item dropdown-left" tabindex="-1" href="#"> | <a class="dropdown-item dropdown-left" tabindex="-1" href="#"> | ||||
<i class="fa fa-download fa-fw" aria-hidden="true"></i>Download | <i class="mdi mdi-download mdi-fw" aria-hidden="true"></i>Download | ||||
</a> | </a> | ||||
<div class="dropdown-menu"> | <div class="dropdown-menu"> | ||||
{% if vault_cooking.directory_context %} | {% if vault_cooking.directory_context %} | ||||
<button class="dropdown-item" type="button" tabindex="-1" onclick="swh.vault.vaultRequest('directory', '{{ vault_cooking.directory_id }}')"> | <button class="dropdown-item" type="button" tabindex="-1" onclick="swh.vault.vaultRequest('directory', '{{ vault_cooking.directory_id }}')"> | ||||
<i class="{{ swh_object_icons.directory }} fa-fw" aria-hidden="true"></i>as tarball | <i class="{{ swh_object_icons.directory }} mdi-fw" aria-hidden="true"></i>as tarball | ||||
</button> | </button> | ||||
{% endif %} | {% endif %} | ||||
{% if vault_cooking.revision_context %} | {% if vault_cooking.revision_context %} | ||||
<button class="dropdown-item" type="button" tabindex="-1" onclick="swh.vault.vaultRequest('revision', '{{ vault_cooking.revision_id }}')"> | <button class="dropdown-item" type="button" tabindex="-1" onclick="swh.vault.vaultRequest('revision', '{{ vault_cooking.revision_id }}')"> | ||||
<i class="{{ swh_object_icons.revision }} fa-fw"></i>as git | <i class="{{ swh_object_icons.revision }} mdi-fw" aria-hidden="true"></i>as git | ||||
</button> | </button> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<!-- modals related to the creation of vault cooking tasks --> | <!-- modals related to the creation of vault cooking tasks --> | ||||
<!-- they will be reparented in the script below in order to be able to display them --> | <!-- they will be reparented in the script below in order to be able to display them --> | ||||
<div class="modal fade" id="vault-cook-directory-modal" tabindex="-1" role="dialog" aria-labelledby="vault-cook-directory-modal-label" aria-hidden="true"> | <div class="modal fade" id="vault-cook-directory-modal" tabindex="-1" role="dialog" aria-labelledby="vault-cook-directory-modal-label" aria-hidden="true"> | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |