Skip to content

Commit

Permalink
[#1292] Update finance page
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 11, 2015
1 parent 0ed03f6 commit b153f44
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions akvo/templates/project_finance.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ <h4 class="">{% trans "Current funders" %}:</h4>
<dt><a href="{% url 'organisation-main' partnership.organisation.pk %}">{% img partnership.organisation 80 60 partnership.organisation.name %}</a></dt>
<dd>
<a href="{% url 'organisation-main' partnership.organisation.pk %}">{{partnership.organisation}}</a>
{% if partnership.funding_amount %}
<br><span class="currency">{{project.get_currency_display}}</span> {{partnership.funding_amount|floatformat:2|intcomma}}
{% endif %}
</dd>
</dl>
{% endfor %}
Expand All @@ -53,11 +55,15 @@ <h4>{% trans "Donations" %}:</h4>
</div>
<div class="row verticalPadding">
<h4 class="">{% trans "Project transactions" %}:</h4>
{% for transaction in project.transactions.all %}
<dt>{{transaction.description}}:</dt><dd><span class="currency">{{project.get_currency_display}}</span> {{transaction.value|floatformat:2|intcomma}}</dd>
{% empty %}
{% if project.transactions.all %}
<dl class="dl-horizontal">
{% for transaction in project.transactions.all %}
<dt>{% if transaction.description %}{{transaction.description}}{% else %}{{transaction.iati_transaction_type}}{% endif %}:</dt><dd><span class="currency">{{project.get_currency_display}}</span> {{transaction.value|floatformat:2|intcomma}}</dd>
{% endfor %}
</dl>
{% else %}
<p class="small noInfoBlock"><i class="noItem">{% trans "No transactions for this project" %}</i></p>
{% endfor %}
{% endif %}
</div>
</div>
</section>
Expand Down

0 comments on commit b153f44

Please sign in to comment.