changeset 3401:3c8f0dc9a6d3

hgweb: add changeset description to file revision page
author Brendan Cully <brendan@kublai.com>
date Sat, 14 Oct 2006 16:27:51 -0700
parents be628f1cd3f4
children cab34443540e
files mercurial/hgweb/hgweb_mod.py templates/filerevision.tmpl templates/gitweb/filerevision.tmpl
diffstat 3 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sat Oct 14 16:20:22 2006 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Sat Oct 14 16:27:51 2006 -0700
@@ -361,6 +361,7 @@
                      node=hex(fctx.node()),
                      author=fctx.user(),
                      date=fctx.date(),
+                     desc=fctx.description(),
                      parent=self.siblings(fctx.parents()),
                      child=self.siblings(fctx.children()),
                      rename=self.renamelink(fl, n),
--- a/templates/filerevision.tmpl	Sat Oct 14 16:20:22 2006 -0700
+++ b/templates/filerevision.tmpl	Sat Oct 14 16:27:51 2006 -0700
@@ -31,6 +31,10 @@
 <tr>
  <td class="metatag">permissions:</td>
  <td>#permissions|permissions#</td></tr>
+<tr>
+  <td class="metatag">description:</td>
+  <td>{desc|strip|escape|addbreaks}</td>
+</tr>
 </table>
 
 <pre>
--- a/templates/gitweb/filerevision.tmpl	Sat Oct 14 16:20:22 2006 -0700
+++ b/templates/gitweb/filerevision.tmpl	Sat Oct 14 16:27:51 2006 -0700
@@ -25,6 +25,7 @@
 
 <div class="title">#file|escape#</div>
 
+<div class="title_text">
 <table>
 <tr>
  <td class="metatag">changeset #rev#:</td>
@@ -44,6 +45,11 @@
  <td class="metatag">permissions:</td>
  <td>#permissions|permissions#</td></tr>
 </table>
+</div>
+
+<div class="page_path">
+{desc|strip|escape|addbreaks}
+</div>
 
 <div class="page_body">
 #text%fileline#