Skip to content

Commit 5fcd029

Browse files
committed
Reverse direction of revisions on charter /doc/ page to match tools.ietf.org/html/draft-*.
- Legacy-Id: 4349
1 parent b869d9f commit 5fcd029

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

ietf/idrfc/views_doc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ def document_main(request, name, rev=None):
9292
doc = get_object_or_404(Document, docalias__name=name)
9393
group = doc.group
9494

95-
revisions = [ doc.rev ]
96-
for h in doc.history_set.order_by("-time"):
95+
revisions = []
96+
for h in doc.history_set.order_by("time", "id"):
9797
if h.rev and not h.rev in revisions:
9898
revisions.append(h.rev)
99+
if not doc.rev in revisions:
100+
revisions.append(doc.rev)
99101

100102
snapshot = False
101103

ietf/templates/idrfc/document_charter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Snapshots:
1616
<span class="revisions">
1717
{% for rev in revisions %}
18-
<a {% if rev != doc.rev %}href="{% url doc_view name=doc.name %}{% if not forloop.first %}{{ rev }}/{% endif %}"{% endif %}>{{ rev }}</a>
18+
<a {% if rev != doc.rev %}href="{% url doc_view name=doc.name %}{% if not forloop.last %}{{ rev }}/{% endif %}"{% endif %}>{{ rev }}</a>
1919
{% endfor %}
2020
</span>
2121
</div>

static/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.m_h { font-family: arial; font-weight:bold;}
1010

1111
.snapshots { margin: 0.5em 0; }
12-
.snapshots .revisions a:first-child { font-weight: bold }
12+
.snapshots .revisions a:last-child { font-weight: bold; }
1313

1414
.metabox .actions a { display: inline-block; margin-right: 0.4em; }
1515
.metabox .ballot-summary { font-style: italic; }

0 commit comments

Comments
 (0)