add unsubscribe link to emails
This commit is contained in:
parent
5698c3bad4
commit
99060abbfc
6 changed files with 16 additions and 2 deletions
|
@ -18,6 +18,9 @@
|
||||||
<%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %>
|
<%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %>
|
||||||
|
|
||||||
<p style="font-size: 12px;">Make sense with Metamaps</p>
|
<p style="font-size: 12px;">Make sense with Metamaps</p>
|
||||||
|
|
||||||
|
<%= render partial: 'shared/mailer_unsubscribe_link' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -7,4 +7,4 @@ Decline [<%= deny_access_map_url(id: @map.id, request_id: @request.id) %>]
|
||||||
|
|
||||||
Make sense with Metamaps
|
Make sense with Metamaps
|
||||||
|
|
||||||
|
<%= render partial: 'shared/mailer_unsubscribe_link' %>
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
<%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %>
|
<%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %>
|
||||||
|
|
||||||
<p style="font-size: 12px;">Make sense with Metamaps</p>
|
<p style="font-size: 12px;">Make sense with Metamaps</p>
|
||||||
|
|
||||||
|
<%= render partial: 'shared/mailer_unsubscribe_link' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
|
|
||||||
Make sense with Metamaps
|
Make sense with Metamaps
|
||||||
|
|
||||||
|
<%= render partial: 'shared/mailer_unsubscribe_link' %>
|
||||||
|
|
3
app/views/shared/_mailer_unsubscribe_link.html.erb
Normal file
3
app/views/shared/_mailer_unsubscribe_link.html.erb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="unsubscribe-link">
|
||||||
|
<%= link_to 'Click here to unsubscribe from all Metamaps emails', unsubscribe_notifications_url %>
|
||||||
|
</div>
|
5
app/views/shared/_mailer_unsubscribe_link.text.erb
Normal file
5
app/views/shared/_mailer_unsubscribe_link.text.erb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
You can unsubscribe from all Metamaps emails by visiting the following link:
|
||||||
|
|
||||||
|
<%= unsubscribe_notifications_url %>
|
Loading…
Add table
Reference in a new issue