{% extends "layout.html" %} {% block content %}
{% if projects %}
{{ projects|length }}
Total Projects
{{ projects|selectattr('is_active')|list|length }}
Active Projects
{{ categories|length }}
Categories
{{ projects|map(attribute='time_entries')|map('length')|sum }}
Time Entries
{% endif %}
{% if projects %}
{% for project in projects %}
{{ project.code }}
{{ 'Active' if project.is_active else 'Inactive' }}

{{ project.name }}

{% if project.category %}
{{ project.category.icon|safe if project.category.icon else ''|safe }} {{ project.category.name }}
{% endif %}
{{ project.team.name if project.team else 'All Teams' }}
{% if project.start_date %} {{ project.start_date.strftime('%b %d, %Y') }} {% if project.end_date %} - {{ project.end_date.strftime('%b %d, %Y') }}{% endif %} {% else %} No dates set {% endif %}
{{ project.time_entries|length }} time entries
Created by {{ project.created_by.username }}
Edit Tasks {% if g.user.role in [Role.ADMIN, Role.SYSTEM_ADMIN] %}
{% endif %}
{% endfor %}
{% for project in projects %} {% endfor %}
Code Name Category Team Status Duration Created By Entries Actions
{{ project.code }} {{ project.name }} {% if project.category %} {{ project.category.icon|safe if project.category.icon else ''|safe }} {{ project.category.name }} {% else %} - {% endif %} {{ project.team.name if project.team else 'All Teams' }} {{ 'Active' if project.is_active else 'Inactive' }} {% if project.start_date %} {{ project.start_date|format_date }} {% if project.end_date %}
to {{ project.end_date|format_date }}{% endif %} {% else %} - {% endif %}
{{ project.created_by.username }} {{ project.time_entries|length }}
{% if g.user.role in [Role.ADMIN, Role.SYSTEM_ADMIN] %}
{% endif %}
{% else %}

No Projects Yet

Create your first project to start tracking time

Create First Project
{% endif %}
{% endblock %}