{% load icons %}
{% load i18n %}
{% load translations %}

{% for check in billing.libre_checklist %}
  <p>
    {% if check %}
    <span class="green">{% icon "check.svg" %}</span>
    {% else %}
    <span class="red">{% icon "alert.svg" %}</span>
    {% endif %}
    {{ check }}
  </p>
  {% if check.component %}
    {% if not check.component.is_glossary %}
    <p>
      {% icon "comment.svg" %}
      <a href="{% url "guide" path=check.component.get_url_path %}">{% trans "Review guidelines from the community localization checklist." %}</a>
    <p>
    {% endif %}
    {% if check.component.agreement %}
    <p>
      {% icon "suggest.svg" %}
      <a href="{{ check.component.get_absolute_url }}#information">{% trans "Contributor agreement" %}</a>
      {{ check.component.agreement|markdown }}
    </p>
    {% endif %}
  {% endif %}
{% endfor %}
