| Index: sitescripts/stats/template/fileOverview.html |
| =================================================================== |
| --- a/sitescripts/stats/template/fileOverview.html |
| +++ b/sitescripts/stats/template/fileOverview.html |
| @@ -42,20 +42,20 @@ |
| <div class="block"> |
| <table align="center" style="margin-bottom: 20px;"> |
| <tr> |
| <th bgcolor="#ECECEC">Month</th> |
| <th bgcolor="#66DDEE">Hits</th> |
| <th bgcolor="#2EA495">Bandwidth</th> |
| <th> </th> |
| </tr> |
| - {%- set data = data.items() %} |
| + {%- set data = data|dictsort(true) %} |
| {%- set maxhits = data|maxhits %} |
| {%- set maxbandwidth = data|maxbandwidth %} |
| - {%- for name, value in data %} |
| + {%- 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> |
| </td> |