mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Add inactive state for counters
This commit is contained in:
@ -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">?</span>
|
||||
{% elif bar.is_open(): %}
|
||||
<span style="color: green">✓</span>
|
||||
{% else %}
|
||||
<span style="color: red">✗</span>
|
||||
|
Reference in New Issue
Block a user