Skip to content

Commit

Permalink
Merge pull request #10123 from longbui23/10049/features/add-book-when…
Browse files Browse the repository at this point in the history
…-no-result

Co-authored-by:QuangPhung15 <phunghuyquang150904@gmail.com>
  • Loading branch information
cdrini authored Dec 11, 2024
2 parents 58bd787 + a948778 commit 4ded266
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,11 @@ msgstr ""

#: work_search.html
#, python-format
msgid "No <strong>%(path_id)s</strong> directly matched your search"
msgid "No <strong>%(path_id)s</strong> directly matched your search."
msgstr ""

#: work_search.html
msgid "Add a new book?"
msgstr ""

#: search/authors.html search/lists.html search/subjects.html work_search.html
Expand Down
5 changes: 4 additions & 1 deletion openlibrary/templates/work_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ <h1>$_("Search Books")</h1>
$# results because of performance issues due to increased load. See
$# this commit to revert.
<center>
<div class="red">$:_('No <strong>%(path_id)s</strong> directly matched your search', path_id=path_id)</div>
<div class="red">
$:_('No <strong>%(path_id)s</strong> directly matched your search.', path_id=path_id)
<a href="/books/add">$_('Add a new book?')</a>
</div>
<hr>
</center>
<div id="fulltext-search-suggestion" data-query="$query">
Expand Down

0 comments on commit 4ded266

Please sign in to comment.