Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/stats/template/fileOverview.html

Issue 29934561: #1537 - Remove stats processing from sitescripts (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Created Nov. 2, 2018, 12:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sitescripts/stats/template/fileOverview.html
===================================================================
deleted file mode 100644
--- a/sitescripts/stats/template/fileOverview.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<!--
- - This file is part of the Adblock Plus web scripts,
- - Copyright (C) 2006-present 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 charset="utf-8">
- <link rel="stylesheet" type="text/css" href="../static/stats.css" />
- <title>Overview for file {{url}}</title>
- </head>
-
- <body style="margin-top: 0px">
- <a name="top">&nbsp;</a>
- <table class="block" width="100%">
- <tr>
- <td class="title" width="250">Overview for file:</td>
- <td>{{url}}</td>
- </tr>
- <tr>
- <td class="title" width="250">Last update:</td>
- <td>{{now|formattime}}</td>
- </tr>
- </table>
-
- <div class="block_title">Monthly history</div>
- <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>&nbsp;</th>
- </tr>
- {%- set data = data|dictsort(true) %}
- {%- set maxhits = data|maxhits %}
- {%- set maxbandwidth = data|maxbandwidth %}
- {%- 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|percentage(maxhits)|round(method='ceil')|int}}px;"></div><br />
- <div class="bandwidthChart" style="width: {{value.bandwidth|percentage(maxbandwidth)|round(method='ceil')|int}}px;"></div>
- </td>
- </tr>
- {%- endfor %}
-
- {%- set totalhits = data|sumhits %}
- {%- set totalbandwidth = data|sumbandwidth %}
- <tr class="special">
- <td class="emph">Total</td>
- <td align="right">{{totalhits}}</td>
- <td align="right">{{totalbandwidth|bytes}}</td>
- <td align="right">&nbsp;</td>
- </tr>
- </table>
- </div>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld