{% extends 'repository/repo_layout.html' %} {% from "_custom_select.html" import custom_select %} {% block title %}Task #{{ task.id }} - {{ repo_owner }}/{{ repo_name }}{% endblock %} {% block repo_content %}
#{{ task.id }}

{{ task.title }}

{% if task.status == 'To Do' %} To Do {% elif task.status == 'In Progress' %} In Progress {% else %} Done {% endif %}
{% if repo.can_write and (task.created_by == g.user.id or repo.owner_id == g.user.id) %} {% endif %} {% if repo.can_write %}
{{ custom_select(id="task-status-select", options=[ {"value": "To Do", "label": "To Do"}, {"value": "In Progress", "label": "In Progress"}, {"value": "Done", "label": "Done"} ], selected_value=task.status, selected_label=task.status, mode="form", picker_title="Update status", compact=true, class="[&_.modal-select-trigger]:rounded-lg [&_.modal-select-trigger]:border-0 [&_.modal-select-trigger]:bg-transparent [&_.modal-select-trigger]:shadow-none [&_.modal-select-value]:text-sm [&_.modal-select-value]:font-medium [&_.modal-select-value]:text-zinc-400 hover:[&_.modal-select-value]:text-white") }}
{% endif %}
{{ task.author_name }} {{ task.created_at | timesince }}
{% for comment in comments %}
{{ comment.author_name }} commented {{ comment.created_at | timesince }}
{% endfor %}
{% if session.get('user_id') %}
{% else %}

You must be logged in to comment.

Log in
{% endif %}
Assignees {% if repo.can_write %} {% endif %} {% if repo.can_write %} {% endif %} {% if assignees %}
{% for assignee in assignees %}
{{ assignee.username }} {% if repo.can_write %} {% endif %}
{% endfor %}
{% else %}
No one assigned
{% endif %}
Details
Type {{ task.task_type }}
Priority {{ task.priority }}
Complexity {{ task.complexity }}
{% if task.due_date %}
Due Date {{ task.due_date }}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}