This repository was archived by the owner on Sep 19, 2018. It is now read-only.
File tree 4 files changed +14
-8
lines changed
4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
{% load i18n %}
2
2
{% if querystring %}
3
- < div class ="endless_container ">
4
- < a class ="endless_more " href ="{{ path }}{{ querystring }} "
5
- rel ="{{ querystring_key }} "> {% if label %}{{ label }}{% else %}{% trans "more" %}{% endif %}</ a >
3
+ < div class ="endless_container col-md-6 col-md-offset-3 ">
4
+ < a class ="endless_more btn btn-primary btn-lg btn-block " href ="{{ path }}{{ querystring }} "
5
+ rel ="{{ querystring_key }} "> {% if label %}{{ label }}{% else %}{% trans "more" %}{% endif %}</ a >
6
6
< div class ="endless_loading " style ="display: none; "> {{ loading|safe }}</ div >
7
7
</ div >
8
8
{% endif %}
Original file line number Diff line number Diff line change 1
1
{% load endless %}
2
2
3
3
{% if events %}
4
+ {% if not page %}
4
5
< div class ="search-counter "> {{ events|length }} {% if events|length > 1 %}events match{% else %}event matches{% endif %} your search criteria:</ div >
5
- {% lazy_paginate 6 events as pag_events %}
6
+ {% endif %}
7
+
8
+ {% lazy_paginate 10 events as pag_events %}
6
9
{% for event in pag_events %}
7
10
{% include 'layout/event_tile_long.html' %}
8
11
{% endfor %}
Original file line number Diff line number Diff line change 14
14
< form id ="faceted-search-events " method ="post " action ="{% url 'web.search_events' %} " enctype ="multipart/form-data "> {% csrf_token %}
15
15
{{ form.non_field_errors }}
16
16
< div class ="row ">
17
- < div class ="form-group col-md-8 ">
17
+ < div class ="form-group col-md-9 ">
18
18
{{ form.search }}
19
19
</ div >
20
+ < div class ="col-md-3 "> < input type ="submit " class ="btn btn-primary btn-lg " value ="Search " /> </ div >
20
21
< div class ="col-md-12 "> < hr > </ div >
21
22
</ div >
22
23
< div class ="row ">
41
42
< label > {{ form.fields.audience.label }}</ label >
42
43
{{ form.audience }}
43
44
</ div >
44
- < hr >
45
- < input type ="submit " class ="btn btn-primary btn-lg " value ="Search " />
46
45
</ div >
47
46
< div class ="col-md-8 ">
48
47
< div id ="events-container ">
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ def search_events(request):
279
279
past_events = True if past and past == 'yes' else False
280
280
281
281
search_query = request .GET .get ('q' , '' )
282
+ page = request .GET .get ('page' , None )
282
283
283
284
template = 'pages/search_events.html'
284
285
page_template = 'pages/ajax_faceted_search_events.html'
@@ -302,7 +303,10 @@ def search_events(request):
302
303
if request .is_ajax ():
303
304
return render_to_response (
304
305
page_template ,
305
- {'events' :events },
306
+ {
307
+ 'events' :events ,
308
+ 'page' : page
309
+ },
306
310
context_instance = RequestContext (request ))
307
311
308
312
return render_to_response (
You can’t perform that action at this time.
0 commit comments