diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index ddb6d67a53a..ec87c49b7b9 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -5,6 +5,24 @@ class HelpController < ApplicationController def first_login end + def preferences_collection + end + + def preferences_comment + end + + def preferences_display + end + def preferences_locale end + + def preferences_misc + end + + def preferences_privacy + end + + def preferences_work_title_format + end end diff --git a/app/views/help/preferences_collection.html.erb b/app/views/help/preferences_collection.html.erb new file mode 100644 index 00000000000..0b6541d9cd4 --- /dev/null +++ b/app/views/help/preferences_collection.html.erb @@ -0,0 +1,29 @@ +

<%= t(".page_heading") %>

+ +
+
<%= t(".allow_collection_invitation.header") %>
+
+

+ <%= t(".allow_collection_invitation.enabling_html", + app_name: ArchiveConfig.APP_SHORT_NAME, + how_to_approve_faq_link: link_to(t(".allow_collection_invitation.how_to_approve_faq"), archive_faq_path("collections", anchor: "collectionitems"))) %> +

+

<%= t(".allow_collection_invitation.disabling") %>

+

<%= t(".allow_collection_invitation.changing") %>

+
+ +
<%= t(".allow_gifts.header") %>
+
+ <%= t(".allow_gifts.description_html", + how_to_refuse_faq_link: link_to(t(".allow_gifts.how_to_refuse_faq"), archive_faq_path("your-account", anchor: "refusegift"))) %> +
+ +
<%= t(".turn_off_collection_emails.header") %>
+
<%= t(".turn_off_collection_emails.description") %>
+ +
<%= t(".turn_off_collection_inbox.header") %>
+
<%= t(".turn_off_collection_inbox.description") %>
+ +
<%= t(".turn_off_gift_emails.header") %>
+
<%= t(".turn_off_gift_emails.description") %>
+
diff --git a/app/views/help/preferences_comment.html.erb b/app/views/help/preferences_comment.html.erb new file mode 100644 index 00000000000..54f80329503 --- /dev/null +++ b/app/views/help/preferences_comment.html.erb @@ -0,0 +1,17 @@ +

<%= t(".page_heading") %>

+ +
+
<%= t(".turn_off_emails.header") %>
+
<%= t(".turn_off_emails.description") %>
+
<%= t(".turn_off_inbox.header") %>
+
<%= t(".turn_off_inbox.description") %>
+
<%= t(".turn_off_copies_own_comments.header") %>
+
<%= t(".turn_off_copies_own_comments.description") %>
+
<%= t(".turn_off_kudos_emails.header") %>
+
<%= t(".turn_off_kudos_emails.description") %>
+
<%= t(".guest_replies_off.header") %>
+
+ <%= t(".guest_replies_off.description_html", + posting_and_editing_faq_link: link_to(t(".guest_replies_off.posting_and_editing_faq"), archive_faq_path("posting-and-editing", anchor: "controlaccess"))) %> +
+
diff --git a/app/views/help/preferences_display.html.erb b/app/views/help/preferences_display.html.erb new file mode 100644 index 00000000000..270cb79f027 --- /dev/null +++ b/app/views/help/preferences_display.html.erb @@ -0,0 +1,14 @@ +

<%= t(".page_heading") %>

+ +
+
<%= t(".show_adult_content.header") %>
+
<%= t(".show_adult_content.description") %>
+
<%= t(".show_whole_work_default.header") %>
+
<%= t(".show_whole_work_default.description") %>
+
<%= t(".hide_warnings.header") %>
+
<%= t(".hide_warnings.description") %>
+
<%= t(".hide_additional_tags.header") %>
+
<%= t(".hide_additional_tags.description") %>
+
<%= t(".hide_work_skins.header") %>
+
<%= t(".hide_work_skins.description") %>
+
diff --git a/app/views/help/preferences_locale.html.erb b/app/views/help/preferences_locale.html.erb index d991f477993..6712339f956 100644 --- a/app/views/help/preferences_locale.html.erb +++ b/app/views/help/preferences_locale.html.erb @@ -2,7 +2,5 @@
<%= t(".locale.header") %>
-
- <%= t(".locale.description") %> -
+
<%= t(".locale.description") %>
diff --git a/app/views/help/preferences_misc.html.erb b/app/views/help/preferences_misc.html.erb new file mode 100644 index 00000000000..86333f5b526 --- /dev/null +++ b/app/views/help/preferences_misc.html.erb @@ -0,0 +1,12 @@ +

