Skip to content

Add option to disable search#1555

Open
dasJ wants to merge 1 commit intomasterfrom
feat/disable-search
Open

Add option to disable search#1555
dasJ wants to merge 1 commit intomasterfrom
feat/disable-search

Conversation

@dasJ
Copy link
Member

@dasJ dasJ commented Jan 5, 2026

No description provided.

@dasJ dasJ requested a review from mweinelt January 5, 2026 21:48
<form class="form-inline" action="[% c.uri_for('/search') %]">
<input name="query" type="text" class="form-control" placeholder="Search" [% HTML.attributes(value => c.req.params.query) %]/>
</form>
[% UNLESS c.config.disable_search %]
Copy link
Member

@mweinelt mweinelt Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[% UNLESS c.config.disable_search %]
[% UNLESS c.config.search_enable %]

Wondering if going forward we want more nixos module like behaviour, where the scope comes first, and we use positive toggles (which can default either way) rather than negative ones.

@dasJ dasJ added the www hydra-www component label Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

www hydra-www component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants