2017-12-18 12:54:04 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2017-12-19 09:40:14 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="small-4 small-offset-2 columns results-title">
|
2017-12-22 22:22:14 +00:00
|
|
|
{% if section %}
|
|
|
|
<h3> {{section }}</h3>
|
|
|
|
{% else %}
|
2017-12-19 09:40:14 +00:00
|
|
|
<h3> Search results </h3>
|
2017-12-22 22:22:14 +00:00
|
|
|
{% endif %}
|
2017-12-19 09:40:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-22 22:22:14 +00:00
|
|
|
{% for row in content %}
|
|
|
|
{% if row.type.name == 'news' %}
|
2017-12-18 12:54:04 +00:00
|
|
|
<div class="row">
|
2017-12-19 09:40:14 +00:00
|
|
|
<div class= "small-4 small-offset-2 columns">
|
2017-12-22 22:22:14 +00:00
|
|
|
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{row.datestart}} </b>
|
|
|
|
{{ row.title }} <br />
|
|
|
|
{{ row.formatted_header|striptags|safe }} </font>
|
2017-12-18 12:54:04 +00:00
|
|
|
</h6>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-23 11:06:13 +00:00
|
|
|
{% else %}
|
2017-12-22 23:06:44 +00:00
|
|
|
<div class="row results">
|
|
|
|
<div class="small-4 small-offset-2 columns">
|
|
|
|
{% if row.image_url %}
|
|
|
|
<a href="{{ row.get_absolute_url }}"> <img src="{{ row.image_url }}"> </a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="small-4 end columns">
|
|
|
|
<a href="{{ row.get_absolute_url }}" class="sidebar-title">{{ row.title }}</a>
|
2017-12-23 11:06:13 +00:00
|
|
|
{% if row.type.name == 'events' %}
|
|
|
|
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ row.datestart }} {% if row.dateend %} - {{row.dateend}} {% endif %} </b></font>
|
|
|
|
{% if row.place %}<br/> {{row.place}} {% endif%}</h6>
|
2017-12-22 23:06:44 +00:00
|
|
|
{% endif %}
|
2017-12-23 11:06:13 +00:00
|
|
|
<p> {{row.formatted_teaser}} </p>
|
|
|
|
<a href="{{ row.get_absolute_url }}">read more</a> </p>
|
2017-12-18 12:54:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<br>
|
|
|
|
<br>
|
2017-12-22 22:22:14 +00:00
|
|
|
{% if content.has_other_pages %}
|
2017-12-19 09:40:14 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="small-4 small-offset-4 columns">
|
|
|
|
<ul class="pagination">
|
2017-12-22 22:22:14 +00:00
|
|
|
{% if content.has_previous %}
|
|
|
|
<li><a href="?{{ base_query }}&page={{ content.previous_page_number }}">«</a></li>
|
2017-12-19 09:40:14 +00:00
|
|
|
{% else %}
|
|
|
|
<li class="disabled"><span>«</span></li>
|
|
|
|
{% endif %}
|
2017-12-22 22:22:14 +00:00
|
|
|
{% for i in content.paginator.page_range %}
|
|
|
|
{% if content.number == i %}
|
2017-12-19 09:40:14 +00:00
|
|
|
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
|
|
|
|
{% else %}
|
2017-12-22 22:22:14 +00:00
|
|
|
<li><a href="?{{ base_query }}page={{ i }}">{{ i }}</a></li>
|
2017-12-19 09:40:14 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2017-12-22 22:22:14 +00:00
|
|
|
{% if content.has_next %}
|
|
|
|
<li><a href="?{{ base_query }}page={{ content.next_page_number }}">»</a></li>
|
2017-12-19 09:40:14 +00:00
|
|
|
{% else %}
|
|
|
|
<li class="disabled"><span>»</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-12-18 12:54:04 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|