Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/top-navigation.html
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | <div class="btn-group swh-actions-dropdown ml-auto"> | ||||
{% if available_languages %} | {% if available_languages %} | ||||
<select data-placeholder="Select Language" class="language-select chosen-select"> | <select data-placeholder="Select Language" class="language-select chosen-select"> | ||||
<option value=""></option> | <option value=""></option> | ||||
{% for lang in available_languages %} | {% for lang in available_languages %} | ||||
<option value="{{ lang }}">{{ lang }}</option> | <option value="{{ lang }}">{{ lang }}</option> | ||||
{% endfor %} | {% endfor %} | ||||
</select> | </select> | ||||
{% endif %} | {% endif %} | ||||
{% if show_actions_menu %} | {% if show_actions %} | ||||
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown"> | |||||
<i class="mdi mdi-menu mdi-fw" aria-hidden="true"></i>Actions | |||||
<span class="caret"></span> | |||||
</button> | |||||
<ul class="dropdown-menu dropdown-menu-right swh-browse-actions-menu"> | |||||
{% if not snapshot_context or not snapshot_context.is_empty %} | {% if not snapshot_context or not snapshot_context.is_empty %} | ||||
{% include "includes/vault-create-tasks.html" %} | {% include "includes/vault-create-tasks.html" %} | ||||
{% endif %} | {% endif %} | ||||
{% include "includes/show-metadata.html" %} | |||||
{% include "includes/take-new-snapshot.html" %} | {% include "includes/take-new-snapshot.html" %} | ||||
</ul> | {% if user.is_staff %} | ||||
{% include "includes/show-metadata.html" %} | |||||
{% endif %} | |||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
{% include "includes/show-swh-ids.html" %} | {% include "includes/show-swh-ids.html" %} | ||||
<script> | <script> | ||||
var snapshotContext = false; | var snapshotContext = false; | ||||
Show All 13 Lines |