{% macro render_issue_row(issue, repo, username, subtitle=True) %} {% if issue.status == 'Open' %} {% set status_color = "success" %} {% else %} {% set status_color = "danger" %} {% endif %}
#{{issue.id}} {{issue.title}} {% if issue.private %} {% endif %}
{% if subtitle %}
Opened {{ issue.date_created | humanize}} by {{ issue.user.user }}. Modified {{ issue.last_updated | humanize}}
{% for tag in issue.tags %} {{ tag.tag }} {% endfor %}
{% endif %}
{% if issue.priority is not none %} {{ repo.priorities[issue.priority | string] }} {% endif %} {% if issue.assignee %} {{ issue.assignee.username | avatar(size=20) | safe}} {% endif %} {% if issue.user_comments|count > 0 %} {{issue.user_comments|count}} {% endif %}
{% endmacro%}