Skip to content

Commit 7753d92

Browse files
authored
Add dev carousel to homepage (#12330)
1 parent e89dd75 commit 7753d92

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

openlibrary/i18n/messages.pot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6049,6 +6049,10 @@ msgstr ""
60496049
msgid "Authors Alliance & MIT Press"
60506050
msgstr ""
60516051

6052+
#: home/index.html
6053+
msgid "Books in Local Environment"
6054+
msgstr ""
6055+
60526056
#: home/loans.html
60536057
#, python-format
60546058
msgid ""

openlibrary/templates/home/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
$:macros.QueryCarousel(title=_('Textbooks'), key="textbooks", query="subject_key:textbooks publish_year:[1990 TO *] ebook_access:[borrowable TO *]", url="/subjects/textbooks", sort='trending', user_lang_only=True)
3636
$:macros.QueryCarousel(title=_("Authors Alliance & MIT Press"), key="authorsalliance_mit_press", query='(subject:authorsalliance OR publisher:"MIT Press" OR subject:mitpress) ebook_access:[borrowable TO *]', sort='trending', user_lang_only=True)
3737

38+
$if "dev" in ctx.features:
39+
$:macros.QueryCarousel(title=_('Books in Local Environment'), query='*', use_cache=False)
40+
3841
$:render_template("home/categories", test=test)
3942

4043
$:render_template("home/stats", stats)

0 commit comments

Comments
 (0)