Skip to content
Snippets Groups Projects
Unverified Commit 89a570f9 authored by Dan Braghis's avatar Dan Braghis Committed by GitHub
Browse files

Merge pull request #69 from OpenTechFund/bugfix/106-tidy-up-the-funding-display

Hide the funding if no funding has been specified
parents ac71ee2e 49e1cfb8
No related branches found
No related tags found
No related merge requests found
{% load wagtailcore_tags %}
<h2>Funding to date</h2>
{% for funding in page.funding.all %}
<table>
<tr>
<td>{{ funding.year }}</td>
<td>${{ funding.value }}</td>
<td>{{ funding.duration }} months</td>
<td><a href="{% pageurl funding.source %}">{{ funding.source }}</a></td>
</tr>
</table>
{% endfor %}
<p>Total Funding: {{ page.total_funding }}</p>
{% if page.total_funding %}
<h2>Funding to date</h2>
{% for funding in page.funding.all %}
<table>
<tr>
<td>{{ funding.year }}</td>
<td>${{ funding.value }}</td>
<td>{{ funding.duration }} months</td>
<td><a href="{% pageurl funding.source %}">{{ funding.source }}</a></td>
</tr>
</table>
{% endfor %}
<p>Total Funding: {{ page.total_funding }}</p>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment