Mercurial > hg
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/paper/diffstat.tmpl Thu Jun 09 01:19:39 2011 +0800 @@ -0,0 +1,8 @@ + <tr class="parity{parity}"> + <td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td> + <td class="diffstat-total" align="right">{total}</td> + <td class="diffstat-graph"> + <span class="diffstat-add" style="width:{addpct}%;"> </span> + <span class="diffstat-remove" style="width:{removepct}%;"> </span> + </td> + </tr>