| Index: sitescripts/logs/template/subscriptionsMain.html |
| =================================================================== |
| --- a/sitescripts/logs/template/subscriptionsMain.html |
| +++ b/sitescripts/logs/template/subscriptionsMain.html |
| @@ -1,24 +1,24 @@ |
| -<!-- |
| - - This file is part of the Adblock Plus web scripts, |
| - - Copyright (C) 2006-2012 Eyeo GmbH |
| - - |
| - - Adblock Plus is free software: you can redistribute it and/or modify |
| - - it under the terms of the GNU General Public License version 3 as |
| - - published by the Free Software Foundation. |
| - - |
| - - Adblock Plus is distributed in the hope that it will be useful, |
| - - but WITHOUT ANY WARRANTY; without even the implied warranty of |
| - - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| - - GNU General Public License for more details. |
| - - |
| - - You should have received a copy of the GNU General Public License |
| - - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| - --> |
| +<!-- |
| + - This file is part of the Adblock Plus web scripts, |
| + - Copyright (C) 2006-2012 Eyeo GmbH |
| + - |
| + - Adblock Plus is free software: you can redistribute it and/or modify |
| + - it under the terms of the GNU General Public License version 3 as |
| + - published by the Free Software Foundation. |
| + - |
| + - Adblock Plus is distributed in the hope that it will be useful, |
| + - but WITHOUT ANY WARRANTY; without even the implied warranty of |
| + - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| + - GNU General Public License for more details. |
| + - |
| + - You should have received a copy of the GNU General Public License |
| + - along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| + --> |
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta name="robots" content="noindex,nofollow" /> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <link rel="stylesheet" type="text/css" href="static/subscriptions.css" /> |
| @@ -46,18 +46,18 @@ |
| <div class="block"> |
| <table align="center"> |
| <tr> |
| <th bgcolor="#ECECEC">Subscription</th> |
| <th bgcolor="#66DDEE">Hits</th> |
| <th bgcolor="#2EA495">Bandwidth</th> |
| <th> </th> |
| </tr> |
| - {%- set maxHits = subscriptions|max(attribute='hits') %} |
| - {%- set maxBandwidth = subscriptions|max(attribute='bandwidth') %} |
| + {%- set maxHits = subscriptions|max(attribute='hits')|ensuremin(1) %} |
| + {%- set maxBandwidth = subscriptions|max(attribute='bandwidth')|ensuremin(1) %} |
| {%- for subscription in subscriptions %} |
| <tr> |
| <td><a href="{{subscription.url}}">{{subscription.fileName}}</a></td> |
| <td align="right">{{subscription.hits}}</td> |
| <td align="right">{{subscription.bandwidth|bytes}}</td> |
| <td class="chart"> |
| <div class="hitsChart horizontal" style="width: {{(subscription.hits / maxHits * 100)|round(method='ceil')|int}}px;"></div><br /> |
| <div class="bandwidthChart horizontal" style="width: {{(subscription.bandwidth / maxBandwidth * 100)|round(method='ceil')|int}}px;"></div> |