]> cat aescling's git repositories - mastodon.git/commitdiff
Open authorized application in a new window (#2250)
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Fri, 21 Apr 2017 14:44:14 +0000 (16:44 +0200)
committerEugen <eugen@zeonfederated.com>
Fri, 21 Apr 2017 14:44:14 +0000 (16:44 +0200)
Like it's already done when you click on an application from a toot, it's opening in a new window.
https://github.com/tootsuite/mastodon/blob/0254ee9795822ec75ff64ace6ec2b91573bc9a52/app/views/stream_entries/_detailed_status.html.haml#L41

app/views/oauth/authorized_applications/index.html.haml

index d4719881cfb78c6c16914d23eb860ebf0d477ec3..421ed317d5107ae2ba69a4b556c1e60e9839bad7 100644 (file)
@@ -15,7 +15,7 @@
           - if application.website.blank?
             = application.name
           - else
-            = link_to application.name, application.website
+            = link_to application.name, application.website, target: '_blank', rel: 'noopener'
         %th= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join('<br />').html_safe
         %td= l application.created_at
         %td