mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-02-17 23:00:38 +01:00
Check the options by default on the search page
In accordance with the search in the subreddit view.
This commit is contained in:
parent
7e3535b88b
commit
858a584870
@ -15,13 +15,13 @@ html
|
|||||||
input(type="text", name="q", id="q", placeholder="search", value=""+ q +"")
|
input(type="text", name="q", id="q", placeholder="search", value=""+ q +"")
|
||||||
div
|
div
|
||||||
label(for="restrict_sr") limit my search to r/#{subreddit}
|
label(for="restrict_sr") limit my search to r/#{subreddit}
|
||||||
if restrict_sr === 'on'
|
if !restrict_sr || restrict_sr === 'on'
|
||||||
input(type="checkbox", name="restrict_sr", id="restrict_sr", checked="checked")
|
input(type="checkbox", name="restrict_sr", id="restrict_sr", checked="checked")
|
||||||
else
|
else
|
||||||
input(type="checkbox", name="restrict_sr", id="restrict_sr")
|
input(type="checkbox", name="restrict_sr", id="restrict_sr")
|
||||||
div
|
div
|
||||||
label(for="nsfw") include NSFW results
|
label(for="nsfw") include NSFW results
|
||||||
if nsfw === 'on'
|
if !nsfw || nsfw === 'on'
|
||||||
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
|
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
|
||||||
else
|
else
|
||||||
input(type="checkbox", name="nsfw", id="nsfw")
|
input(type="checkbox", name="nsfw", id="nsfw")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user