hgweb: add changeset description to annotate page
authorBrendan Cully <brendan@kublai.com>
Sat, 14 Oct 2006 15:28:45 -0700
changeset 3391 defadc26e674
parent 3390 a74addddd092
child 3392 17894d1d9eea
hgweb: add changeset description to annotate page
mercurial/hgweb/hgweb_mod.py
templates/fileannotate.tmpl
templates/gitweb/fileannotate.tmpl
--- a/mercurial/hgweb/hgweb_mod.py	Sat Oct 14 18:47:48 2006 -0300
+++ b/mercurial/hgweb/hgweb_mod.py	Sat Oct 14 15:28:45 2006 -0700
@@ -393,6 +393,7 @@
                      node=hex(fctx.node()),
                      author=fctx.user(),
                      date=fctx.date(),
+                     desc=fctx.description(),
                      rename=self.renamelink(fl, n),
                      parent=self.siblings(fctx.parents(), file=f),
                      child=self.siblings(fctx.children(), file=f),
--- a/templates/fileannotate.tmpl	Sat Oct 14 18:47:48 2006 -0300
+++ b/templates/fileannotate.tmpl	Sat Oct 14 15:28:45 2006 -0700
@@ -32,6 +32,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>
 
 <br/>
--- a/templates/gitweb/fileannotate.tmpl	Sat Oct 14 18:47:48 2006 -0300
+++ b/templates/gitweb/fileannotate.tmpl	Sat Oct 14 15:28:45 2006 -0700
@@ -25,6 +25,7 @@
 
 <div class="title">#file|escape#</div>
 
+<div class="title_text">
 <table>
 <tr>
  <td class="metatag">changeset #rev#:</td>
@@ -45,7 +46,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">
 <table>
 #annotate%annotateline#