hgweb: add changeset description to file revision page
authorBrendan Cully <brendan@kublai.com>
Sat, 14 Oct 2006 16:27:51 -0700
changeset 3395 3c8f0dc9a6d3
parent 3394 be628f1cd3f4
child 3396 cab34443540e
hgweb: add changeset description to file revision page
mercurial/hgweb/hgweb_mod.py
templates/filerevision.tmpl
templates/gitweb/filerevision.tmpl
--- 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#