mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 02:33:22 +00:00
4bc4d266c2
En raison de la manière dont le timeout marche et de l'activité des comptoirs, la notion de "comptoir inactif" n'est pas intuitive. Un comptoir est ouvert ou fermé. Point.
42 lines
1.2 KiB
Django/Jinja
42 lines
1.2 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from 'core/macros.jinja' import user_profile_link %}
|
|
|
|
{% block title %}
|
|
{% trans counter_name=counter %}{{ counter_name }} activity{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{%- block additional_css -%}
|
|
<link rel="stylesheet" href="{{ static('counter/css/activity.scss') }}">
|
|
{%- endblock -%}
|
|
|
|
{% block content %}
|
|
<h3>{% trans counter_name=counter %}{{ counter_name }} activity{% endtrans %}</h3>
|
|
{% if counter.type == 'BAR' %}
|
|
<h4>{% trans %}Barmen list{% endtrans %}</h4>
|
|
<ul>
|
|
{% if counter.barmen_list | length > 0 %}
|
|
{% for b in counter.barmen_list %}
|
|
<li>{{ user_profile_link(b) }}</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% trans %}There is currently no barman connected.{% endtrans %}
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<h5>{% trans %}Legend{% endtrans %}</h5>
|
|
<div class="activity-description">
|
|
<div>
|
|
<i class="fa fa-check" style="color: #2ecc71"></i>
|
|
<span>{% trans %}counter is open, there's at least one barman connected{% endtrans %}</span>
|
|
</div>
|
|
<div>
|
|
<i class="fa fa-times" style="color: #eb2f06"></i>
|
|
<span>{% trans %}counter is not open : no one is connected{% endtrans %}</span>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|
|
|