{% extends "base.html" %} {% block content %}
{% include 'messages.html' %}

{{ proposal.headline }}

Posted on {{ proposal.date_added.strftime('%Y-%m-%d') }} by {{ proposal.user.username}}
Status: {% if proposal.status == 0 %} Disabled {% elif proposal.status == 1 %} Seeking community approval {% elif proposal.status == 2 %} Seeking funding {% elif proposal.status == 3 %} WIP / Help needed {% elif proposal.status == 4 %} Completed {% endif %} {% if proposal.status <= 1 %}
Target: {{proposal.funds_target|round}} WOW {% if proposal.funds_target_usd %} ➞ {{proposal.funds_target_usd}} USD {% endif %} {% endif %}

{% if proposal.user.username == current_user.username or current_user.admin %} {% endif %}

{% if proposal.status in [2,3] %}
Proposal
Target {{proposal.funds_target|round}} WOW {% if proposal.funds_target_usd %} ➞ {{proposal.funds_target_usd}} USD {% endif %}
Funded {{proposal.balance['pct'] | round or 0}} %
{{proposal.balance['txs'] | length}} individual contributions {% if proposal.balance['txs'] %} Details... {% endif %}

{{proposal.balance['available']|round(3) or 0 }} WOW Raised {% set remaining = proposal.funds_target - proposal.balance['available']|float|round(3) %} {% if remaining > 0 %} ({{ (proposal.funds_target - proposal.balance['available']|float|round(3)|int) }} WOW until goal) {% elif remaining < 0 %} ({{ (proposal.balance['available']-proposal.funds_target|float|round(3)|int) }} WOW past goal!) {% endif %}



{{ proposal.spends['amount'] }} WOW Paid out ({{ proposal.spends['pct']|round(1) }}%)

{{ (proposal.balance['available']-proposal.spends['amount']) |round(3) or 0}} WOW Available for payout :-)

Donation address:
{% if proposal.addr_donation %}{{ proposal.addr_donation }}{% else %}None generated yet{% endif %}
{% if proposal.addr_donation %}
{% endif %}
{% elif proposal.status == 0 %}
This proposal is disabled.
{% endif %}
{{proposal.html | safe}}
{% include 'comments.html' %} {% from 'proposal/macros/transaction.html' import tx_item %} {% if proposal.balance['txs'] %}
Incoming transactions ({{proposal.balance['txs']|length}})
    {% for tx in proposal.balance['txs'] %} {{ tx_item(tx) }} {% endfor %}
{% endif %} {% if proposal.payouts %}
Outgoing transactions
    {% for payout in proposal.payouts %} {{ tx_item(payout.as_tx) }} {% endfor %}
{% endif %} {% from 'proposal/macros/comment.html' import comment_entry %}
Events
{% for c in proposal._comments if c.automated %} {{ comment_entry(c, proposal) }} {% endfor %}
{% endblock %}