Skip to content
Snippets Groups Projects
Commit b2be3007 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Update the listing to only show funds/labs with open rounds

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