-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial pass at updating emails for the new parliament
These can be done after opening: - Debate outcomes - Petition emails - Petition mailshots - Petitions closing early - Petitions being stopped
- Loading branch information
Showing
59 changed files
with
535 additions
and
664 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
18 changes: 14 additions & 4 deletions
18
app/views/archived/petition_mailer/notify_creator_of_debate_scheduled.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
<%= render "reason" %> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p>Parliament is going to debate your petition – “<%= @petition.action %>”.</p> | ||
|
||
<p><%= link_to nil, archived_petition_url(@petition) %></p> | ||
<p>MPs are going to debate your petition – “<%= link_to @petition.action, archived_petition_url(@petition) %>”.</p> | ||
|
||
<p>The debate is scheduled for <%= short_date_format(@petition.scheduled_debate_date) %>.</p> | ||
|
||
<p>Once the debate has happened, we’ll email you a video and transcript.</p> | ||
<p>You can watch the debate live on <a href="http://www.youtube.com/ukparliament">Youtube</a> or <a href="https://parliamentlive.tv/Commons">parliamentlive.tv</a>.</p> | ||
|
||
<p>You can read a <a href="https://hansard.parliament.uk/">transcript of the debate</a> a few hours after it ends.</p> | ||
|
||
<p>After the debate, we’ll email you a video and transcript.</p> | ||
|
||
<h3>Petition debates</h3> | ||
|
||
<p>Petition debates allow MPs from all parties to discuss the issues raised by petitions.</p> | ||
|
||
<p>They don’t end with a vote to implement the request of a petition.</p> | ||
|
||
<p><a href="https://committees.parliament.uk/committee/326/petitions-committee/content/194347/how-petitions-debates-work/">Find out more</a></p> | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
23 changes: 19 additions & 4 deletions
23
app/views/archived/petition_mailer/notify_creator_of_debate_scheduled.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
<%= render "reason" %> | ||
Dear <%= @signature.name %>, | ||
|
||
Parliament is going to debate your petition – “<%= @petition.action %>”. | ||
|
||
<%= archived_petition_url(@petition) %> | ||
MPs are going to debate your petition – “<%= @petition.action %>”. | ||
|
||
The debate is scheduled for <%= short_date_format(@petition.scheduled_debate_date) %>. | ||
|
||
Once the debate has happened, we’ll email you a video and transcript. | ||
You can watch the debate live on [Youtube][1] or [parliamentlive.tv][2]. | ||
|
||
You can read a [transcript of the debate][3] a few hours after it ends. | ||
|
||
After the debate, we’ll email you a video and transcript. | ||
|
||
### Petition debates | ||
|
||
Petition debates allow MPs from all parties to discuss the issues raised by petitions. | ||
|
||
They don’t end with a vote to implement the request of a petition. | ||
|
||
[Find out more][4] | ||
|
||
[1]: http://www.youtube.com/ukparliament | ||
[2]: https://parliamentlive.tv/Commons | ||
[3]: https://hansard.parliament.uk/ | ||
[4]: https://committees.parliament.uk/committee/326/petitions-committee/content/194347/how-petitions-debates-work/ | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
16 changes: 2 additions & 14 deletions
16
app/views/archived/petition_mailer/notify_creator_of_threshold_response.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
<%= render "reason" %> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p>The Government has responded to your petition – “<%= link_to @petition.action, archived_petition_url(@petition) %>”.</p> | ||
|
||
<p>Government responded:</p> | ||
The <%= link_to "Government has responded", archived_petition_url(@petition, reveal_response: "yes") %> to your petition: “<%= @petition.action %>”. | ||
|
||
<blockquote><%= auto_link(simple_format(h(@government_response.summary))) %></blockquote> | ||
|
||
<blockquote><%= auto_link(simple_format(h(@government_response.details))) %></blockquote> | ||
|
||
<p>Click this link to view the response online:</p> | ||
|
||
<p><%= link_to nil, archived_petition_url(@petition, reveal_response: "yes") %></p> | ||
|
||
<% if @petition.signature_count < @parliament.threshold_for_debate %> | ||
<p>The Petitions Committee will take a look at this petition and its response. They can press the government for action and gather evidence. If this petition reaches <%= @parliament.formatted_threshold_for_debate %> signatures, the Committee will consider it for a debate.</p> | ||
<% else %> | ||
<p>This petition has over <%= @parliament.formatted_threshold_for_debate %> signatures. The Petitions Committee will consider it for a debate. They can also gather further evidence and press the government for action.</p> | ||
<% end %> | ||
|
||
<p>The Committee is made up of 11 MPs, from political parties in government and in opposition. It is entirely independent of the Government. Find out more about the Committee: <%= link_to nil, help_url(anchor: 'petitions-committee') %></p> | ||
<p>If it reaches <%= Site.formatted_threshold_for_debate %> signatures, the Petitions Committee will consider whether MPs debate it in the House of Commons.</p> | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
17 changes: 3 additions & 14 deletions
17
app/views/archived/petition_mailer/notify_creator_of_threshold_response.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
<%= render "reason" %> | ||
Dear <%= @signature.name %>, | ||
|
||
The Government has responded to your petition – “<%= @petition.action %>”. | ||
|
||
Government responded: | ||
The Government has responded to your petition: “<%= @petition.action %>”. | ||
<%= archived_petition_url(@petition, reveal_response: "yes") %> | ||
<%= h(@government_response.summary) %> | ||
<%= h(@government_response.details) %> | ||
|
||
Click this link to view the response online: | ||
|
||
<%= archived_petition_url(@petition, reveal_response: "yes") %> | ||
<% if @petition.signature_count < Site.threshold_for_debate %> | ||
The Petitions Committee will take a look at this petition and its response. They can press the government for action and gather evidence. If this petition reaches <%= Site.formatted_threshold_for_debate %> signatures, the Committee will consider it for a debate. | ||
<% else %> | ||
This petition has over <%= Site.formatted_threshold_for_debate %> signatures. The Petitions Committee will consider it for a debate. They can also gather further evidence and press the government for action. | ||
<% end %> | ||
|
||
The Committee is made up of 11 MPs, from political parties in government and in opposition. It is entirely independent of the Government. Find out more about the Committee: <%= help_url(anchor: 'petitions-committee') %> | ||
If it reaches <%= Site.formatted_threshold_for_debate %> signatures, the Petitions Committee will consider whether MPs debate it in the House of Commons. | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
18 changes: 14 additions & 4 deletions
18
app/views/archived/petition_mailer/notify_signer_of_debate_scheduled.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
<%= render "reason" %> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p>Parliament is going to debate the petition you signed – “<%= @petition.action %>”.</p> | ||
|
||
<p><%= link_to nil, archived_petition_url(@petition) %></p> | ||
<p>MPs are going to debate the petition you signed: “<%= link_to @petition.action, archived_petition_url(@petition) %>”.</p> | ||
|
||
<p>The debate is scheduled for <%= short_date_format(@petition.scheduled_debate_date) %>.</p> | ||
|
||
<p>Once the debate has happened, we’ll email you a video and transcript.</p> | ||
<p>You can watch the debate live on <a href="http://www.youtube.com/ukparliament">Youtube</a> or <a href="https://parliamentlive.tv/Commons">parliamentlive.tv</a>.</p> | ||
|
||
<p>You can read a <a href="https://hansard.parliament.uk/">transcript of the debate</a> a few hours after it ends.</p> | ||
|
||
<p>After the debate, we’ll email you a video and transcript.</p> | ||
|
||
<h3>Petition debates</h3> | ||
|
||
<p>Petition debates allow MPs from all parties to discuss the issues raised by petitions.</p> | ||
|
||
<p>They don’t end with a vote to implement the request of a petition.</p> | ||
|
||
<p><a href="https://committees.parliament.uk/committee/326/petitions-committee/content/194347/how-petitions-debates-work/">Find out more</a></p> | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
23 changes: 19 additions & 4 deletions
23
app/views/archived/petition_mailer/notify_signer_of_debate_scheduled.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
<%= render "reason" %> | ||
Dear <%= @signature.name %>, | ||
|
||
Parliament is going to debate the petition you signed – “<%= @petition.action %>”. | ||
|
||
<%= archived_petition_url(@petition) %> | ||
MPs are going to debate the petition you signed: “<%= @petition.action %>”. | ||
|
||
The debate is scheduled for <%= short_date_format(@petition.scheduled_debate_date) %>. | ||
|
||
Once the debate has happened, we’ll email you a video and transcript. | ||
You can watch the debate live on [Youtube][1] or [parliamentlive.tv][2]. | ||
|
||
You can read a [transcript of the debate][3] a few hours after it ends. | ||
|
||
After the debate, we’ll email you a video and transcript. | ||
|
||
### Petition debates | ||
|
||
Petition debates allow MPs from all parties to discuss the issues raised by petitions. | ||
|
||
They don’t end with a vote to implement the request of a petition. | ||
|
||
[Find out more][4] | ||
|
||
[1]: http://www.youtube.com/ukparliament | ||
[2]: https://parliamentlive.tv/Commons | ||
[3]: https://hansard.parliament.uk/ | ||
[4]: https://committees.parliament.uk/committee/326/petitions-committee/content/194347/how-petitions-debates-work/ | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
18 changes: 3 additions & 15 deletions
18
app/views/archived/petition_mailer/notify_signer_of_threshold_response.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
<%= render "reason" %> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p>The Government has responded to the petition you signed – “<%= link_to @petition.action, archived_petition_url(@petition) %>”.</p> | ||
|
||
<p>Government responded:</p> | ||
<p>The Government has responded to the petition you signed.</p> | ||
|
||
<blockquote><%= auto_link(simple_format(h(@government_response.summary))) %></blockquote> | ||
|
||
<blockquote><%= auto_link(simple_format(h(@government_response.details))) %></blockquote> | ||
|
||
<p>Click this link to view the response online:</p> | ||
|
||
<p><%= link_to nil, archived_petition_url(@petition, reveal_response: "yes") %></p> | ||
|
||
<% if @petition.signature_count < @parliament.threshold_for_debate %> | ||
<p>The Petitions Committee will take a look at this petition and its response. They can press the government for action and gather evidence. If this petition reaches <%= @parliament.formatted_threshold_for_debate %> signatures, the Committee will consider it for a debate.</p> | ||
<% else %> | ||
<p>This petition has over <%= @parliament.formatted_threshold_for_debate %> signatures. The Petitions Committee will consider it for a debate. They can also gather further evidence and press the government for action.</p> | ||
<% end %> | ||
<p><%= link_to "Read the full response", archived_petition_url(@petition, reveal_response: "yes") %>.</p> | ||
|
||
<p>The Committee is made up of 11 MPs, from political parties in government and in opposition. It is entirely independent of the Government. Find out more about the Committee: <%= link_to nil, help_url(anchor: 'petitions-committee') %></p> | ||
<p>If <%= Site.formatted_threshold_for_debate %> people sign the petition, the Petitions Committee will consider whether MPs debate it in Parliament.</p> | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
17 changes: 3 additions & 14 deletions
17
app/views/archived/petition_mailer/notify_signer_of_threshold_response.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
<%= render "reason" %> | ||
Dear <%= @signature.name %>, | ||
|
||
The Government has responded to the petition you signed – “<%= @petition.action %>”. | ||
|
||
Government responded: | ||
The Government has responded to the petition you signed. | ||
|
||
<%= h(@government_response.summary) %> | ||
|
||
<%= h(@government_response.details) %> | ||
|
||
Click this link to view the response online: | ||
|
||
Read the full response: | ||
<%= archived_petition_url(@petition, reveal_response: "yes") %> | ||
|
||
<% if @petition.signature_count < @parliament.threshold_for_debate %> | ||
The Petitions Committee will take a look at this petition and its response. They can press the government for action and gather evidence. If this petition reaches <%= @parliament.formatted_threshold_for_debate %> signatures, the Committee will consider it for a debate. | ||
<% else %> | ||
This petition has over <%= @parliament.formatted_threshold_for_debate %> signatures. The Petitions Committee will consider it for a debate. They can also gather further evidence and press the government for action. | ||
<% end %> | ||
|
||
The Committee is made up of 11 MPs, from political parties in government and in opposition. It is entirely independent of the Government. Find out more about the Committee: <%= help_url(anchor: 'petitions-committee') %> | ||
If <%= Site.formatted_threshold_for_debate %> people sign the petition, the Petitions Committee will consider whether MPs debate it in Parliament. | ||
|
||
<%= render "footer" %> | ||
<%= render "unsubscribe" %> |
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
4 changes: 2 additions & 2 deletions
4
app/views/petition_mailer/email_confirmation_for_signer.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<p>Click this link to sign the petition "<%= @petition.action %>"</p> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p><%= link_to nil, verify_signature_url(@signature, token: @signature.perishable_token) %></p> | ||
<p>Please <%= link_to "confirm your email", verify_signature_url(@signature, token: @signature.perishable_token) %> to sign the petition: “<%= link_to @petition.action, petition_url(@petition) %>”.</p> | ||
|
||
<%= render "footer" %> |
6 changes: 5 additions & 1 deletion
6
app/views/petition_mailer/email_confirmation_for_signer.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
Click this link to sign the petition "<%= @petition.action %>" | ||
Dear <%= @signature.name %>, | ||
|
||
Please confirm your email: | ||
<%= verify_signature_url(@signature, token: @signature.perishable_token) %> | ||
|
||
to sign the petition “<%= @petition.action %>”: | ||
<%= petition_url(@petition) %> | ||
<%= render "footer" %> |
7 changes: 4 additions & 3 deletions
7
app/views/petition_mailer/email_duplicate_signatures.html.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<p>You're receiving this email because your email has been used to sign the petition “<%= @petition.action %>”, but you have already signed this petition.</p> | ||
<p>Dear <%= @signature.name %>,</p> | ||
|
||
<p>View the petition “<%= @petition.action %>” at: <br /> | ||
<%= link_to nil, petition_url(@petition) %></p> | ||
<p>Your email has been used to sign the petition: “<%= link_to @petition.action, petition_url(@petition) %>”.</p> | ||
|
||
<p>You have already signed it, so your signature cannot be accepted.</p> | ||
|
||
<%= render "footer" %> |
6 changes: 4 additions & 2 deletions
6
app/views/petition_mailer/email_duplicate_signatures.text.erb
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
You're receiving this email because your email has been used to sign the petition “<%= @petition.action %>”, but you have already signed this petition. | ||
Dear <%= @signature.name %>, | ||
|
||
View the petition “<%= @petition.action %>” at: | ||
Your email has been used to sign the petition “<%= @petition.action %>": | ||
<%= petition_url(@petition) %> | ||
|
||
You have already signed it, so your signature cannot be accepted. | ||
|
||
<%= render "footer" %> |
Oops, something went wrong.