<%= t(".page_heading") %>

+ +
+
<%= t(".turn_on_history.header") %>
+
<%= t(".turn_on_history.description") %>
+ +
<%= t(".turn_on_new_user_help.header") %>
+
<%= t(".turn_on_new_user_help.description") %>
+ +
<%= t(".turn_off_banner_every_page.header") %>
+
<%= t(".turn_off_banner_every_page.description") %>
+
diff --git a/app/views/help/preferences_privacy.html.erb b/app/views/help/preferences_privacy.html.erb new file mode 100644 index 00000000000..691d7a8a9bb --- /dev/null +++ b/app/views/help/preferences_privacy.html.erb @@ -0,0 +1,19 @@ +

<%= t(".page_heading") %>

+ +
+
<%= t(".hide_work_from_search_engines.header") %>
+
<%= t(".hide_work_from_search_engines.description") %>
+
<%= t(".hide_share_buttons.header") %>
+
+

<%= t(".hide_share_buttons.description") %>

+

<%= t(".hide_share_buttons.note") %>

+
+
<%= t(".allow_co_creator_invite.header") %>
+
+

<%= t(".allow_co_creator_invite.enabling", app_name: ArchiveConfig.APP_SHORT_NAME) %>

+

<%= t(".allow_co_creator_invite.disabling") %>

+

<%= t(".allow_co_creator_invite.changing") %>

+
+
+ +

<%= t(".more_information_html", preferences_faq_link: link_to(t(".preferences_faq"), archive_faq_path("preferences"))) %>

diff --git a/app/views/help/preferences_work_title_format.html.erb b/app/views/help/preferences_work_title_format.html.erb new file mode 100644 index 00000000000..cf5ede5055e --- /dev/null +++ b/app/views/help/preferences_work_title_format.html.erb @@ -0,0 +1,12 @@ +

<%= t(".page_heading") %>

+ +

<%= t(".description") %>

+ +
+
TITLE - AUTHOR - FANDOM
+
<%= t(".example.default") %>
+
TITLE - AUTHOR
+
<%= t(".example.no_fandom") %>
+
FANDOM_AUTHOR_TITLE
+
<%= t(".example.reverse_underscore") %>
+
diff --git a/app/views/preferences/index.html.erb b/app/views/preferences/index.html.erb index 36375b93bbe..dacecd76977 100644 --- a/app/views/preferences/index.html.erb +++ b/app/views/preferences/index.html.erb @@ -21,7 +21,7 @@ <%= form_for(@preference, url: user_preference_path(@user, @preference), autocomplete: "off") do |f| %>
<%= t(".privacy.legend") %> -

<%= t(".privacy.heading") %> <%= link_to_help "privacy-preferences" %>

+

<%= t(".privacy.heading") %> <%= link_to_help_modal(help_preferences_privacy_path, t(".privacy.help_title")) %>

<%= t(".display.legend") %> -

<%= t(".display.heading") %> <%= link_to_help "display-preferences" %>

+

<%= t(".display.heading") %> <%= link_to_help_modal(help_preferences_display_path, t(".display.help_title")) %>

<%= t(".comments.legend") %> -

<%= t(".comments.heading") %> <%= link_to_help "comment-preferences" %>

+

<%= t(".comments.heading") %> <%= link_to_help_modal(help_preferences_comment_path, t(".comments.help_title")) %>

<%= t(".collections_challenges_gifts.legend") %> -

<%= t(".collections_challenges_gifts.heading") %> <%= link_to_help "collection-preferences" %>

+

<%= t(".collections_challenges_gifts.heading") %> <%= link_to_help_modal(help_preferences_collection_path, t(".collections_challenges_gifts.help_title")) %>

<%= t(".misc.legend") %> -

<%= t(".misc.heading") %> <%= link_to_help "misc-preferences" %>

+

<%= t(".misc.heading") %> <%= link_to_help_modal(help_preferences_misc_path, t(".misc.help_title")) %>