stats report alert
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}Metric Alert{% endblock %}
|
||||
|
||||
@@ -13,19 +14,33 @@
|
||||
</p>
|
||||
|
||||
<ul class="main-content">
|
||||
|
||||
<li>
|
||||
{{ stats|lookuplong:'startdate' }} - {{ stats|lookuplong:'enddate' }}
|
||||
</li>
|
||||
|
||||
<li class="grid_4">
|
||||
<h2>Alert</h2>
|
||||
<h2>{{ alert.name }}</h2>
|
||||
<p>{{ alert }}</p>
|
||||
<p>{{ alert.description }}</p>
|
||||
<p>This is a page under construction. Currently with minimal information</p>
|
||||
</li>
|
||||
{% for key, value in stats.items %}
|
||||
<li>
|
||||
<h2>{{ key }}</h2>
|
||||
<p>{{ value }}</p>
|
||||
<li class="rounder">
|
||||
<h2>Score</h2>
|
||||
<hr>
|
||||
<h2>{{ stats|lookup:'percentage' }}%</h2>
|
||||
</li>
|
||||
<li class="rounder">
|
||||
<h2>Data set</h2>
|
||||
<hr>
|
||||
<p>{{ stats|lookup:'workouts' }} workouts</p>
|
||||
<p>{{ stats|lookup:'nr_strokes_qualifying' }} strokes out of {{ stats|lookup:'nr_strokes' }}</p>
|
||||
</li>
|
||||
<li class="rounder">
|
||||
<h2>Statistics</h2>
|
||||
<hr>
|
||||
<p>Median {{ alert.metricname }}: {{ stats|lookup:'median'|sigdig }}</p>
|
||||
<p>Median {{ alert.metricname }}: {{ stats|lookup:'median_q'|sigdig }} ({{ alert.shortdescription }})</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user