Commits

Matthew Marshall committed 53f9e35

Fixed links on summary page.

Comments (0)

Files changed (2)

     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)
     )

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>
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.