From 340d3fed471ccc2c67d477c3683c8d6c32fcd591 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sun, 1 Dec 2024 06:43:10 +0100 Subject: [PATCH] Use todays date as example --- server/locales/en.json | 2 +- server/views/search.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/locales/en.json b/server/locales/en.json index 06143d1..423f96d 100644 --- a/server/locales/en.json +++ b/server/locales/en.json @@ -48,7 +48,7 @@ "search.button.next": "Next", "search.button.previous": "Previous", "search.button.clear": "Clear", - "search.input.placeholder": "'Write the URL and use commands like date:2022-10-22", + "search.input.placeholder": "Write the URL and use commands like date: %s", "search.help.heading": "Search commands", "search.help.description": "You can combine your search commands. To find a test for a URL, date and browser you can search like this", diff --git a/server/views/search.pug b/server/views/search.pug index 4e7baf0..6b0d586 100644 --- a/server/views/search.pug +++ b/server/views/search.pug @@ -36,7 +36,7 @@ block content input(type='hidden' name='page' value='1' id='page') .field.is-grouped p.control.is-expanded - input.input.is-large(type='text' placeholder=getText('search.input.placeholder') name='search' id='search' autofocus value=searchQuery) + input.input.is-large(type='text' placeholder=getText('search.input.placeholder', dayjs().format('YYYY-MM-DD')) name='search' id='search' autofocus value=searchQuery) p.control button.button.is-primary.is-large(accesskey='s' name='searchbutton') #{getText('search.button.search')} p.control