{% extends 'base.html' %} {% block content %}
{% if section %}

{{section }}

{% else %}

Search results

{% endif %}
{% for row in content %} {% if row.type.name == 'news' %}
{% elif row.type.name == 'events' %}
{% if row.image_url %} {% endif %}
{{ row.title }}

{{row.formatted_teaser}}

read more

{% elif row.type.name == 'projects' %}
{% if row.image_url %} {% endif %}
{{ row.title }}

{{row.formatted_teaser}}

read more

{% elif row.type.name == 'works' %}
{% if row.image_url %} {% endif %}
{{ row.title }}

{{row.formatted_teaser}}

read more

{% elif row.type.name == 'texts' %}
{% if row.image_url %} {% endif %}
{{ row.title }}

{{row.formatted_teaser}}

read more

{% else %} {% if request.user.is_staff %}
Add view for content type: {{row.type}}
{% endif %} {% endif %} {% endfor %}

{% if content.has_other_pages %}
    {% if content.has_previous %}
  • «
  • {% else %}
  • «
  • {% endif %} {% for i in content.paginator.page_range %} {% if content.number == i %}
  • {{ i }} (current)
  • {% else %}
  • {{ i }}
  • {% endif %} {% endfor %} {% if content.has_next %}
  • »
  • {% else %}
  • »
  • {% endif %}
{% endif %}
{% endblock %}