diff mercurial/templates/paper/changeset.tmpl @ 14571:17c0cb1045e5

paper, coal: display diffstat on the changeset page Displayed in a row of the changeset summary table, underneath the list of files. When the page is loaded, only the diff summary is displayed. The full diffstat is only displayed when the [+] link is selected.
author Steven Brown <StevenGBrown@gmail.com>
date Sat, 11 Jun 2011 21:24:50 +0800
parents b24e5a708fad
children 4aef71839337
line wrap: on
line diff
--- a/mercurial/templates/paper/changeset.tmpl	Sat Jun 11 21:11:43 2011 +0800
+++ b/mercurial/templates/paper/changeset.tmpl	Sat Jun 11 21:24:50 2011 +0800
@@ -62,6 +62,18 @@
  <th class="files">files</th>
  <td class="files">{files}</td>
 </tr>
+<tr>
+  <th class="diffstat">diffstat</th>
+  <td class="diffstat">
+    {diffsummary}
+    <a id="diffstatexpand" href="javascript:showDiffstat()"/>[+]</a>
+    <div id="diffstatdetails" style="display:none;">
+      <a href="javascript:hideDiffstat()"/>[-]</a>
+      <p>
+      <table>{diffstat}</table>
+    </div>
+  </td>
+</tr>
 </table>
 
 <div class="overflow">