{% load i18n %} {# Board cards; expects `boards` with `stats` and `list_count`. #} {% for board in boards %}

{{ board.name }}

{% if board.stats.needs_attention %} {% endif %} {% if board.is_ticket_board %} {% endif %} {% if request.user.is_superuser or board.created_by == request.user or board in request.user.kanban_write_boards.all %} {% trans "Editor" %} {% else %} {% trans "Read-Only" %} {% endif %}

{% if board.description %} {{ board.description|truncatewords:20 }} {% else %} {% trans "No description provided." %} {% endif %}

{% if board.stats.needs_attention %}
    {% if board.stats.overdue %}
  • {% blocktrans count counter=board.stats.overdue %}{{ counter }} card past its due date{% plural %}{{ counter }} cards past their due date{% endblocktrans %}
  • {% endif %} {% if board.stats.inactive %}
  • {% blocktrans count counter=board.stats.inactive with hours=board.stale_card_alert_hours %}{{ counter }} card inactive for over {{ hours }}h{% plural %}{{ counter }} cards inactive for over {{ hours }}h{% endblocktrans %}
  • {% endif %} {% for column in board.stats.over_wip %}
  • {% blocktrans %}{{ column }} is over its WIP limit{% endblocktrans %}
  • {% endfor %}
{% endif %}
{{ board.stats.card_count }} {% trans "cards" %} {{ board.list_count }} {% trans "columns" %} {{ board.updated_at|date:"d M Y" }}
{% endfor %}