From: Paul Hänsch <paul@plutz.net> Date: Fri, 22 Sep 2023 13:41:38 +0000 (+0200) Subject: search form on result page X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d9a3dee90a669c88bd6b4b0fa553e01ed1e729a1;p=shellwiki search form on result page --- diff --git a/handlers/40_search.sh b/handlers/40_search.sh index ca068ab..1d37989 100644 --- a/handlers/40_search.sh +++ b/handlers/40_search.sh @@ -41,7 +41,10 @@ done \ done \ | theme_page - <<-EOF <article> - <h1>$(_ "Search results:")</h1> + <form method=GET> + <h1>$(_ "Search results")</h1> + <input class="search" name="q" placeholder="$(_ Search)" value="$(HTML $words)"><button class="search" type="submit">$(_ Search)</button> + </form> <ol class="searchresults"> $(cat) </ol> diff --git a/l10n/de.sh b/l10n/de.sh index 3777374..40f2292 100644 --- a/l10n/de.sh +++ b/l10n/de.sh @@ -57,6 +57,8 @@ case $* in "The given location does not exist.") printf "Den angegebenen Ort gibt es nicht.";; "Missing parameters.") printf "Fehlende Parameter.";; "Pages deleted:") printf "Seiten gelöscht:";; + "Search results") printf "Suchergebnisse";; + "Search") printf "Suche";; *) printf %s\\n "$*";; esac }