From f04cbcaad7d8a2c49439bf7f5f20abfea0bfcf40 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 12 Dec 2016 18:17:48 -0500 Subject: [PATCH] remove target blanks from emails --- app/views/map_mailer/access_request_email.html.erb | 6 +++--- app/views/map_mailer/invite_to_edit_email.html.erb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/map_mailer/access_request_email.html.erb b/app/views/map_mailer/access_request_email.html.erb index 2e89eb6e..f1569815 100644 --- a/app/views/map_mailer/access_request_email.html.erb +++ b/app/views/map_mailer/access_request_email.html.erb @@ -5,10 +5,10 @@

<%= @map.name %>

-

<%= link_to "Allow", approve_access_map_url(id: @map.id, request_id: @request.id), target: "_blank", style: "font-size: 18px; text-decoration: none; color: #4fc059;" %> -

<%= link_to "Decline", deny_access_map_url(id: @map.id, request_id: @request.id), target: "_blank", style: "font-size: 18px; text-decoration: none; color: #DB5D5D;" %>

+

<%= link_to "Allow", approve_access_map_url(id: @map.id, request_id: @request.id), style: "font-size: 18px; text-decoration: none; color: #4fc059;" %> +

<%= link_to "Decline", deny_access_map_url(id: @map.id, request_id: @request.id), style: "font-size: 18px; text-decoration: none; color: #DB5D5D;" %>

- <%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %> + <%= link_to 'Open in Metamaps', map_url(@map), style: button_style %>

Make sense with Metamaps

diff --git a/app/views/map_mailer/invite_to_edit_email.html.erb b/app/views/map_mailer/invite_to_edit_email.html.erb index cd2b7b2e..c14ccd35 100644 --- a/app/views/map_mailer/invite_to_edit_email.html.erb +++ b/app/views/map_mailer/invite_to_edit_email.html.erb @@ -2,12 +2,12 @@ <% button_style = "background-color:#4fc059;border-radius:2px;color:white;display:inline-block;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:12px;font-weight:bold;min-height:29px;line-height:29px;min-width:54px;outline:0px;padding:0 8px;text-align:center;text-decoration:none" %>

<%= @inviter.name %> has invited you to collaboratively edit the following map:

-

<%= link_to @map.name, map_url(@map), target: "_blank", style: "font-size: 18px; text-decoration: none; color: #4fc059;" %>

+

<%= link_to @map.name, map_url(@map), style: "font-size: 18px; text-decoration: none; color: #4fc059;" %>

<% if @map.desc %>

<%= @map.desc %>

<% end %> - <%= link_to 'Open in Metamaps', map_url(@map), target: "_blank", style: button_style %> + <%= link_to 'Open in Metamaps', map_url(@map), style: button_style %>

Make sense with Metamaps