{% load i18n dashboard gnm %}
{% if user.is_authenticated %}
<span class="dashboard-cell-icons">
{% if not in_dashboard %}
  {% with tile=cell|airquality_hack:request|as_dashboard_cell:request.user %}
    {% if tile %}
    <a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=tile.cell.get_reference %}"><span class="sr-only">Retirer du tableau de bord</span></a>
    {% else %}
    <a class="add-to-dashboard" href="{% url 'combo-dashboard-add-tile' cell_reference=cell.get_reference %}"><span class="sr-only">Ajouter au tableau de bord</span></a>
    {% endif %}
  {% endwith %}
{% else %}
  <a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=cell.get_reference %}"><span class="sr-only">Retirer du tableau de bord</span></a>
{% endif %}
</span>
<span class="move-up"></span>
{% else %} {# not user.is_authenticated #}
  <span class="dashboard-cell-icons">
  <a class="add-to-dashboard fake" href="{% url 'combo-dashboard-add-tile' cell_reference=cell.get_reference %}"><span class="sr-only">Ajouter au tableau de bord</span></a>
  </span>
{% endif %}
