| 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 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 "field": field} %} | 154 "field": field} %} |
| 155 {%- set count = items|length %} | 155 {%- set count = items|length %} |
| 156 <div id="{{field.name}}" class="block_title">{{field.title}}</div> | 156 <div id="{{field.name}}" class="block_title">{{field.title}}</div> |
| 157 <div class="block"> | 157 <div class="block"> |
| 158 <table align="center"> | 158 <table align="center"> |
| 159 <tr> | 159 <tr> |
| 160 <th bgcolor="#ECECEC">{{field.coltitle}}</th> | 160 <th bgcolor="#ECECEC">{{field.coltitle}}</th> |
| 161 <th bgcolor="#66DDEE" colspan="2">Hits</th> | 161 <th bgcolor="#66DDEE" colspan="2">Hits</th> |
| 162 <th bgcolor="#2EA495" colspan="2">Bandwidth</th> | 162 <th bgcolor="#2EA495" colspan="2">Bandwidth</th> |
| 163 </tr> | 163 </tr> |
| 164 {%- for name, value in items[0:30] %} | 164 {%- for name, value in items[0:field|defaultcount] %} |
| 165 {{row(name, value, params, special=name|isspecial(field), | 165 {{row(name, value, params, special=name|isspecial(field), |
| 166 filtered_url=filtered_urls.get(field.name, {}).get(name, None))}
} | 166 filtered_url=filtered_urls.get(field.name, {}).get(name, None))}
} |
| 167 {%- endfor %} | 167 {%- endfor %} |
| 168 {%- if count > 30 %} | 168 {%- if count > field|defaultcount %} |
| 169 <tr id="{{field.name}}_showAll" class="special"> | 169 <tr id="{{field.name}}_showAll" class="special"> |
| 170 <td> | 170 <td> |
| 171 Other | 171 Other |
| 172 <a href="#" class="showAllLink" data-hide="{{field.name}}_showAl
l" data-show="{{field.name}}_additionalItems"> | 172 <a href="#" class="showAllLink" data-hide="{{field.name}}_showAl
l" data-show="{{field.name}}_additionalItems"> |
| 173 Show all | 173 Show all |
| 174 </a> | 174 </a> |
| 175 </td> | 175 </td> |
| 176 <td align="right">{{items[30:]|sumhits}}</td> | 176 <td align="right">{{items[field|defaultcount:]|sumhits}}</td> |
| 177 <td> </td> | 177 <td> </td> |
| 178 <td align="right">{{items[30:]|sumbandwidth|bytes}}</td> | 178 <td align="right">{{items[field|defaultcount:]|sumbandwidth|bytes}
}</td> |
| 179 <td> </td> | 179 <td> </td> |
| 180 <td> </td> | 180 <td> </td> |
| 181 </tr> | 181 </tr> |
| 182 <tbody id="{{field.name}}_additionalItems" style="display: none;"> | 182 <tbody id="{{field.name}}_additionalItems" style="display: none;"> |
| 183 {%- for name, value in items[30:] %} | 183 {%- for name, value in items[field|defaultcount:] %} |
| 184 {{row(name, value, params, special=name|isspecial(field), | 184 {{row(name, value, params, special=name|isspecial(field), |
| 185 filtered_url=filtered_urls.get(field.name, {}).get(name, None)
)}} | 185 filtered_url=filtered_urls.get(field.name, {}).get(name, None)
)}} |
| 186 {%- endfor %} | 186 {%- endfor %} |
| 187 </tbody> | 187 </tbody> |
| 188 {%- endif %} | 188 {%- endif %} |
| 189 {%- if field.showaverage %} | 189 {%- if field.showaverage %} |
| 190 {%- set avghits = (params.totalhits / count)|int %} | 190 {%- set avghits = (params.totalhits / count)|int %} |
| 191 {%- set avgbandwidth = (params.totalbandwidth / count)|int %} | 191 {%- set avgbandwidth = (params.totalbandwidth / count)|int %} |
| 192 {{row("Average", {"hits": avghits, "bandwidth": avgbandwidth}, par
ams, special=True, emph=True)}} | 192 {{row("Average", {"hits": avghits, "bandwidth": avgbandwidth}, par
ams, special=True, emph=True)}} |
| 193 {%- endif %} | 193 {%- endif %} |
| 194 {%- if field.name == "day" and filterFields|length == 0 %} | 194 {%- if field.name == "day" and filterFields|length == 0 %} |
| 195 {{row("Total", {"hits": params.totalhits, "bandwidth": params.tota
lbandwidth}, params, special=True, emph=True, chart=False)}} | 195 {{row("Total", {"hits": params.totalhits, "bandwidth": params.tota
lbandwidth}, params, special=True, emph=True, chart=False)}} |
| 196 {%- endif %} | 196 {%- endif %} |
| 197 </table> | 197 </table> |
| 198 </div> | 198 </div> |
| 199 {%- endif %} | 199 {%- endif %} |
| 200 {%- endfor %} | 200 {%- endfor %} |
| 201 </body> | 201 </body> |
| 202 </html> | 202 </html> |
| OLD | NEW |