]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/people/modules/mos.html
voip: Show queues
[ipfire.org.git] / src / templates / people / modules / mos.html
CommitLineData
68ece434 1{% if call.mos %}
dfea34a2
MT
2 {% if call.mos >= 4.5 %}
3 {% set color = "text-success" %}
4 {% elif call.mos >= 4.3 %}
5 {% set color = "text-warning" %}
6 {% else %}
7 {% set color = "text-danger" %}
8 {% end %}
9
10 <span class="text-muted" title="{{ "%.2f" % call.mos }}/5">
c2521dbf 11 {% for i in range(5) %}
68ece434 12 {% if call.mos > (i + 0.5) %}
dfea34a2 13 <span class="fas fa-star {{ color }}"></span>
68ece434 14 {% elif call.mos > i %}
dfea34a2 15 <span class="fas fa-star-half-alt {{ color }}"></span>
68ece434 16 {% else %}
dfea34a2 17 <span class="far fa-star {{ color }}"></span>
68ece434
MT
18 {% end %}
19 {% end %}
20 </span>
21{% end %}