diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-06 17:10:06 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-06 17:10:06 +0000 |
commit | 2e6201b13197d03eafecd18d967ba7d55f664e19 (patch) | |
tree | a92fa18dda34acc849534a4552fbc889ea261cf1 /app | |
parent | b7c480d7c010ec9dd8e0aa470f8a8010f1f4e6ba (diff) | |
parent | e944fd7064b5a04a334b6c500c9ee7db29a46538 (diff) | |
download | gitlab-ce-2e6201b13197d03eafecd18d967ba7d55f664e19.tar.gz |
Merge branch 'fix/gb/hide-environment-external-url-btn-when-not-provided' into 'master'
Hide environment external URL button if not defined
Closes #30832
See merge request !11029
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/environments/terminal.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/environments/terminal.html.haml b/app/views/projects/environments/terminal.html.haml index c8363087d6a..4c4aa0baff3 100644 --- a/app/views/projects/environments/terminal.html.haml +++ b/app/views/projects/environments/terminal.html.haml @@ -16,8 +16,9 @@ .col-sm-6 .nav-controls - = link_to @environment.external_url, class: 'btn btn-default', target: '_blank', rel: 'noopener noreferrer nofollow' do - = icon('external-link') + - if @environment.external_url.present? + = link_to @environment.external_url, class: 'btn btn-default', target: '_blank', rel: 'noopener noreferrer nofollow' do + = icon('external-link') = render 'projects/deployments/actions', deployment: @environment.last_deployment .terminal-container{ class: container_class } |