{% macro proposal_table(title, status, _proposals) %} {% if _proposals and _proposals[0].status >= 2 %} {% else %} {% endif %} {% for p in _proposals %} {% endfor %}
{{title}} Username DateFunded
{{ p.headline }} {{ p.user.username }} {{ p.date_added.strftime('%Y-%m-%d %H:%M') }} {% if p.funds_progress >= 0.1 and p.status >= 2 %} {{p.funds_progress|int}}% {% else %} - {% endif %} {% if p.comment_count %} {{p.comment_count}} {% else %} - {% endif %}
{% endmacro %}