Commits

Matthew Marshall  committed 53f9e35

Fixed links on summary page.

  • Participants
  • Parent commits 619bc37

Comments (0)

Files changed (2)

File repos/views.py

     repo = get_object_or_404(Repo, name=reponame, owner__username=username)
     hgrepo = hg.repository(ui.ui(), repo.file_path)
     has_tip = hgrepo.changelog.tip() != '\x00'*20
+    tip_hex = hexlify(hgrepo.changelog.tip())[:12]
     from mercurial.hgweb.hgweb_mod import hgweb
     from mercurial.hgweb.common import style_map
     from mercurial import templater
         dict(
             repo=repo,
             has_tip=has_tip,
+            tip_hex=tip_hex,
             content=u''.join(content),
         ), context_instance=RequestContext(request)
     )

File templates/repos/summary.html

         
 <div class="page_nav">
     summary |
-    <a href="{{repo.get_absolute_url}}shortlog{sessionvars%urlparameter}">shortlog</a> |
-    <a href="{{repo.get_absolute_url}}log{sessionvars%urlparameter}">changelog</a> |
-    <a href="{{repo.get_absolute_url}}tags{sessionvars%urlparameter}">tags</a> |
-    <a href="{{repo.get_absolute_url}}file/#node|short#{sessionvars%urlparameter}">manifest</a>{% comment %}FIXME: put links to archives here.{% endcomment %}
+    <a href="{{repo.get_absolute_url}}shortlog/">shortlog</a> |
+    <a href="{{repo.get_absolute_url}}log/">changelog</a> |
+    <a href="{{repo.get_absolute_url}}tags/">tags</a> |
+    <a href="{{repo.get_absolute_url}}file/{{tip_hex}}/">manifest</a>{% comment %}FIXME: put links to archives here.{% endcomment %}
      | <a href="{{repo.get_absolute_url}}edit/">edit</a><br/>
 </div>