annotate mercurial/templates/paper/diffstat.tmpl @ 14563:81fc9678b018

paper, coal: define the diffstat templates The templates output the filename, the total number of changes to the file and a bar graph of the adds and removes. The filename is a link into the diff output. The diffstat is not yet displayed, but it can be manually added to the changeset page template.
author Steven Brown <StevenGBrown@gmail.com>
date Thu, 09 Jun 2011 01:19:39 +0800
parents
children c229a5e7511e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14563
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
1 <tr class="parity{parity}">
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
2 <td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td>
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
3 <td class="diffstat-total" align="right">{total}</td>
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
4 <td class="diffstat-graph">
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
5 <span class="diffstat-add" style="width:{addpct}%;">&nbsp;</span>
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
6 <span class="diffstat-remove" style="width:{removepct}%;">&nbsp;</span>
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
7 </td>
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
diff changeset
8 </tr>