Add inactive state for counters

This commit is contained in:
guillaume-renaud
2016-10-16 18:52:04 +02:00
committed by Skia
parent ba6e2c3712
commit 63f10c13d4
2 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,9 @@
{% 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() %}
{% if bar.is_inactive(): %}
<span style="color: orange">&#x3f;</span>
{% elif bar.is_open(): %}
<span style="color: green">&#x2713;</span>
{% else %}
<span style="color: red">&#10007;</span>