Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/snapshot-context.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2017-2018 The Software Heritage developers | Copyright (C) 2017-2018 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 %} | ||||
<hr class="mt-1 mb-1"> | <hr class="mt-1 mb-1"> | ||||
<div class="swh-origin-visit-details"> | <div class="swh-origin-visit-details"> | ||||
<ul> | <ul> | ||||
{% if snapshot_context.origin_info %} | {% if snapshot_context.origin_info %} | ||||
<li><i class="{{ swh_object_icons.visits }} fa-fw"></i><a href="{{ snapshot_context.origin_visits_url }}">Visits</a></li> | <li><i class="{{ swh_object_icons.visits }} mdi-fw"></i><a href="{{ snapshot_context.origin_visits_url }}">Visits</a></li> | ||||
{% endif %} | {% endif %} | ||||
{% if snapshot_context.visit_info %} | {% if snapshot_context.visit_info %} | ||||
<li><i class="{{ swh_object_icons.snapshot }} fa-fw"></i> Snapshot date: <a href="{{ snapshot_context.visit_info.url }}">{{ snapshot_context.visit_info.formatted_date }}</a></li> | <li><i class="{{ swh_object_icons.snapshot }} mdi-fw" aria-hidden="true"></i> Snapshot date: <a href="{{ snapshot_context.visit_info.url }}">{{ snapshot_context.visit_info.formatted_date }}</a></li> | ||||
{% endif %} | {% endif %} | ||||
{% if not snapshot_context.snapshot_sizes.revision %} | {% if not snapshot_context.snapshot_sizes.revision %} | ||||
<li><i class="{{ swh_object_icons.branches }} fa-fw"></i> Branches (0)</li> | <li><i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> Branches (0)</li> | ||||
{% else %} | {% else %} | ||||
<li><i class="{{ swh_object_icons.branches }} fa-fw"></i> <a href="{{ snapshot_context.branches_url }}">Branches ({{ snapshot_context.snapshot_sizes.revision}})</a></li> | <li><i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> <a href="{{ snapshot_context.branches_url }}">Branches ({{ snapshot_context.snapshot_sizes.revision}})</a></li> | ||||
{% endif %} | {% endif %} | ||||
{% if not snapshot_context.snapshot_sizes.release %} | {% if not snapshot_context.snapshot_sizes.release %} | ||||
<li><i class="{{ swh_object_icons.releases }} fa-fw"></i> Releases (0)</li> | <li><i class="{{ swh_object_icons.releases }} mdi-fw" aria-hidden="true"></i> Releases (0)</li> | ||||
{% else %} | {% else %} | ||||
<li><i class="{{ swh_object_icons.releases }} fa-fw"></i> <a href="{{ snapshot_context.releases_url }}">Releases ({{ snapshot_context.snapshot_sizes.release }})</a></li> | <li><i class="{{ swh_object_icons.releases }} mdi-fw" aria-hidden="true"></i> <a href="{{ snapshot_context.releases_url }}">Releases ({{ snapshot_context.snapshot_sizes.release }})</a></li> | ||||
{% endif %} | {% endif %} | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<hr class="mt-1 mb-1"> | <hr class="mt-1 mb-1"> | ||||
No newline at end of file | No newline at end of file |