]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/_message_body.html.erb
erblint: add rel=noopener to links that open in a new tab
[rails.git] / app / views / notifier / _message_body.html.erb
index b3b0eb687d5b44277e6cd8d76d2e4134e2575562..f8a4e262127b06f86ba801bffa2ba801933ffd10 100644 (file)
@@ -4,14 +4,14 @@
       <%= link_to(
             image_tag(
               attachments["avatar.png"].url,
-              alt: @author,
-              title: @author,
-              width: 50,
-              height: 50,
-              border: 0
+              :alt => @author,
+              :title => @author,
+              :width => 50,
+              :height => 50,
+              :border => 0
             ),
             user_url(@author),
-            :target => "_blank"
+            :target => "_blank", :rel => "noopener"
           ) %>
     </td>
     <td style="text-align: left; vertical-align: top; padding-right: 10px; width: 100%">