changeset 7409:0fa3b6677027

coal/paper: display tags and branch in filelog page
author Benoit Allard <benoit@aeteurope.nl>
date Tue, 25 Nov 2008 21:54:28 +0100
parents f031a12dfc31
children f1111704061e
files mercurial/hgweb/webcommands.py templates/coal/filelogentry.tmpl
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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>