Commit 01af0aab authored by Bryce Johnson's avatar Bryce Johnson

Only hide external link text, not icon/link.

parent a4834770
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment