{% extends "base.html" %} {% import "macros.html" as macros %} {% block title %}{{ project_name }} — td{% endblock %} {% block content %}

{{ project_name }}

{% if stats_in_progress > 0 %}

In progress

{{ stats_in_progress }}

Open

{{ stats_open }}

Closed

{{ stats_closed }}

{% else %}

Open

{{ stats_open }}

In progress

{{ stats_in_progress }}

Closed

{{ stats_closed }}

{% endif %} {% if !next_up.is_empty() %}
Next up
{% let preserve = self.section_only_qs() %} {% if !preserve.is_empty() %} {% for pair in preserve.split('&') %} {% let kv = pair.splitn(2, '=').collect::>() %} {% if kv.len() == 2 %} {% endif %} {% endfor %} {% endif %}
{% for (i, s) in next_up.iter().enumerate() %} {% endfor %}
Top scored tasks recommended to work on next
# ID Score Title Labels Change status
{{ i + 1 }} {{ s.short_id }} {{ s.score }} {{ s.title }} {% for l in s.labels %}{% if !loop.first %}, {% endif %}{{ l }}{% endfor %} {% if s.status != "open" %} {% endif %} {% if s.status != "in_progress" %} {% endif %} {% if s.status != "closed" %} {% endif %}
{% endif %} {# Render sections: in-progress before open when it has tasks, otherwise open first #} {% let redirect_url = self.mutation_redirect() %} {% if in_progress.total_count > 0 %} {# In progress first when there are tasks #} 0 || in_progress.has_user_params %} open{% endif %} class="mt-4"> {{ in_progress.label }} ({% if in_progress.filtered_count != in_progress.total_count %}{{ in_progress.filtered_count }} of {% endif %}{{ in_progress.total_count }}) {% call macros::task_section(project_name, in_progress, all_labels, redirect_url) %}{% endcall %} 0 || open.has_user_params %} open{% endif %} class="mt-4"> {{ open.label }} ({% if open.filtered_count != open.total_count %}{{ open.filtered_count }} of {% endif %}{{ open.total_count }}) {% call macros::task_section(project_name, open, all_labels, redirect_url) %}{% endcall %} {% else %} {# Open first when nothing is in progress #} 0 || open.has_user_params %} open{% endif %} class="mt-4"> {{ open.label }} ({% if open.filtered_count != open.total_count %}{{ open.filtered_count }} of {% endif %}{{ open.total_count }}) {% call macros::task_section(project_name, open, all_labels, redirect_url) %}{% endcall %} {{ in_progress.label }} ({{ in_progress.total_count }}) {% call macros::task_section(project_name, in_progress, all_labels, redirect_url) %}{% endcall %} {% endif %} {{ closed.label }} ({% if closed.filtered_count != closed.total_count %}{{ closed.filtered_count }} of {% endif %}{{ closed.total_count }}) {% call macros::task_section(project_name, closed, all_labels, redirect_url) %}{% endcall %} {% endblock %}