gitlab-org--gitlab-foss/app/views/projects/environments/_external_url.html.haml

5 lines
339 B
Text
Raw Normal View History

2016-10-17 15:06:10 -04:00
- if environment.external_url && can?(current_user, :read_environment, environment)
= link_to environment.external_url, target: '_blank', rel: 'noopener noreferrer', class: 'btn external-url has-tooltip qa-view-deployment', title: s_('Environments|Open live environment') do
2018-06-27 04:51:37 -04:00
= sprite_icon('external-link')
= _("View deployment")