diff --git a/lib/views/alaveteli_pro/embargo_mailer/expired_alert.text.erb b/lib/views/alaveteli_pro/embargo_mailer/expired_alert.text.erb new file mode 100644 index 00000000..1b54315d --- /dev/null +++ b/lib/views/alaveteli_pro/embargo_mailer/expired_alert.text.erb @@ -0,0 +1,16 @@ ++----------------------------------------------------------------+ +| Tell us how you've used your requests and get free Pro credit! | +| https://www.mysociety.org/batch-credit-summer-2024 | ++----------------------------------------------------------------+ + +<%= n_('The following request has been made public on {{site_name}} this week.', + 'The following requests have been made public on {{site_name}} this ' \ + 'week.', + @info_requests.count, + :site_name => site_name.html_safe) %> + +<% @info_requests.each do |info_request| %> + <%= request_url(info_request) %> +<% end %> + +-- <%= _('the {{site_name}} team', :site_name => site_name.html_safe) %> diff --git a/lib/views/alaveteli_pro/embargo_mailer/expiring_alert.text.erb b/lib/views/alaveteli_pro/embargo_mailer/expiring_alert.text.erb new file mode 100644 index 00000000..5c274af5 --- /dev/null +++ b/lib/views/alaveteli_pro/embargo_mailer/expiring_alert.text.erb @@ -0,0 +1,19 @@ ++----------------------------------------------------------------+ +| Tell us how you've used your requests and get free Pro credit! | +| https://www.mysociety.org/batch-credit-summer-2024 | ++----------------------------------------------------------------+ + +<%= n_('The following request will be made public on {{site_name}} in the ' \ + 'next week. If you do not wish this request to go public at that ' \ + 'time, please click on the link below to keep it private for longer.', + 'The following requests will be made public on {{site_name}} in the ' \ + 'next week. If you do not wish for any of these requests to go ' \ + 'public, please click on the links below to extend them.', + @info_requests.count, + :site_name => site_name.html_safe) %> + +<% @info_requests.each do |info_request| %> + <%= request_url(info_request) %> +<% end %> + +-- <%= _('the {{site_name}} team', :site_name => site_name.html_safe) %> diff --git a/lib/views/info_request_batch_mailer/batch_sent.text.erb b/lib/views/info_request_batch_mailer/batch_sent.text.erb new file mode 100644 index 00000000..b7c67cc8 --- /dev/null +++ b/lib/views/info_request_batch_mailer/batch_sent.text.erb @@ -0,0 +1,25 @@ ++----------------------------------------------------------------+ +| Tell us how you've used your requests and get free Pro credit! | +| https://www.mysociety.org/batch-credit-summer-2024 | ++----------------------------------------------------------------+ + +<%= _('Your batch request "{{title}}" has been sent', + :title => @info_request_batch.title.html_safe) %> + + +<%= _('Follow this link to see the requests:')%> + +<%= @url %> + +<% if !@unrequestable.empty? %> +<%= _('Unfortunately, we do not have a working address for ' \ + '{{public_body_names}}.', + :public_body_names => @unrequestable.map{|body| body.name}.join(", "). + html_safe) %> +<%= _('You may be able to find one on their website, or by phoning them ' \ + 'up and asking. If you manage to find one, then please send it to us:') %> + +<%= help_contact_url %> + +<% end %> +-- <%= _('the {{site_name}} team', :site_name => site_name.html_safe) %> diff --git a/lib/views/notification_mailer/daily_summary.text.erb b/lib/views/notification_mailer/daily_summary.text.erb new file mode 100644 index 00000000..c6a14558 --- /dev/null +++ b/lib/views/notification_mailer/daily_summary.text.erb @@ -0,0 +1,15 @@ ++----------------------------------------------------------------+ +| Tell us how you've used your requests and get free Pro credit! | +| https://www.mysociety.org/batch-credit-summer-2024 | ++----------------------------------------------------------------+ + +<%= _("Here's your daily request summary from {{site_name}}:", + site_name: site_name.html_safe) %> + +<% @grouped_notifications.each do |request, notifications| %> +<%= render :partial => "notification_mailer/#{request.to_partial_path}", + :locals => { request.class.model_name.param_key.to_sym => request, + :notifications => notifications } %> +<% end %> + +-- <%= _('the {{site_name}} team', :site_name => site_name.html_safe) %>