{% extends "layout.html" %} {% block content %}

Kanban Board Overview

Manage your tasks visually across all projects

{% if project_boards %}
{% for project, boards in project_boards.items() %}

{{ project.code }} {{ project.name }}

{% if project.category %} {{ project.category.icon or '📁' }} {{ project.category.name }} {% endif %} {% if project.description %}

{{ project.description }}

{% endif %}

Kanban Boards ({{ boards|length }})

{% for board in boards %}
{{ board.name }} {% if board.is_default %} Default {% endif %}
{% if board.description %}
{{ board.description }}
{% endif %}
{{ board.columns|length }} columns {% set board_cards = 0 %} {% for column in board.columns %} {% set board_cards = board_cards + column.cards|selectattr('is_active')|list|length %} {% endfor %} {{ board_cards }} cards
{% endfor %}
{% set default_board = boards|selectattr('is_default')|first %} {% if not default_board %} {% set default_board = boards|first %} {% endif %} {% if default_board and default_board.columns %}
{{ default_board.name }} Preview
{% for column in default_board.columns %} {% if loop.index <= 4 %}
{{ column.name }} {{ column.cards|selectattr('is_active')|list|length }}
{% set active_cards = column.cards|selectattr('is_active')|list %} {% for card in active_cards %} {% if loop.index <= 3 %}
{% if card.title|length > 30 %} {{ card.title|truncate(30, True) }} {% else %} {{ card.title }} {% endif %}
{% if card.assigned_to %}
{{ card.assigned_to.username }}
{% endif %}
{% endif %} {% endfor %} {% if active_cards|length > 3 %}
+{{ active_cards|length - 3 }} more
{% endif %}
{% endif %} {% endfor %} {% if default_board.columns|length > 4 %}
+{{ default_board.columns|length - 4 }} more columns
{% endif %}
{% endif %}
{% endfor %}

{{ project_boards.keys()|list|length }}

Projects with Kanban

{% set total_boards = 0 %} {% for project, boards in project_boards.items() %} {% set total_boards = total_boards + boards|length %} {% endfor %}

{{ total_boards }}

Total Boards

{% set total_cards = 0 %} {% for project, boards in project_boards.items() %} {% for board in boards %} {% for column in board.columns %} {% set total_cards = total_cards + column.cards|selectattr('is_active')|list|length %} {% endfor %} {% endfor %} {% endfor %}

{{ total_cards }}

Total Cards

{% else %}
📋

No Kanban Boards Yet

Start organizing your projects with visual Kanban boards.

Getting Started:

  1. Go to a project from Project Management
  2. Click the "Kanban" button
  3. Create your first board and start organizing tasks
{% if g.user.role.value in ['Team Leader', 'Supervisor', 'Administrator', 'System Administrator'] %} Go to Projects {% endif %}
{% endif %}
{% endblock %}