gitlab-org--gitlab-foss/app/views/projects/environments/terminal.html.haml
Filipa Lacerda 5dc3504be3 Include correct CSS file for xterm in environments page
When the xterm dependency was moved to a npm dependency
the CSS file path was not updated correctly in the environments page.

In order for xterm to render properly, it needs the correct CSS path.
2018-09-17 12:16:05 +01:00

23 lines
830 B
Text

- @no_container = true
- page_title "Terminal for environment", @environment.name
- content_for :page_specific_javascripts do
= stylesheet_link_tag "xterm.css"
%div{ class: container_class }
.top-area
.row
.col-sm-6
%h3.page-title
Terminal for environment
= @environment.name
.col-sm-6
.nav-controls
- if @environment.external_url.present?
= link_to @environment.external_url, class: 'btn btn-default', target: '_blank', rel: 'noopener noreferrer nofollow' do
= sprite_icon('external-link')
= render 'projects/deployments/actions', deployment: @environment.last_deployment
.terminal-container{ class: container_class }
#terminal{ data: { project_path: "#{terminal_project_environment_path(@project, @environment)}.ws" } }