diff --git a/opentech/public/utils/templates/utils/includes/funding.html b/opentech/public/utils/templates/utils/includes/funding.html index d858ce5dcc11d072858f56f0674dc61fdb9e4719..9258897dc0cf9a88d0e89133d4a0b8f39f4fc317 100644 --- a/opentech/public/utils/templates/utils/includes/funding.html +++ b/opentech/public/utils/templates/utils/includes/funding.html @@ -1,13 +1,15 @@ {% 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 %}