{% from "_projectstring.html" import projectstring, projecticon %} {% macro render_pullrequest_row(request, repo, username, subtitle=True, class="", showproject=False, filterstatus=None) %} {% if request.status|lower == 'open' %} {% set status_color = "success" %} {% elif request.status|lower == 'merged' %} {% set status_color = "info" %} {% else %} {% set status_color = "danger" %} {% endif %}
{{ flags_stats[status][0].username }}: {{ flags_stats[status][0].status }}
{% endfor %} {% else %}Flags: {% for status in flags_stats %} {{ flags_stats[status] | length }} {{ status }} {% endfor %}
{% endif %}