diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-06 10:56:49 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-06 16:05:23 +0200 |
commit | 01af0aab4a02fca9f47006aae4b4578787c55870 (patch) | |
tree | 65012813562dc0c539fc2fc4a71a71b1d33b312d /app | |
parent | a483477091d0ffd2a39bc310bf18aa12796fc69e (diff) | |
download | gitlab-ce-01af0aab4a02fca9f47006aae4b4578787c55870.tar.gz |
Only hide external link text, not icon/link.deploy-widget
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/merge_requests/widget/_heading.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml index 7ba590d4ff5..5b7f83c344f 100644 --- a/app/views/projects/merge_requests/widget/_heading.html.haml +++ b/app/views/projects/merge_requests/widget/_heading.html.haml @@ -55,5 +55,6 @@ = link_to environment.name, environment_path(environment), class: 'environment' - external_url = environment.external_url - if external_url - = link_to external_url, target: '_blank', class: 'hidden-xs' do - = icon('external-link', text: "View on #{external_url.gsub(/\A.*?:\/\//, '')}", right: true) + = link_to external_url, target: '_blank' do + %span.hidden-xs View on #{external_url.gsub(/\A.*?:\/\//, '')} + = icon('external-link', right: true) |