Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/browse/browse.html
Show All 9 Lines | |||||
{% load swh_templatetags %} | {% load swh_templatetags %} | ||||
{% block title %}{{ heading }} – Software Heritage archive{% endblock %} | {% block title %}{{ heading }} – Software Heritage archive{% endblock %} | ||||
{% block navbar-content %} | {% block navbar-content %} | ||||
{% if snapshot_context %} | {% if snapshot_context %} | ||||
<h4> | <h4> | ||||
<i class="{{ swh_object_icons|key_value:swh_object_name.lower }} fa-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons|key_value:swh_object_name.lower }} fa-fw" aria-hidden="true"></i> | ||||
Browse archived {{ swh_object_name.lower }} | |||||
{% if snapshot_context.origin_info %} | {% if snapshot_context.origin_info %} | ||||
for origin | Browse archived {{ swh_object_name.lower }} for origin | ||||
<a href="{% url 'browse-origin' %}?origin_url={{ snapshot_context.origin_info.url }}"> | <a href="{% url 'browse-origin' %}?origin_url={{ snapshot_context.origin_info.url }}"> | ||||
{% url 'browse-origin' %}?origin_url={{ snapshot_context.origin_info.url }} | {{ snapshot_context.origin_info.url }} | ||||
</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="fa fa-external-link" aria-hidden="true"></i> | <i class="fa fa-external-link" aria-hidden="true"></i> | ||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
{% else %} | {% else %} | ||||
for snapshot | Browse archived {{ swh_object_name.lower }} for snapshot | ||||
<a href="{% url 'browse-swh-id' snapshot_context.snapshot_swhid %}"> | <a href="{% url 'browse-swh-id' snapshot_context.snapshot_swhid %}"> | ||||
{{ snapshot_context.snapshot_swhid }} | {{ snapshot_context.snapshot_swhid }} | ||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
</h4> | </h4> | ||||
{% else %} | {% else %} | ||||
<h4> | <h4> | ||||
<i class="{{ swh_object_icons|key_value:swh_object_name.lower }} fa-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons|key_value:swh_object_name.lower }} fa-fw" aria-hidden="true"></i> | ||||
Show All 25 Lines |