Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/templates/includes/snapshot-context.html
Show All 31 Lines | <a id="swh-origin-visit" href="{{ snapshot_context.visit_info.url }}"> | ||||
<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> | ||||
{{ snapshot_context.visit_info.formatted_date }} | {{ snapshot_context.visit_info.formatted_date }} | ||||
</a> | </a> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
<ul class="nav nav-tabs" id="swh-snapshot-context-nav" style="padding-left: 5px;"> | <ul class="nav nav-tabs" id="swh-snapshot-context-nav" style="padding-left: 5px;"> | ||||
<li class="nav-item"> | <li class="nav-item"> | ||||
<a class="nav-link" id="swh-browse-code-nav-link" href="{{ snapshot_context.directory_url }}"> | <a class="nav-link" id="swh-browse-code-nav-link" href="{{ snapshot_context.browse_url }}"> | ||||
<i class="mdi mdi-code-tags mdi-fw" aria-hidden="true"></i> | <i class="mdi mdi-code-tags mdi-fw" aria-hidden="true"></i> | ||||
Code | Code | ||||
</a> | </a> | ||||
</li> | </li> | ||||
{% if not snapshot_context.snapshot_sizes.revision %} | {% if not snapshot_context.snapshot_sizes.branch %} | ||||
<li class="nav-item"> | <li class="nav-item"> | ||||
<a class="nav-link disabled" id="swh-browse-snapshot-branches-nav-link" href="#"> | <a class="nav-link disabled" id="swh-browse-snapshot-branches-nav-link" href="#"> | ||||
<i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> | ||||
Branches (0) | Branches (0) | ||||
</a> | </a> | ||||
</li> | </li> | ||||
{% else %} | {% else %} | ||||
<li class="nav-item"> | <li class="nav-item"> | ||||
<a class="nav-link" id="swh-browse-snapshot-branches-nav-link" href="{{ snapshot_context.branches_url }}"> | <a class="nav-link" id="swh-browse-snapshot-branches-nav-link" href="{{ snapshot_context.branches_url }}"> | ||||
<i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons.branches }} mdi-fw" aria-hidden="true"></i> | ||||
Branches ({{ snapshot_context.snapshot_sizes.revision}}) | Branches ({{ snapshot_context.snapshot_sizes.branch}}) | ||||
</a> | </a> | ||||
</li> | </li> | ||||
{% endif %} | {% endif %} | ||||
{% if not snapshot_context.snapshot_sizes.release %} | {% if not snapshot_context.snapshot_sizes.release %} | ||||
<li class="nav-item"> | <li class="nav-item"> | ||||
<a class="nav-link disabled" id="swh-browse-snapshot-releases-nav-link" href="#"> | <a class="nav-link disabled" id="swh-browse-snapshot-releases-nav-link" href="#"> | ||||
<i class="{{ swh_object_icons.releases }} mdi-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons.releases }} mdi-fw" aria-hidden="true"></i> | ||||
Releases (0) | Releases (0) | ||||
Show All 23 Lines |