Add counter activity

This commit is contained in:
Skia
2016-09-12 17:34:33 +02:00
parent c748bb8450
commit 6cacfb8d8d
5 changed files with 52 additions and 3 deletions

View File

@ -25,12 +25,14 @@
<ul>
{% for bar in Counter.objects.filter(type="BAR").all() %}
<li>
<a href="{{ url('counter:activity', counter_id=bar.id) }}" style="padding: 0px">
{% if bar.is_open() %}
<span style="color: green">&#x2713;</span>
{% else %}
<span style="color: red">&#10007;</span>
{% endif %}
{{ bar }}
</a>
</li>
{% endfor %}
</ul>