diff --git a/pagure/templates/roadmap.html b/pagure/templates/roadmap.html index c92b69a..6cdec80 100644 --- a/pagure/templates/roadmap.html +++ b/pagure/templates/roadmap.html @@ -4,9 +4,113 @@ repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} {% set tag = "home"%} - {% block repo %} +{% macro render_issue_list(issues, title, id, milestone) %} +
| {{ title }} + {% if milestone and repo.milestones[milestone] %} +   (Due: {{ repo.milestones[milestone] }}) + {% endif %} + | +Opened | + {% if status and status|lower == 'closed' %} +Closed | + {% else %} +Modified | + {% endif %} ++ Priority + | ++ Assignee + | +Status | +
|---|---|---|---|---|---|---|
| + #{{ issue.id }} + {% if issue.private %} + + {% endif %} + + {{ issue.title | noJS("img") | safe }} + + + {% if issue.comments | count > 0 %} + + + {{ issue.comments | count }} + + {% endif %} + {% for tag in issue.tags %} + {{ tag.tag }} + {% endfor %} + | ++ {{ + issue.date_created | humanize }} + | ++ {% if status and status|lower == 'closed' %} + {{ + issue.closed_at | humanize }} + {% else %} + {{ + issue.last_updated | humanize }} + {% endif %} + | ++ {% if issue.priority %} + {{ repo.priorities[issue.priority | string] }} + {% endif %} + | ++ {% if issue.assignee %} + {{ issue.assignee.default_email | avatar(16) | safe }} + {{ issue.assignee.user }} + {% else %} + unassigned + {% endif %} + | ++ {{ issue.status }} + | +|
| No issues found | +||||||
| No Milestone - | -Opened | - {% if status and status|lower == 'closed' %} -Closed | - {% else %} -Modified | - {% endif %} -- Priority - | -- Assignee - | -Status | -
|---|---|---|---|---|---|---|
| - #{{ issue.id }} - {% if issue.private %} - - {% endif %} - - {{ issue.title | noJS("img") | safe }} - - - {% if issue.comments|count > 0 %} - - - {{issue.comments|count}} - - {% endif %} - {% for tag in issue.tags%} - {{tag.tag}} - {% endfor%} - | -- {{ - issue.date_created | humanize}} - | -- {% if status and status|lower == 'closed' %} - {{ - issue.closed_at | humanize}} - {% else %} - {{ - issue.last_updated | humanize}} - {% endif %} - | -- {% if issue.priority %} - {{ repo.priorities[issue.priority | string] }} - {% endif %} - | -- {% if issue.assignee %} - {{ issue.assignee.default_email | avatar(16) | safe }} - {{ issue.assignee.user }} - {% else %} - unassigned - {% endif %} - | -- {{ issue.status }} - | -|
| No issues found | -||||||
| {{ milestone }} - {% if repo.milestones[milestone] %} -   (Due: {{ repo.milestones[milestone] }}) - {% endif %} - | -Opened | - {% if status and status|lower == 'closed' %} -Closed | - {% else %} -Modified | - {% endif %} -- Priority - | -- Assignee - | -Status | -
|---|---|---|---|---|---|---|
| - #{{ issue.id }} - {% if issue.private %} - - {% endif %} - - {{ issue.title | noJS("img") | safe }} - - - {% if issue.comments|count > 0 %} - - - {{issue.comments|count}} - - {% endif %} - {% for tag in issue.tags%} - {{tag.tag}} - {% endfor%} - | -- {{ - issue.date_created | humanize}} - | -- {% if status and status|lower == 'closed' %} - {{ - issue.closed_at | humanize}} - {% else %} - {{ - issue.last_updated | humanize}} - {% endif %} - | -- {% if issue.priority %} - {{ repo.priorities[issue.priority | string] }} - {% endif %} - | -- {% if issue.assignee %} - {{ issue.assignee.default_email | avatar(16) | safe }} - {{ issue.assignee.user }} - {% else %} - unassigned - {% endif %} - | -- {{ issue.status }} - | -|
| No issues found | -||||||