Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/snapshot-context.html
Show All 14 Lines | <h5> | ||||
</a> | </a> | ||||
{% if snapshot_context.origin_info.url|slice:"0:4" == "http" %} | {% if snapshot_context.origin_info.url|slice:"0:4" == "http" %} | ||||
<a href="{{ snapshot_context.origin_info.url }}" title="Go to origin"> | <a href="{{ snapshot_context.origin_info.url }}" title="Go to origin"> | ||||
<i class="mdi mdi-open-in-new" aria-hidden="true"></i> | <i class="mdi mdi-open-in-new" aria-hidden="true"></i> | ||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
{% else %} | {% else %} | ||||
<i class="{{ swh_object_icons.snapshot }} mdi-fw" aria-hidden="true" title="Snapshot"></i> | <i class="{{ swh_object_icons.snapshot }} mdi-fw" aria-hidden="true" title="Snapshot"></i> | ||||
<a class="swh-heading-color" href="{% url 'browse-swh-id' snapshot_context.snapshot_swhid %}"> | <a class="swh-heading-color" href="{% url 'browse-swhid' snapshot_context.snapshot_swhid %}"> | ||||
{{ snapshot_context.snapshot_swhid }} | {{ snapshot_context.snapshot_swhid }} | ||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
</h5> | </h5> | ||||
{% if snapshot_context.visit_info %} | {% if snapshot_context.visit_info %} | ||||
<div class="mb-1 pl-1"> | <div class="mb-1 pl-1"> | ||||
<i class="{{ swh_object_icons.snapshot }} mdi-fw" aria-hidden="true" title="Snapshot date"></i> | <i class="{{ swh_object_icons.snapshot }} mdi-fw" aria-hidden="true" title="Snapshot date"></i> | ||||
<a href="{{ snapshot_context.visit_info.url }}"> | <a href="{{ snapshot_context.visit_info.url }}"> | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | <li class="nav-item"> | ||||
</a> | </a> | ||||
</li> | </li> | ||||
{% endif %} | {% endif %} | ||||
</ul> | </ul> | ||||
<script> | <script> | ||||
swh.browse.initBrowseNavbar(); | swh.browse.initBrowseNavbar(); | ||||
</script> | </script> | ||||
No newline at end of file | No newline at end of file |