Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/top-navigation.html
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | <div class="swh-browse-top-navigation d-flex align-items-start justify-content-between flex-wrap mt-1"> | ||||
{{ snapshot_context.branches|length|mul:-1|add:snapshot_context.snapshot_sizes.revision }} | {{ snapshot_context.branches|length|mul:-1|add:snapshot_context.snapshot_sizes.revision }} | ||||
were omitted. | were omitted. | ||||
</li> | </li> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
<div class="tab-pane" id="swh-tab-releases"> | <div class="tab-pane" id="swh-tab-releases"> | ||||
{% if snapshot_context.releases %} | {% if snapshot_context.releases %} | ||||
{% for r in snapshot_context.releases %} | {% for r in snapshot_context.releases %} | ||||
{% if r.target_type == 'revision' %} | {% if r.target_type == 'revision' or r.target_type == 'directory' %} | ||||
<li class="swh-release"> | <li class="swh-release"> | ||||
<a href="{{ r.url | safe }}"> | <a href="{{ r.url | safe }}"> | ||||
{% if r.alias %} | {% if r.alias %} | ||||
<i class="{{ swh_object_icons.alias }} mdi-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons.alias }} mdi-fw" aria-hidden="true"></i> | ||||
{% else %} | {% else %} | ||||
<i class="{{ swh_object_icons.release }} mdi-fw" aria-hidden="true"></i> | <i class="{{ swh_object_icons.release }} mdi-fw" aria-hidden="true"></i> | ||||
{% endif %} | {% endif %} | ||||
{% if r.name == snapshot_context.release %} | {% if r.name == snapshot_context.release %} | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |