{% extends 'repository/repo_layout.html' %} {% block title %}Tasks - {{ repo_owner }}/{{ repo_name }} - {{ brand_name }}{% endblock %} {% block repo_content %}

Tasks

{{ tasks|length }}
{% if repo.can_write %} {% endif %}
{% if tasks %}
{% for task in tasks %}
{% if task.status == 'To Do' %} {% elif task.status == 'In Progress' %} {% else %} {% endif %}
Type: {{ task.task_type }} {% if task.priority == 'HIGH' %} Priority: High {% elif task.priority == 'MED' %} Priority: Med {% else %} Priority: Low {% endif %} {% if task.complexity == 'HIGH' %} Complexity: High {% elif task.complexity == 'MED' %} Complexity: Med {% else %} Complexity: Low {% endif %} {% if task.due_date %} {{ task.due_date }} {% endif %}
#{{ task.id }} created {{ task.created_at | timesince }} by {% if task.author_avatar %} {% else %}
{{ task.author_name[:2] }}
{% endif %} {{ task.author_name }}
{% if task.assignees %}
{% for assignee in task.assignees %} {% if assignee.profile_picture %} {% else %}
{{ assignee.username[:2] }}
{% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% else %}

No tasks found

{% if search_query %} No tasks match your search "{{ search_query }}" for the selected status. {% else %} There are no tasks matching the selected status. {% endif %}

{% if repo.can_write %} {% endif %}
{% endif %}
{% include 'repository_modals/new_task_modal.html' %} {% endblock %}