mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
preserve sort field and direction in header search box
This commit is contained in:
parent
47cd24e506
commit
51d5bede72
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ header.header
|
|||
form.header__search.flex.flex--no-wrap.flex--centered action="/search" method="get"
|
||||
input.input.header__input.header__input--search#q name="q" title="For terms all required, separate with ',' or 'AND'; also supports 'OR' for optional terms and '-' or 'NOT' for negation. Search with a blank query for more options or click the ? for syntax help." value=(assigns[:search_query] || @conn.params["q"]) placeholder="Search" autocapitalize="none"
|
||||
|
||||
= if present?(@conn.params["sf"]) do
|
||||
input type="hidden" name="sf" value=@conn.params["sf"]
|
||||
= if present?(@conn.params["sd"]) do
|
||||
input type="hidden" name="sd" value=@conn.params["sd"]
|
||||
|
||||
button.header__search__button type="submit" title='Search'
|
||||
i.fa-embedded--search
|
||||
a.header__search__button href="/search/reverse" title="Search using an image"
|
||||
|
|
Loading…
Reference in a new issue