Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/top-navigation.html
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | <div class="btn-group swh-actions-dropdown ml-auto"> | ||||
</select> | </select> | ||||
{% endif %} | {% endif %} | ||||
{% if show_actions %} | {% if show_actions %} | ||||
{% 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/take-new-snapshot.html" %} | {% include "includes/take-new-snapshot.html" %} | ||||
{% include "includes/show-metadata.html" %} | {% include "includes/show-metadata.html" %} | ||||
{% if user.is_staff %} | |||||
{% if swhids_info %} | |||||
<button class="btn btn-default btn-sm dropdown-toggle swh-vault-download" type="button" data-toggle="dropdown"> | |||||
<i class="mdi mdi-table mdi-fw" aria-hidden="true"></i> | |||||
Browse extrinsic metadata | |||||
</button> | |||||
<div class="dropdown-menu swh-extrinsic-metadata-menu"> | |||||
{% for swhid_info in swhids_info %} | |||||
<a href="{% url 'api-1-raw-extrinsic-metadata-swhid-authorities' swhid_info.swhid %}" class="dropdown-item" role="button"> | |||||
<i class="{{ swh_object_icons|key_value:swhid_info.object_type }} mdi-fw" aria-hidden="true"></i> | |||||
{{swhid_info.object_type}} | |||||
</a> | |||||
{% endfor %} | |||||
</div> | |||||
{% endif %} | |||||
{% endif %} | |||||
anlambert: You should move that code in the `includes/show-metadata.html` file. | |||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
{% include "includes/show-swhids.html" %} | {% include "includes/show-swhids.html" %} | ||||
<script> | <script> | ||||
var snapshotContext = false; | var snapshotContext = false; | ||||
Show All 13 Lines |
You should move that code in the includes/show-metadata.html file.