Commit a1394b8725e86f1365e9181f3417e2326c4995a7
1 parent
c3771351
Exists in
master
and in
5 other branches
Removed search bar and included pagination [Issue:#416]
Showing
1 changed file
with
21 additions
and
15 deletions
Show diff stats
core/templates/guest.html
... | ... | @@ -90,21 +90,6 @@ |
90 | 90 | </div> |
91 | 91 | <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 col-xl-10"> |
92 | 92 | {% block breadcrumbs %} |
93 | - | |
94 | - <div class="col-md-12"> | |
95 | - <form id="searchform" action="{% url 'course:manage' %}" method="get" accept-charset="utf-8"> | |
96 | - <div class="input-group"> | |
97 | - <div class="form-group is-empty"> | |
98 | - <input type="search" class="form-control" placeholder="{% trans 'Search Courses' %}" name="q" id="searchbox"></div> | |
99 | - <span class="input-group-btn input-group-sm"> | |
100 | - <button type="button" class="btn btn-fab btn-fab-mini"> | |
101 | - <i class="material-icons">search</i> | |
102 | - </button> | |
103 | - </span> | |
104 | - </div> | |
105 | - </form> | |
106 | - </div> | |
107 | - | |
108 | 93 | {% endblock %} |
109 | 94 | {% block render_breadcrumbs %}{% endblock %} |
110 | 95 | <div> |
... | ... | @@ -133,6 +118,27 @@ |
133 | 118 | </div> |
134 | 119 | {% endfor %} |
135 | 120 | </div> |
121 | + <div class="col-md-12"> | |
122 | + <nav aria-label="Page navigation"> | |
123 | + <ul class="pagination"> | |
124 | + {% if page_obj.has_previous %} | |
125 | + <li> | |
126 | + <a href="?page={{ page_obj.previous_page_number }}"><span><<</span></a> | |
127 | + </li> | |
128 | + {% endif %} | |
129 | + {% for page_number in paginator.page_range %} | |
130 | + <li{% if page_obj.number == page_number %} class="active"{% endif %}> | |
131 | + <a href="?page={{ page_number }}">{{ page_number }}</a> | |
132 | + </li> | |
133 | + {% endfor %} | |
134 | + {% if page_obj.has_next %} | |
135 | + <li> | |
136 | + <a href="?page={{ page_obj.next_page_number }}"><span>>></span></a> | |
137 | + </li> | |
138 | + {% endif %} | |
139 | + </ul> | |
140 | + </nav> | |
141 | + </div> | |
136 | 142 | {% endblock %} |
137 | 143 | </div> |
138 | 144 | </div> | ... | ... |