SciPost Code Repository

Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
reception.html 712 B
{% load common_extras %}

{% with strength=value|multiply:5|int_divide:max %}

  {% if strength == 0 %}
    <span title="{{ value }}" class="text-secondary">{% include "bi/reception-0.html" %}</span>
  {% elif strength == 1 %}
    <span title="{{ value }}" class="text-success">{% include "bi/reception-1.html" %}</span>
  {% elif strength == 2 %}
    <span title="{{ value }}" class="text-primary">{% include "bi/reception-2.html" %}</span>
  {% elif strength == 3 %}
    <span title="{{ value }}" class="text-warning">{% include "bi/reception-3.html" %}</span>
  {% elif strength >= 4 %}
    <span title="{{ value }}" class="text-danger">{% include "bi/reception-4.html" %}</span>
  {% endif %}

{% endwith %}