summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-10-06 10:56:49 +0200
committerBryce Johnson <bryce@gitlab.com>2016-10-06 16:05:23 +0200
commit01af0aab4a02fca9f47006aae4b4578787c55870 (patch)
tree65012813562dc0c539fc2fc4a71a71b1d33b312d /app
parenta483477091d0ffd2a39bc310bf18aa12796fc69e (diff)
downloadgitlab-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.haml5
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)