diff --git a/frontend/templates/_template_map.txt b/frontend/templates/_template_map.txt index faecb921..d1894adc 100644 --- a/frontend/templates/_template_map.txt +++ b/frontend/templates/_template_map.txt @@ -1,3 +1,5 @@ +PAGE TEMPLATES + base.html extra_css(empty) extra_js(empty) extra_head(empty) 404.html 500.html @@ -9,10 +11,12 @@ base.html extra_css(empty) extra_js(empty) extra_head(empty) about_unglued_empty.html about_wishlist.html about_wishlist_empty.html + base-questionnaire.html campaign_list.html extra_css extra_head cc_list.html extra_css extra_head comments.html extra_css extra_head download.html extra_js + faceted_list.html extra_css extra_head goodreads_display.html extra_head home.html extra_css extra_js kindle_change_successful.html extra_js @@ -22,43 +26,52 @@ base.html extra_css(empty) extra_js(empty) extra_head(empty) librarything.html lockss.html lockss_manifest.html + map_subject.html profiles/create_profile.html profiles/edit_profile.html profiles/profile_detail.html profiles/profile_list.html registration/registration_base.html extra_js extra_head extra_extra_head basedocumentation.html extra_js extra_extra_head - api_help.html about.html about_smashwords.html admins_only.html + api_help.html + ask_rh.html campaign_admin.html extra_extra_head campaign_results.html claim.html comments/base.html comments/preview.html extra_css + edit_edition.html extra_extra_head edition_uploads.html + emailshare.html gift.html extra_extra_head emailshare.html extra_css faq.html feedback.html front_matter.html extra_extra_head + join_library.html languages.html libraries.html extra_css extra_js libraryauth/edit.html extra_extra_head manage_account.html extra_extra_head manage_campaign.html extra_extra_head + manage_ebooks.html + manage_survey.html + marc.html merge.html extra_extra_head metrics.html new_edition.html extra_extra_head notification/base.html notification/notice_settings.html extra_css extra_js notification/notices.html extra_css - press.html press_new.html + press_submitterator.html privacy.html rh_tools.html extra_extra_head rights_holders.html extra_extra_head + surveys.html terms.html extra_css thanks.html basepledge.html extra_css extra_js extra_extra_head(empty) @@ -75,8 +88,25 @@ base.html extra_css(empty) extra_js(empty) extra_head(empty) pledge_user_error.html extra_extra_head purchase.html extra_extra_head stripe.html extra_extra_head + email_change/base.html + email_change_complete.html + email_change_form.html + email_verification_sent.html + email_verify.html + kindle_change_successful.html + kindle_config.html + marc_config.html + gift_duplicate.html + gift_error.html + gift_login.html + gift_welcome.html + kindle_response_graceful_degradation.html registration/activation_complete.html registration/activate.html + registration/from_pledge.html + registration/from_add.html + registration/from_error.html + registration/from_purchase.html registration/login.html registration/logout.html registration/password_change_done.html @@ -98,18 +128,41 @@ base.html extra_css(empty) extra_js(empty) extra_head(empty) work.html extra_css extra_js work_list.html extra_css extra_head bypub_list.html + recommended.html - +COMPONENT TEMPLATES +about_lightbox_footer.html +book_plain.html book_panel_addbutton.html cardform.html -cardscripts.html +cardscripts.html +claim_terms.html +ebook_list.html ebookfiles.html edition_display.html edition_upload.html explore.html -faqmenu.html +faq_b2u.html +faq_pledge_cancel.html +faq_pledge.html +faq_purchase.html faq_t4u.html +faqmenu.html +kindle_response_message.html learn_more.html +marc_form.html num_wishes.html +press_item.html +refine.html +registration/login_form.html +registration/password_reset_email.html +registration/registration_closed.html +registration/test_template_name.html +sidebar_pledge_complete.html +slideshow.html split.html +stripe_stuff.html +subjectbox.html trans_summary.html +work_action.html +workbox.html diff --git a/frontend/templates/work.html b/frontend/templates/work.html index a871736e..36b7abd5 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -280,14 +280,18 @@
{% for work_rel in work.works_related_to.all %} -

- This work is a {{ work_rel.relation }} of {{ work_rel.from_work }}. -

+ {% if work_rel.from_work.language != 'xx' and work.language != 'xx' %} +

+ This work is a {{ work_rel.relation }} of {{ work_rel.from_work }}. +

+ {% endif %} {% endfor %} {% for work_rel in work.works_related_from.all %} -

- {{ work_rel.to_work }} is a {{ work_rel.relation }} of this work. -

+ {% if work.language != 'xx' and work_rel.to_work.language != 'xx' %} +

+ {{ work_rel.to_work }} is a {{ work_rel.relation }} of this work. +

+ {% endif %} {% endfor %} {% if work.doab %}

@@ -509,273 +513,7 @@

-
- {% if status == 'ACTIVE' %} - {% if work.last_campaign.type == 1 %} - {% if pledged %} -
- {% else %} -
- {% endif %} - {% elif work.last_campaign.type == 3 %} -
- Download -
-
... and thank the creators!
- {% elif license_is_active %} -
- Download -
- {% elif borrowable %} -
- {% else %} -
- {% endif %} - {% elif work.is_free %} -
- Download -
- {% endif %} -
-
-
- {% if status == 'ACTIVE' and work.last_campaign.email %} -
-

Ask Questions

- -
- {% endif %} -
-

Share

-
- -
- Copy/paste this into your site:
-
-
- {% if status == 'ACTIVE' %} -
- {% if premiums %} -

Premiums

-
- -
- {% endif %} - {% if work.last_campaign.type == 1 %} -

Acknowledgements

- - {% endif %} - {% if work.last_campaign.type == 2 %} - {% if lib_licenses.available %} -

Borrow

-
- -
- {% endif %} -

Buy for Yourself

-
- -
-

Buy as a Gift

- - {% if borrowed %} -

- Borrowed! -

- {% else %} -

Buy for a Library

- - {% endif %} - {% endif %} - {% if work.last_campaign.type == 3 %} -

Thank the Creators

-
- -
- {% endif %} -
- {% endif %} -
- {% if request.user.libpref %} - {% if work.is_free or work.ebookfiles %} -
-

for libraries...

-
- {% include 'marc_form.html' %} - - -
-
- {% endif %} - {% endif %} + {% include 'work_action.html' %}
diff --git a/frontend/templates/work_action.html b/frontend/templates/work_action.html new file mode 100644 index 00000000..252b2476 --- /dev/null +++ b/frontend/templates/work_action.html @@ -0,0 +1,268 @@ +{% load humanize %} +
+ {% if status == 'ACTIVE' %} + {% if work.last_campaign.type == 1 %} + {% if pledged %} +
+ {% else %} +
+ {% endif %} + {% elif work.last_campaign.type == 3 %} +
+ Download +
+
... and thank the creators!
+ {% elif license_is_active %} +
+ Download +
+ {% elif borrowable %} +
+ {% else %} +
+ {% endif %} + {% elif work.is_free %} +
+ Download +
+ {% endif %} +
+
+
+ {% if status == 'ACTIVE' and work.last_campaign.email %} +
+

Ask Questions

+ +
+ {% endif %} +
+

Share

+
+ +
+ Copy/paste this into your site:
+
+
+ {% if status == 'ACTIVE' %} +
+ {% if premiums %} +

Premiums

+
+ +
+ {% endif %} + {% if work.last_campaign.type == 1 %} +

Acknowledgements

+ + {% endif %} + {% if work.last_campaign.type == 2 %} + {% if lib_licenses.available %} +

Borrow

+
+ +
+ {% endif %} +

Buy for Yourself

+
+ +
+

Buy as a Gift

+ + {% if borrowed %} +

+ Borrowed! +

+ {% else %} +

Buy for a Library

+ + {% endif %} + {% endif %} + {% if work.last_campaign.type == 3 %} +

Thank the Creators

+
+ +
+ {% endif %} +
+ {% endif %} +
+{% if request.user.libpref %} +{% if work.is_free or work.ebookfiles %} +
+

for libraries...

+
+ {% include 'marc_form.html' %} + + +
+
+ {% endif %} +{% endif %}