{% from "_projectstring.html" import projectstring, projecticon %} {% macro render_issue_row(issue, repo, username, subtitle=True, class="", showproject=False, filterstatus=None, filtermilestone=None) %} {% if issue.status == 'Open' %} {% set status_color = "success" %} {% else %} {% set status_color = "danger" %} {% endif %}
#{{issue.id}} {{issue.title}} {% if issue.private %} {% endif %}
{% if issue.assignee %} {% if filterstatus %} {% endif %} {{ issue.assignee.username | avatar(size=20) | safe}} {% if filterstatus %} {% endif %} {% endif %}
{% if issue.user_comments|count > 0 %} {{issue.user_comments|count}} {% endif %}
{% if subtitle %}
Opened {{ issue.date_created | humanize}} by {{ issue.user.user }}. Modified {{ issue.last_updated | humanize_tooltip | safe }} {% if showproject %} {% if repo.is_fork -%}   {%- else -%}   {%- endif -%} {% if repo.is_fork %} {{ repo.user.user }} / {% endif %} {% if repo.namespace %} {{ repo.namespace }}/ {% endif %} {% if repo.is_fork %} {% else %} {% endif %} {{ repo.name }} {% endif %}
{% for tag in issue.tags %} {% if filterstatus %} {{ tag.tag }} {% else %} {{ tag.tag }} {% endif %} {% endfor %} {% if issue.milestone %} {% if filterstatus %} {% endif %} {{ issue.milestone }} {% if filterstatus %} {% endif %} {% endif %} {% if issue.priority is not none %} {% if filterstatus %} {% endif %} {{ repo.priorities[issue.priority | string] }} {% if filterstatus %} {% endif %} {% endif %} {% if issue.related_prs | length == 1 %} PR#{{ issue.related_prs[0].id }} {% elif issue.related_prs | length > 1 %} {% endif %}
{% endif %}
{% endmacro%}