OLD | NEW |
1 <!-- | 1 <!-- |
2 - This file is part of the Adblock Plus web scripts, | 2 - This file is part of the Adblock Plus web scripts, |
3 - Copyright (C) 2006-2014 Eyeo GmbH | 3 - Copyright (C) 2006-2014 Eyeo GmbH |
4 - | 4 - |
5 - Adblock Plus is free software: you can redistribute it and/or modify | 5 - Adblock Plus is free software: you can redistribute it and/or modify |
6 - it under the terms of the GNU General Public License version 3 as | 6 - it under the terms of the GNU General Public License version 3 as |
7 - published by the Free Software Foundation. | 7 - published by the Free Software Foundation. |
8 - | 8 - |
9 - Adblock Plus is distributed in the hope that it will be useful, | 9 - Adblock Plus is distributed in the hope that it will be useful, |
10 - but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 </tr> | 49 </tr> |
50 {%- set data = data|dictsort(true) %} | 50 {%- set data = data|dictsort(true) %} |
51 {%- set maxhits = data|maxhits %} | 51 {%- set maxhits = data|maxhits %} |
52 {%- set maxbandwidth = data|maxbandwidth %} | 52 {%- set maxbandwidth = data|maxbandwidth %} |
53 {%- for name, value in data|reverse %} | 53 {%- for name, value in data|reverse %} |
54 <tr> | 54 <tr> |
55 <td><a href="{{value.url}}">{{name|monthname}}</a></td> | 55 <td><a href="{{value.url}}">{{name|monthname}}</a></td> |
56 <td align="right">{{value.hits}}</td> | 56 <td align="right">{{value.hits}}</td> |
57 <td align="right">{{value.bandwidth|bytes}}</td> | 57 <td align="right">{{value.bandwidth|bytes}}</td> |
58 <td class="chart"> | 58 <td class="chart"> |
59 <div class="hitsChart" style="width: {{(value.hits / maxhits * 100)|
round(method='ceil')|int}}px;"></div><br /> | 59 <div class="hitsChart" style="width: {{value.hits|percentage(maxhits
)|round(method='ceil')|int}}px;"></div><br /> |
60 <div class="bandwidthChart" style="width: {{(value.bandwidth / maxba
ndwidth * 100)|round(method='ceil')|int}}px;"></div> | 60 <div class="bandwidthChart" style="width: {{value.bandwidth|percenta
ge(maxbandwidth)|round(method='ceil')|int}}px;"></div> |
61 </td> | 61 </td> |
62 </tr> | 62 </tr> |
63 {%- endfor %} | 63 {%- endfor %} |
64 | 64 |
65 {%- set totalhits = data|sumhits %} | 65 {%- set totalhits = data|sumhits %} |
66 {%- set totalbandwidth = data|sumbandwidth %} | 66 {%- set totalbandwidth = data|sumbandwidth %} |
67 <tr class="special"> | 67 <tr class="special"> |
68 <td class="emph">Total</td> | 68 <td class="emph">Total</td> |
69 <td align="right">{{totalhits}}</td> | 69 <td align="right">{{totalhits}}</td> |
70 <td align="right">{{totalbandwidth|bytes}}</td> | 70 <td align="right">{{totalbandwidth|bytes}}</td> |
71 <td align="right"> </td> | 71 <td align="right"> </td> |
72 </tr> | 72 </tr> |
73 </table> | 73 </table> |
74 </div> | 74 </div> |
75 </body> | 75 </body> |
76 </html> | 76 </html> |
OLD | NEW |