coal/paper: display tags and branch in filelog page
authorBenoit Allard <benoit@aeteurope.nl>
Tue, 25 Nov 2008 21:54:28 +0100
changeset 7409 0fa3b6677027
parent 7408 f031a12dfc31
child 7410 f1111704061e
coal/paper: display tags and branch in filelog page
mercurial/hgweb/webcommands.py
templates/coal/filelogentry.tmpl
--- a/mercurial/hgweb/webcommands.py	Tue Nov 25 22:32:11 2008 +0100
+++ b/mercurial/hgweb/webcommands.py	Tue Nov 25 21:54:28 2008 +0100
@@ -555,8 +555,12 @@
                          "rename": webutil.renamelink(fctx),
                          "parent": webutil.siblings(fctx.parents()),
                          "child": webutil.siblings(fctx.children()),
-                         "desc": ctx.description()})
-
+                         "desc": ctx.description(),
+                         "tags": webutil.nodetagsdict(web.repo, ctx.node()),
+                         "branch": webutil.nodebranchnodefault(ctx),
+                         "inbranch": webutil.nodeinbranch(web.repo, ctx),
+                         "branches": webutil.nodebranchdict(web.repo, ctx)})
+                     
         if limit > 0:
             l = l[:limit]
 
--- a/templates/coal/filelogentry.tmpl	Tue Nov 25 22:32:11 2008 +0100
+++ b/templates/coal/filelogentry.tmpl	Tue Nov 25 21:54:28 2008 +0100
@@ -1,5 +1,5 @@
  <tr class="parity{parity}">
   <td class="age">{date|age}</td>
   <td class="author">{author|person}</td>
-  <td class="description"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a></td>
+  <td class="description"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a>{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}</td>
  </tr>