fix bugs on signals

This commit is contained in:
bkfox
2016-11-14 13:35:15 +01:00
parent 45268cd699
commit b8d6c435d2
103 changed files with 47 additions and 32 deletions

0
aircox/templates/aircox/config/liquidsoap.liq Normal file → Executable file
View File

0
aircox/templates/aircox/controllers/base_site.html Normal file → Executable file
View File

0
aircox/templates/aircox/controllers/monitor.html Normal file → Executable file
View File

20
aircox/templates/aircox/controllers/stats.html Normal file → Executable file
View File

@ -1,12 +1,14 @@
{% extends "aircox/controllers/base_site.html" %}
{% extends "admin/base_site.html" %}
{# {% extends "aircox/controllers/base_site.html" %} #}
{% load i18n %}
{% block title %}
<h1>Statistics of the stations</h1>
{% trans "Statistics of the stations" %}
{% endblock %}
{% block content %}
<div id='stats'>
<div id='content'>
<h1>{% trans "Statistics of the stations" %}</h1>
{# TODO here #}
<form action="?" method="GET">
@ -58,10 +60,10 @@
{% endfor %}
<tr class="bottom">
<td>{{ stats.date|date:'d/m/Y' }}</td>
<td>{% trans "Total" %}</td>
<th>{{ stats.date|date:'d/m/Y' }}</th>
<th>{% trans "Total" %}</th>
{# TODO: translation block #}
<td>
<th>
{% with stats.items|length as items_count %}
{% with stats.count as tracks_count %}
{% blocktrans %}
@ -69,11 +71,11 @@
{% endblocktrans %}
{% endwith %}
{% endwith %}
</td>
<td>{% for tag, count, average in stats.tags %}
</th>
<th>{% for tag, count, average in stats.tags %}
<span>{{ tag }}: <b>{{ average|floatformat }}%</b> ({{ count }})<br>
{% endfor %}
</td>
</th>
</tr>
</table>
</section>