Skip to content

Commit eddc03c

Browse files
committed
Fix revision list
- Legacy-Id: 19615
1 parent add1dae commit eddc03c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
2-
<ul class="pagination revlist">
3-
<li class="disabled"><a><b>Versions</b></a></li>
2+
<b>Versions:</b>
3+
<div class="btn-group btn-group-sm py-3">
44
{% for rev in revisions %}
5-
<li {% if rev == doc.rev %}{% if snapshot or not doc.get_state_slug == "rfc" %}{% if rev == latest_rev and not doc.get_state_slug == "rfc" %}class="active"{% else %}class="warning"{% endif %}{% endif %}{% endif %}>
6-
<a 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>
7-
</li>
5+
<a class="btn btn-outline-primary {% if rev == doc.rev %}{% if snapshot or not doc.get_state_slug == "rfc" %}{% if rev == latest_rev and not doc.get_state_slug == "rfc" %}active{% else %}btn-warning{% endif %}{% endif %}{% endif %}" 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>
86
{% endfor %}
9-
</ul>
7+
</div>

0 commit comments

Comments
 (0)