| Index: sitescripts/stats/template/fileOverview.html |
| =================================================================== |
| --- a/sitescripts/stats/template/fileOverview.html |
| +++ b/sitescripts/stats/template/fileOverview.html |
| @@ -51,18 +51,18 @@ |
| {%- set maxhits = data|maxhits %} |
| {%- set maxbandwidth = data|maxbandwidth %} |
| {%- for name, value in data|reverse %} |
| <tr> |
| <td><a href="{{value.url}}">{{name|monthname}}</a></td> |
| <td align="right">{{value.hits}}</td> |
| <td align="right">{{value.bandwidth|bytes}}</td> |
| <td class="chart"> |
| - <div class="hitsChart" style="width: {{(value.hits / maxhits * 100)|round(method='ceil')|int}}px;"></div><br /> |
| - <div class="bandwidthChart" style="width: {{(value.bandwidth / maxbandwidth * 100)|round(method='ceil')|int}}px;"></div> |
| + <div class="hitsChart" style="width: {{value.hits|percentage(maxhits)|round(method='ceil')|int}}px;"></div><br /> |
| + <div class="bandwidthChart" style="width: {{value.bandwidth|percentage(maxbandwidth)|round(method='ceil')|int}}px;"></div> |
| </td> |
| </tr> |
| {%- endfor %} |
| {%- set totalhits = data|sumhits %} |
| {%- set totalbandwidth = data|sumbandwidth %} |
| <tr class="special"> |
| <td class="emph">Total</td> |