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

Merge pull request #105 from OpenTechFund/feature/160-hide-closed-funds

Update the listing to only show funds/labs with open rounds
parents 45bcf9dc b2be3007
No related branches found
No related tags found
No related merge requests found
{% load wagtailcore_tags %}
{% with details=page.specific.detail.specific %}
<div class="listing">
<h4 class="listing__title">
{# details may be None, so be more verbose in the handling of the title #}
{% if page.title %}
{{ page.title }}
{% else %}
{{ details.listing_title|default:details.title }}
{% endif %}
</h4>
{% if page.specific.open_round %}
<div class="listing">
<h4 class="listing__title">
{# details may be None, so be more verbose in the handling of the title #}
{% if page.title %}
{{ page.title }}
{% else %}
{{ details.listing_title|default:details.title }}
{% endif %}
</h4>
{% if details.listing_summary or details.introduction %}
<h6 class="listing__teaser">{{ details.listing_summary|default:details.introduction|truncatechars_html:155 }}</h6>
{% endif %}
{% if details.listing_summary or details.introduction %}
<h6 class="listing__teaser">{{ details.listing_summary|default:details.introduction|truncatechars_html:155 }}</h6>
{% endif %}
{% if details %}
<a href="{% pageurl details %}">More info...</a>
{% endif %}
{% if details %}
<a href="{% pageurl details %}">More info...</a>
{% endif %}
<a class="" href="{% pageurl page %}">Apply</a>
</div>
<a class="" href="{% pageurl page %}">Apply</a>
</div>
{% endif %}
{% endwith %}
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