Add a count to the side by side table of contents
Add a count to the side by side table of contents

--- a/css/gitphpskin.css
+++ b/css/gitphpskin.css
@@ -422,6 +422,11 @@
 	padding-left: 8px;
 }
 
+div.commitDiffSBS div.SBSTOC .listcount
+{
+	list-style-type: none;
+}
+
 div.commitDiffSBS .SBSContent
 {
 	float: right;

--- a/templates/commitdiff.tpl
+++ b/templates/commitdiff.tpl
@@ -37,6 +37,8 @@
 
      <div class="SBSTOC">
        <ul>
+       <li class="listcount">
+       {t count=$treediff->Count() 1=$treediff->Count() plural="%1 files changed:"}%1 file changed:{/t}</li>
        {foreach from=$treediff item=filediff}
        <li>
        <a href="#{$filediff->GetFromHash()}_{$filediff->GetToHash()}">

comments