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-2013 Eyeo GmbH | 3 - Copyright (C) 2006-2013 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 |
11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 - GNU General Public License for more details. | 12 - GNU General Public License for more details. |
13 - | 13 - |
14 - You should have received a copy of the GNU General Public License | 14 - You should have received a copy of the GNU General Public License |
15 - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 --> | 16 --> |
17 | 17 |
18 | 18 |
19 <!DOCTYPE html> | 19 <!DOCTYPE html> |
20 <html lang="en"> | 20 <html lang="en"> |
21 <head> | 21 <head> |
22 <meta name="robots" content="noindex,nofollow" /> | 22 <meta name="robots" content="noindex,nofollow" /> |
23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 23 <meta charset="utf-8"> |
24 <link rel="stylesheet" type="text/css" href="static/subscriptions.css" /> | 24 <link rel="stylesheet" type="text/css" href="../static/stats.css" /> |
25 <title>Overview for filter subscription {{fileName}}</title> | 25 <title>Overview for file {{url}}</title> |
26 </head> | 26 </head> |
27 | 27 |
28 <body style="margin-top: 0px"> | 28 <body style="margin-top: 0px"> |
29 <a name="top"> </a> | 29 <a name="top"> </a> |
30 <table class="block" width="100%"> | 30 <table class="block" width="100%"> |
31 <tr> | 31 <tr> |
32 <td class="title" width="250">Overview for subscription:</td> | 32 <td class="title" width="250">Overview for file:</td> |
33 <td>easylist-downloads.adblockplus.org/{{fileName}}</td> | 33 <td>{{url}}</td> |
34 </tr> | 34 </tr> |
35 <tr> | 35 <tr> |
36 <td class="title" width="250">Last update:</td> | 36 <td class="title" width="250">Last update:</td> |
37 <td>{{now|formattime}}</td> | 37 <td>{{now|formattime}}</td> |
38 </tr> | 38 </tr> |
39 </table> | 39 </table> |
40 | 40 |
41 <div class="block_title">Monthly history</div> | 41 <div class="block_title">Monthly history</div> |
42 <div class="block"> | 42 <div class="block"> |
43 <table align="center" style="margin-bottom: 20px;"> | 43 <table align="center" style="margin-bottom: 20px;"> |
44 <tr align="bottom"> | |
45 {%- set maxHits = month|max(attribute='hits')|ensuremin(1) %} | |
46 {%- set maxBandwidth = month|max(attribute='bandwidth')|ensuremin(1) %
} | |
47 {%- set totalHits = month|sum(attribute='hits')|ensuremin(1) %} | |
48 {%- set totalBandwidth = month|sum(attribute='bandwidth')|ensuremin(1)
%} | |
49 {%- for info in month %} | |
50 <td align="center" style="vertical-align: bottom;"> | |
51 <div class="hitsChart vertical" title="Hits: {{info.hits}}" style="h
eight: {{(info.hits / maxHits * 100)|round(method='ceil')|int}}px;"></div> | |
52 {{- '' -}} | |
53 <div class="bandwidthChart vertical" title="Bandwidth: {{info.bandwi
dth|bytes}}" style="height: {{(info.bandwidth / maxBandwidth * 100)|round(method
='ceil')|int}}px;"></div> | |
54 </td> | |
55 {%- endfor %} | |
56 </tr> | |
57 <tr> | |
58 {%- for info in month %} | |
59 <td align="center"> | |
60 <a href="{{info.url}}">{{info.id|monthname(format='%b')}}<br />{{inf
o.id|monthname(format='%Y')}}</a> | |
61 </td> | |
62 {%- endfor %} | |
63 </tr> | |
64 </table> | |
65 | |
66 <table align="center"> | |
67 <tr> | 44 <tr> |
68 <th bgcolor="#ECECEC">Month</th> | 45 <th bgcolor="#ECECEC">Month</th> |
69 <th bgcolor="#66DDEE" colspan="2">Hits</th> | 46 <th bgcolor="#66DDEE">Hits</th> |
70 <th bgcolor="#2EA495">Bandwidth</th> | 47 <th bgcolor="#2EA495">Bandwidth</th> |
| 48 <th> </th> |
71 </tr> | 49 </tr> |
72 {%- for info in month %} | 50 {%- set data = data.items() %} |
| 51 {%- set maxhits = data|maxhits %} |
| 52 {%- set maxbandwidth = data|maxbandwidth %} |
| 53 {%- for name, value in data %} |
73 <tr> | 54 <tr> |
74 <td><a href="{{info.url}}">{{info.id|monthname}}</a></td> | 55 <td><a href="{{value.url}}">{{name|monthname}}</a></td> |
75 <td align="right">{{info.hits}}</td> | 56 <td align="right">{{value.hits}}</td> |
76 <td align="right">{{(info.hits / totalHits * 100)|round(precision=1)}}
%</td> | 57 <td align="right">{{value.bandwidth|bytes}}</td> |
77 <td align="right">{{info.bandwidth|bytes}}</td> | 58 <td class="chart"> |
| 59 <div class="hitsChart" style="width: {{(value.hits / maxhits * 100)|
round(method='ceil')|int}}px;"></div><br /> |
| 60 <div class="bandwidthChart" style="width: {{(value.bandwidth / maxba
ndwidth * 100)|round(method='ceil')|int}}px;"></div> |
| 61 </td> |
78 </tr> | 62 </tr> |
79 {%- endfor %} | 63 {%- endfor %} |
| 64 |
| 65 {%- set totalhits = data|sumhits %} |
| 66 {%- set totalbandwidth = data|sumbandwidth %} |
80 <tr class="special"> | 67 <tr class="special"> |
81 <td style="font-weight: bold">Total</td> | 68 <td class="emph">Total</td> |
82 <td align="right">{{totalHits}}</td> | 69 <td align="right">{{totalhits}}</td> |
| 70 <td align="right">{{totalbandwidth|bytes}}</td> |
83 <td align="right"> </td> | 71 <td align="right"> </td> |
84 <td align="right">{{totalBandwidth|bytes}}</td> | |
85 </tr> | 72 </tr> |
86 </table> | 73 </table> |
87 </div> | 74 </div> |
88 </body> | 75 </body> |
89 </html> | 76 </html> |
OLD | NEW |