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 %} {% load wagtailcore_tags %}
<h2>Funding to date</h2> {% if page.total_funding %}
{% for funding in page.funding.all %} <h2>Funding to date</h2>
<table> {% for funding in page.funding.all %}
<tr> <table>
<td>{{ funding.year }}</td> <tr>
<td>${{ funding.value }}</td> <td>{{ funding.year }}</td>
<td>{{ funding.duration }} months</td> <td>${{ funding.value }}</td>
<td><a href="{% pageurl funding.source %}">{{ funding.source }}</a></td> <td>{{ funding.duration }} months</td>
</tr> <td><a href="{% pageurl funding.source %}">{{ funding.source }}</a></td>
</table> </tr>
{% endfor %} </table>
<p>Total Funding: {{ page.total_funding }}</p> {% 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