Commit a6b3019c62902876b326c8fccda68198dbd60220
Exists in
master
and in
39 other branches
Merge branch 'master' of github.com:TracyWebTech/colab
Conflicts: src/super_archives/views.py
Showing
3 changed files
with
16 additions
and
4 deletions
Show diff stats
src/search/templates/search/search.html
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | |
| 10 | 10 | <script type="text/javascript"> |
| 11 | 11 | $(function () { |
| 12 | + | |
| 12 | 13 | $('#datepicker_since, #datepicker_until').datetimepicker({ |
| 13 | 14 | pickTime: false, |
| 14 | 15 | {% if use_language and date_format %} |
| ... | ... | @@ -16,6 +17,14 @@ |
| 16 | 17 | format: '{{ date_format }}', |
| 17 | 18 | {% endif %} |
| 18 | 19 | }); |
| 20 | + | |
| 21 | + $('#collapseFilters').on('hide.bs.collapse', function() { | |
| 22 | + $('.collapse-icon-controller').toggleClass('glyphicon-collapse-down glyphicon-collapse-up'); | |
| 23 | + }); | |
| 24 | + $('#collapseFilters').on('show.bs.collapse', function() { | |
| 25 | + $('.collapse-icon-controller').toggleClass('glyphicon-collapse-down glyphicon-collapse-up'); | |
| 26 | + }); | |
| 27 | + | |
| 19 | 28 | }); |
| 20 | 29 | </script> |
| 21 | 30 | {% endblock %} |
| ... | ... | @@ -41,7 +50,7 @@ |
| 41 | 50 | |
| 42 | 51 | <div class="row"> |
| 43 | 52 | |
| 44 | - <form class="col-xs-12 col-sm-12 col-md-12 hidden-lg" action="{% url "haystack_search" %}"> | |
| 53 | + <form class="col-xs-12 col-sm-12 hidden-md hidden-lg" action="{% url "haystack_search" %}"> | |
| 45 | 54 | <div class="input-group"> |
| 46 | 55 | <input type="text" class="form-control" name="q" placeholder="{% trans "Search here" %}" |
| 47 | 56 | {% if request.GET.q %}value="{{ request.GET.q }}"{% endif %} /> |
| ... | ... | @@ -64,7 +73,10 @@ |
| 64 | 73 | <div class="panel panel-default"> |
| 65 | 74 | <div class="panel-heading subject"> |
| 66 | 75 | <a data-toggle="collapse" data-parent="#accordion" href="#collapseFilters"> |
| 67 | - <h4 class="panel-title">{% trans "Filters" %}</h4> | |
| 76 | + <h4 class="panel-title"> | |
| 77 | + {% trans "Filters" %} | |
| 78 | + <span class="glyphicon glyphicon-collapse-down pull-right collapse-icon-controller"></span> | |
| 79 | + </h4> | |
| 68 | 80 | </a> |
| 69 | 81 | </div> |
| 70 | 82 | <div id="collapseFilters" class="panel-collapse collapse"> | ... | ... |
src/super_archives/views.py
| ... | ... | @@ -11,7 +11,7 @@ from django.conf import settings |
| 11 | 11 | from django.contrib import messages |
| 12 | 12 | from django.db import IntegrityError |
| 13 | 13 | from django.views.generic import View |
| 14 | -from django.core.paginator import Paginator | |
| 14 | +from django.core.paginator import Paginator, EmptyPage | |
| 15 | 15 | from django.utils.translation import ugettext as _ |
| 16 | 16 | from django.core.exceptions import ObjectDoesNotExist |
| 17 | 17 | from django.utils.decorators import method_decorator | ... | ... |
src/templates/base.html