Private
Public Access
1
0

alerts stats on alerts page

This commit is contained in:
Sander Roosendaal
2019-08-26 18:08:10 +02:00
parent ce582f7563
commit 454bcde22f
4 changed files with 57 additions and 3 deletions

View File

@@ -12,6 +12,33 @@
<ul class="main-content">
{% if alerts %}
{% for alert in alerts %}
<li class="rounder">
<h2>{{ alert.name }}</h2>
<a class="small" href="/rowers/alerts/{{ alert.id }}/edit/" title="Edit">
<i class="fas fa-pencil-alt fa-fw"></i>
</a>
<a class="small" href="/rowers/alerts/{{ alert.id }}/delete/"
title="Delete">
<i class="fas fa-trash-alt fa-fw"></i>
</a>
<hr>
<a href="/rowers/alerts/{{ alert.id }}/report/">
<div id="id_alert_{{ forloop.counter }}">
<h1>{{ stats|alertstatspercentage:forloop.counter }}%</h1>
</div>
</a>
<p>
{{ alert.description }}
</p>
<p>
Workout type: {{ alert.workouttype }}
</p>
<p>
Next Run: {{ alert.next_run }}
</p>
</li>
{% endfor %}
<li class="grid_4">
<table width="100%" class="listtable shortpadded">
<thead>
@@ -68,6 +95,7 @@
{% endblock %}
{% block sidebar %}
{% include 'menu_analytics.html' %}
{% endblock %}