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

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

Issue 11576063: Stats processing: Add previousDownload field in addition to downloadInterval (Closed)
Patch Set: Created Sept. 5, 2013, 10:54 a.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
« no previous file with comments | « sitescripts/stats/common.py ('k') | sitescripts/stats/test/logprocessor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/stats/template/fileStats.html
===================================================================
--- a/sitescripts/stats/template/fileStats.html
+++ b/sitescripts/stats/template/fileStats.html
@@ -111,17 +111,17 @@
{%- endfor %}
<div id="quickLinks">
{%- if filterFields|length > 0 %}
<a href="#overview">Overview</a>
{%- endif %}
{%- for field in fields %}
- {%- if not field.filter and field.name in data %}
+ {%- if not field.filter and not field.hidden and field.name in data %}
<a href="#{{field.name}}">{{field.title}}</a>
{%- endif %}
{%- endfor %}
</div>
{%- if filterFields|length > 0 %}
{%- if filter %}
{%- set params = {"totalhits": data.hits, "totalbandwidth": data.bandwidth, "field": {"name": None}} %}
@@ -142,17 +142,17 @@
filtered_url=filtered_urls.get(field.name, {}).get("true", None))}}
{%- endfor %}
{{row("Total", {"hits": params.totalhits, "bandwidth": params.totalbandwidth}, params, special=True, emph=True, chart=False)}}
</table>
</div>
{%- endif %}
{%- for field in fields %}
- {%- if not field.filter and field.name in data %}
+ {%- if not field.filter and not field.hidden and field.name in data %}
{%- set items = data[field.name]|sortfield(field) %}
{%- set params = {"maxhits": items|maxhits, "maxbandwidth": items|maxbandwidth,
"totalhits": items|sumhits, "totalbandwidth": items|sumbandwidth,
"field": field} %}
{%- set count = items|length %}
<div id="{{field.name}}" class="block_title">{{field.title}}</div>
<div class="block">
<table align="center">
« no previous file with comments | « sitescripts/stats/common.py ('k') | sitescripts/stats/test/logprocessor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld