combo/combo/apps/dashboard/templates/combo/dashboard_cell_icons.html

19 lines
762 B
HTML

{% load i18n dashboard %}
{% block content %}
{% if user.is_authenticated %}
<span class="dashboard-cell-icons">
{% if not in_dashboard %}
{% with tile=cell|as_dashboard_cell:request.user %}
{% if tile %}
<a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=tile.cell.get_reference %}"></a>
{% else %}
<a class="add-to-dashboard" href="{% url 'combo-dashboard-add-tile' cell_reference=cell.get_reference %}"></a>
{% endif %}
{% endwith %}
{% else %}
<a class="remove-from-dashboard" href="{% url 'combo-dashboard-remove-tile' cell_reference=cell.get_reference %}"></a>
{% endif %}
</span>
{% endif %}
{% endblock %}