Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#332] Batch citation promo text only #1910

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/views/alaveteli_pro/embargo_mailer/expired_alert.text.erb
Original file line number Diff line number Diff line change
@@ -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) %>
19 changes: 19 additions & 0 deletions lib/views/alaveteli_pro/embargo_mailer/expiring_alert.text.erb
Original file line number Diff line number Diff line change
@@ -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) %>
25 changes: 25 additions & 0 deletions lib/views/info_request_batch_mailer/batch_sent.text.erb
Original file line number Diff line number Diff line change
@@ -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 [email protected]? %>
<%= _('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) %>
15 changes: 15 additions & 0 deletions lib/views/notification_mailer/daily_summary.text.erb
Original file line number Diff line number Diff line change
@@ -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) %>
Loading