{% extends "base.html" %} {% block content %} {% if user %}
Proposals made by '{{user.username}}'
{% if user.proposals %} {% for p in user.proposals | sort(attribute='date_added', reverse=True) %} {% endfor %}
Proposal Category Target Amount Amount Raised Date
{{ p.headline | truncate(42)}} {{ p.category |capitalize}} {{p.funds_target}} {{p.funds_progress | round(3, 'floor')}}% {{ p.date_added.strftime('%Y-%m-%d') }}
{% else %} This user has not submitted any proposals yet. {% endif %}
Comments made by {{user.username}} {% if user.comments %} {% for y in user.comments | sort(attribute='date_added', reverse=True) %} {% endfor %}
Comment Proposal Date
{{ y.message | truncate(32)}} #{{y.proposal.id }} {{ y.proposal.headline | truncate(32) }} {{ y.date_added.strftime('%Y-%m-%d') }}
{% else %} This user has not submitted any proposals yet. {% endif %}

{% else %} No user found by that name. {% endif %} {% endblock %}