Reverse direction of revisions on charter /doc/ page to match tools.ietf.org/html/draft-*.

- Legacy-Id: 4349
This commit is contained in:
Ole Laursen 2012-05-02 12:16:25 +00:00
parent b869d9f9dc
commit 5fcd0297ed
3 changed files with 6 additions and 4 deletions

View file

@ -92,10 +92,12 @@ def document_main(request, name, rev=None):
doc = get_object_or_404(Document, docalias__name=name)
group = doc.group
revisions = [ doc.rev ]
for h in doc.history_set.order_by("-time"):
revisions = []
for h in doc.history_set.order_by("time", "id"):
if h.rev and not h.rev in revisions:
revisions.append(h.rev)
if not doc.rev in revisions:
revisions.append(doc.rev)
snapshot = False

View file

@ -15,7 +15,7 @@
Snapshots:
<span class="revisions">
{% for rev in revisions %}
<a {% if rev != doc.rev %}href="{% url doc_view name=doc.name %}{% if not forloop.first %}{{ rev }}/{% endif %}"{% endif %}>{{ rev }}</a>
<a {% if rev != doc.rev %}href="{% url doc_view name=doc.name %}{% if not forloop.last %}{{ rev }}/{% endif %}"{% endif %}>{{ rev }}</a>
{% endfor %}
</span>
</div>

View file

@ -9,7 +9,7 @@
.m_h { font-family: arial; font-weight:bold;}
.snapshots { margin: 0.5em 0; }
.snapshots .revisions a:first-child { font-weight: bold }
.snapshots .revisions a:last-child { font-weight: bold; }
.metabox .actions a { display: inline-block; margin-right: 0.4em; }
.metabox .ballot-summary { font-style: italic; }