Skip to content

Commit 6f20e64

Browse files
committed
Merge pull request #463 from alphagov/update-unsub-links-and-subject-lines-again
Add petition actions to subject lines, make email unsubscribe information more specific
2 parents 134fd02 + 97e1eeb commit 6f20e64

23 files changed

Lines changed: 111 additions & 111 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<p><small>You’re receiving this email because you created this petition.</small></p>
2-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
1+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
2+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
33
<hr>
44

55
<p>Dear <%= @signature.name %>,</p>
66

7-
<p>You recently created the petition "<%= @petition.action %>":<br />
7+
<p>You recently created the petition <%= @petition.action %>:<br />
88
<%= link_to nil, petition_url(@petition) %></p>
99

1010
<%= auto_link(simple_format(h(@email.body))) %>
@@ -14,5 +14,5 @@
1414
<%= t("petitions.emails.signoff_suffix") %></p>
1515

1616
<hr>
17-
<p><small>You’re receiving this email because you created this petition.</small></p>
18-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
17+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
18+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
You’re receiving this email because you created this petition.
2-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
1+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
2+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
33
--
44

55
Dear <%= @signature.name %>,
66

7-
You recently created the petition "<%= @petition.action %>":
7+
You recently created the petition <%= @petition.action %>:
88
<%= petition_url(@petition) %>
99

1010
<%= @email.body %>
@@ -14,5 +14,5 @@ Thanks,
1414
<%= t("petitions.emails.signoff_suffix") %>
1515

1616
--
17-
You’re receiving this email because you created this petition.
18-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
17+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
18+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<p><small>You’re receiving this email because you signed this petition.</small></p>
2-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
1+
<p><small>You’re receiving this email because you signed this petition: “<%= @petition.action %>.</small></p>
2+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
33
<hr>
44

55
<p>Dear <%= @signature.name %>,</p>
66

7-
<p>You recently signed the petition "<%= @petition.action %>":<br />
7+
<p>You recently signed the petition <%= @petition.action %>:<br />
88
<%= link_to nil, petition_url(@petition) %></p>
99

1010
<%= auto_link(simple_format(h(@email.body))) %>
@@ -14,5 +14,5 @@
1414
<%= t("petitions.emails.signoff_suffix") %></p>
1515

1616
<hr>
17-
<p><small>You’re receiving this email because you signed this petition.</small></p>
18-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
17+
<p><small>You’re receiving this email because you signed this petition: “<%= @petition.action %>.</small></p>
18+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
You’re receiving this email because you signed this petition.
2-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
1+
You’re receiving this email because you signed this petition: “<%= @petition.action %>.
2+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
33
--
44

55
Dear <%= @signature.name %>,
66

7-
You recently signed the petition "<%= @petition.action %>":
7+
You recently signed the petition <%= @petition.action %>:
88
<%= petition_url(@petition) %>
99

1010
<%= @email.body %>
@@ -14,5 +14,5 @@ Thanks,
1414
<%= t("petitions.emails.signoff_suffix") %>
1515

1616
--
17-
You’re receiving this email because you signed this petition.
18-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
17+
You’re receiving this email because you signed this petition: “<%= @petition.action %>.
18+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>

app/views/petition_mailer/notify_creator_of_debate_outcome.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p><small>You’re receiving this email because you created this petition.</small></p>
2-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
1+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
2+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
33
<hr>
44

55
<p>Dear <%= @signature.name %>,</p>
@@ -37,5 +37,5 @@
3737
<%= t("petitions.emails.signoff_suffix") %></p>
3838

3939
<hr>
40-
<p><small>You’re receiving this email because you created this petition.</small></p>
41-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
40+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
41+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>

app/views/petition_mailer/notify_creator_of_debate_outcome.text.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
You’re receiving this email because you created this petition.
2-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
1+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
2+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
33
--
44

55
Dear <%= @signature.name %>,
66

77
<% if @debate_outcome.debated? %>
8-
Parliament debated your petition – "<%= @petition.action %>"
8+
Parliament debated your petition – <%= @petition.action %>
99

1010
<% if @debate_outcome.overview? %>
1111
<%= @debate_outcome.overview %>
@@ -38,5 +38,5 @@ Thanks,
3838
<%= t("petitions.emails.signoff_suffix") %>
3939

4040
--
41-
You’re receiving this email because you created this petition.
42-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
41+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
42+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>

app/views/petition_mailer/notify_creator_of_debate_scheduled.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p><small>You’re receiving this email because you created this petition.</small></p>
2-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
1+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
2+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
33
<hr>
44

55
<p>Dear <%= @signature.name %>,</p>
@@ -17,5 +17,5 @@
1717
<%= t("petitions.emails.signoff_suffix") %></p>
1818

1919
<hr>
20-
<p><small>You’re receiving this email because you created this petition.</small></p>
21-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
20+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
21+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
You’re receiving this email because you created this petition.
2-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
1+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
2+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
33
--
44

55
Dear <%= @signature.name %>,
66

7-
Parliament is going to debate your petition – "<%= @petition.action %>".
7+
Parliament is going to debate your petition – <%= @petition.action %>.
88

99
<%= petition_url(@petition) %>
1010

@@ -17,5 +17,5 @@ Thanks,
1717
<%= t("petitions.emails.signoff_suffix") %>
1818

1919
--
20-
You’re receiving this email because you created this petition.
21-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
20+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
21+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>

app/views/petition_mailer/notify_creator_of_threshold_response.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p><small>You’re receiving this email because you created this petition.</small></p>
2-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
1+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
2+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
33
<hr>
44

55
<p>Dear <%= @signature.name %>,</p>
@@ -29,5 +29,5 @@
2929
<%= t("petitions.emails.signoff_suffix") %></p>
3030

3131
<hr>
32-
<p><small>You’re receiving this email because you created this petition.</small></p>
33-
<p><small>To unsubscribe: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>
32+
<p><small>You’re receiving this email because you created this petition: “<%= @petition.action %>.</small></p>
33+
<p><small>To unsubscribe from this petition: <%= link_to nil, unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %></small></p>

app/views/petition_mailer/notify_creator_of_threshold_response.text.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
You’re receiving this email because you created this petition.
2-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
1+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
2+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
33
--
44

55
Dear <%= @signature.name %>,
66

7-
The Government has responded to your petition – "<%= @petition.action %>".
7+
The Government has responded to your petition – <%= @petition.action %>.
88

99
Government responded:
1010

@@ -29,5 +29,5 @@ Thanks,
2929
<%= t("petitions.emails.signoff_suffix") %>
3030

3131
--
32-
You’re receiving this email because you created this petition.
33-
To unsubscribe: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>
32+
You’re receiving this email because you created this petition: “<%= @petition.action %>.
33+
To unsubscribe from this petition: <%= unsubscribe_signature_url(@signature, @signature.unsubscribe_token) %>

0 commit comments

Comments
 (0)