Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
- fields_for @reader do |rf| | |||
- @reader.build_mailing_list_membership unless @reader.mailing_list_membership | |||
- rf.fields_for :mailing_list_membership do |mf| | |||
#mailing_list | |||
%h3 | |||
= t('mailing_list_preferences') | |||
%p | |||
= t('control_your_subscription', :list_name => "#{Radiant.config['reader.mailman.list_name']}@") | |||
%br | |||
= mf.check_box :nomail | |||
= mf.label :nomail | |||
%br | |||
= mf.check_box :digest | |||
= mf.label :digest | |||
%br | |||
= mf.check_box :plain | |||
= mf.label :plain | |||
%br | |||
= mf.check_box :not_metoo | |||
= mf.label :not_metoo |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/views/admin/reader_configuration/_edit_mailing_list.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,21 @@ | |||
#mailing_list | - fields_for @reader do |rf| | ||
%p | #mailing_list | ||
= f.check_box :opt_out_of_mailing_list | %h3 | ||
= f.label :opt_out_of_mailing_list, :class => "checkbox" | = t('mailing_list_preferences') | ||
%br | %p | ||
= f.check_box :mailing_list_digested | = rf.check_box :opt_out_of_mailing_list | ||
= f.label :mailing_list_digested, :class => "checkbox" | = rf.label :opt_out_of_mailing_list | ||
%br | %br | ||
= f.check_box :mailing_list_notmetoo | - @reader.build_mailing_list_membership | ||
= f.label :mailing_list_notmetoo, :class => "checkbox" | - rf.fields_for :mailing_list_membership do |mf| | ||
%br | = mf.check_box :nomail | ||
= f.check_box :mailing_list_nomail | = mf.label :nomail | ||
= f.label :mailing_list_nomail, :class => "checkbox" | %br | ||
= mf.check_box :digest | |||
= mf.label :digest | |||
%br | |||
= mf.check_box :plain | |||
= mf.label :plain | |||
%br | |||
= mf.check_box :not_metoo | |||
= mf.label :not_metoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,18 +1,24 @@ | |||
en: | en: | ||
activerecord: | activerecord: | ||
attributes: | attributes: | ||
reader: | mailing_list_membership: | ||
opt_out_of_mailing_list: "Tick this box if you <strong>do not</strong> want to go on the mailing list" | nomail: "Tick this box if you <strong>do not</strong> want to receive mailing list messages" | ||
mailing_list_digest: "Get mailing list as digest instead of individual messages" | digest: "Get the mailing list as a daily digest instead of individual messages" | ||
mailing_list_notmetoo: "Don't receive your own messages to the mailing list" | plain: "Get digest messages in plain text rather than HTML" | ||
mailing_list_nomail: "Switch off the mailing list temporarily but remain a member" | not_metoo: "Don't receive an echo of your own messages to the mailing list" | ||
errors: | errors: | ||
models: | models: | ||
download: | download: | ||
attributes: | attributes: | ||
config: | config: | ||
download: | reader: | ||
download: "download" | mailman: | ||
downloads: "Downloads" | list_name: mailing list name | ||
downloads_extension: | host: database host | ||
permission_denied: "You do not have permission to download the requested file." | port: database port | ||
username: db username | |||
password: db password | |||
control_your_subscription: "You can also control your membership of the %{list_name} mailing list from here:" | |||
mailing_list: "Mailing list" | |||
mailing_list_configuration: "Mailing list configuration" | |||
mailing_list_preferences: "Mailing list preferences" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters