Skip to content

Commit f3f7050

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03de82c commit f3f7050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/my-book-dropper.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Graphics, code snippets, and notes would be useful for each of the following:
2121

2222
*_many compact droppers rendered next to each item; these frequently rely on async inner loading to remain performant._
2323

24-
## Technical
24+
## Technical
2525

26-
The **My Books Dropper** -- implemented and DOCUMENTED in https://github.com/internetarchive/openlibrary/pull/8019 -- extends the generic Dropper comprised of a primary button and dropdown content. The template for the dropper takes a rendered HTML string for each of these. The template also takes a additional classes as a string, enabling the dropper to be styled as needed.
26+
The **My Books Dropper** -- implemented and DOCUMENTED in https://github.com/internetarchive/openlibrary/pull/8019 -- extends the generic Dropper comprised of a primary button and dropdown content. The template for the dropper takes a rendered HTML string for each of these. The template also takes a additional classes as a string, enabling the dropper to be styled as needed.
2727

2828
![generic-dropper-parts](https://github.com/internetarchive/openlibrary/assets/28732543/3a4df71a-aa6c-42de-bb58-8880ef86f5db)
2929

@@ -40,15 +40,15 @@ Server-side templates that output the HTML structure and server-initialized piec
4040
- my_books/dropper.html — main dropper template (structure/data attrs). See:
4141
https://github.com/internetarchive/openlibrary/blob/5d13f226cb61ccb4cbd8f74e3a01cd2e3dfa7675/openlibrary/templates/my_books/dropper.html#L1-L24
4242
- Role: server-side dropper wrapper; computes seed keys, user lists (or placeholders for async load), CSS classes, and outputs initial dropdown markup.
43-
43+
4444
The generic dropper is defined by:
4545
- my_books/dropdown_content.html — the **generic** dropper dropdown **content** (reading-log forms / Want to Read buttons).
4646
https://github.com/internetarchive/openlibrary/blob/5d13f226cb61ccb4cbd8f74e3a01cd2e3dfa7675/openlibrary/templates/my_books/dropdown_content.html#L18-L33
4747
- Role: actual forms and buttons for adding/removing from shelves (shelf IDs, hidden fields, etc).
4848
- lib/dropper.html — **generic** dropper wrapper used as the HTML skeleton for droppers.
4949
https://github.com/internetarchive/openlibrary/blob/5d13f226cb61ccb4cbd8f74e3a01cd2e3dfa7675/openlibrary/templates/lib/dropper.html#L1-L22
5050
- Role: generic primary-button + dropdown HTML structure the My Books templates use.
51-
51+
5252
Internationalization for the My Books Dropper:
5353
- openlibrary/i18n/messages.pot and **i18n** language .po files (e.g., hi/messages.po) contain “Want to Read”, “Currently Reading”, and “Already Read” references (helpful to find template usages).
5454
https://github.com/internetarchive/openlibrary/blob/5d13f226cb61ccb4cbd8f74e3a01cd2e3dfa7675/openlibrary/i18n/messages.pot#L1513-L1546

0 commit comments

Comments
 (0)