Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

template should not use request params directly #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{% set placeholder = placeholder if placeholder else _('Search...') %}
{% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set sort_arg = request.params.get('sort') %}

<form class="form-inline mrgn-bttm-lg mrgn-tp-md" role="form" method="get" data-module="select-switch">
{% block search_input %}
Expand Down Expand Up @@ -48,7 +47,7 @@
<strong>{% snippet 'snippets/search_result_text.html', query=query, count=count, type=type %}</strong>
</div>
<div class="col-md-6 text-left">
{% snippet "snippets/sort_by.html", sort=sort_arg %}
{% snippet "snippets/sort_by.html", sort=c.sort_by_selected %}
</div>

{% endif %}
Expand Down