summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-10-10 14:35:38 +0300
committerFatih Acet <acetfatih@gmail.com>2016-10-10 14:43:53 +0300
commit6537f578f912e2a15bf0f433f3b079acc500be75 (patch)
treeefb7211ef75cd6f74232bd6795eb096e6ebbdb25
parent543f92d285d26469d549f7514751dda6ea9be471 (diff)
downloadgitlab-ce-6537f578f912e2a15bf0f433f3b079acc500be75.tar.gz
Add current user check to terminal template.
-rw-r--r--app/views/projects/deployments/terminal.html.haml25
1 files changed, 13 insertions, 12 deletions
diff --git a/app/views/projects/deployments/terminal.html.haml b/app/views/projects/deployments/terminal.html.haml
index ae1a6b2e3f8..26ef7f06797 100644
--- a/app/views/projects/deployments/terminal.html.haml
+++ b/app/views/projects/deployments/terminal.html.haml
@@ -1,17 +1,18 @@
-- @no_container = true
-- page_title "Deployment Terminal"
-= render "projects/pipelines/head"
+- if current_user
+ - @no_container = true
+ - page_title "Deployment Terminal"
+ = render "projects/pipelines/head"
-= content_for :head do
- = stylesheet_link_tag "xterm/xterm"
+ = content_for :head do
+ = stylesheet_link_tag "xterm/xterm"
-- content_for :page_specific_javascripts do
- = page_specific_javascript_tag("terminal/terminal_bundle.js")
+ - content_for :page_specific_javascripts do
+ = page_specific_javascript_tag("terminal/terminal_bundle.js")
-.terminal-container{ class: container_class }
+ .terminal-container{ class: container_class }
- %p.content-block
- Environment:
- %a{href: '#'} add information
+ %p.content-block
+ Environment:
+ %a{href: '#'} add information
- #terminal
+ #terminal