forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrevisions_list.html
More file actions
21 lines (21 loc) · 1010 Bytes
/
revisions_list.html
File metadata and controls
21 lines (21 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
<label class="my-1 fw-bold" for="docrev">Versions:</label>
<nav id="docrev" class="mb-3">
<ul class="pagination pagination-sm">
{% for rev in revisions %}
<li class="page-item {% if rev == doc.rev %}{% if snapshot or doc.get_state_slug != 'rfc' %}active{% endif %}{% endif %}">
<a class="page-link"
href="{% if snapshot and doc.get_state_slug == 'rfc' %}{% url 'ietf.doc.views_doc.document_main' name=doc.doc.name %}{% else %}{% url 'ietf.doc.views_doc.document_main' name=doc.name %}{% endif %}{% if rev %}{{ rev }}/{% endif %}"
{% if rev != '00' and rev != latest_rev %}rel="nofollow"{% endif %}>
{% if rev %}
{{ rev }}
{% else %}
{{ doc.name }}
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</nav>