changeset 3391:defadc26e674

hgweb: add changeset description to annotate page
author Brendan Cully <brendan@kublai.com>
date Sat, 14 Oct 2006 15:28:45 -0700
parents a74addddd092
children 17894d1d9eea
files mercurial/hgweb/hgweb_mod.py templates/fileannotate.tmpl templates/gitweb/fileannotate.tmpl
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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#