BigW Consortium Gitlab

terminal.html.haml 942 Bytes
Newer Older
1 2 3 4 5 6
- @no_container = true
- page_title "Terminal for environment", @environment.name
= render "projects/pipelines/head"

- content_for :page_specific_javascripts do
  = stylesheet_link_tag "xterm/xterm"
7
  = page_specific_javascript_bundle_tag("terminal")
8

9
%div{ class: container_class }
10 11 12 13 14 15 16 17 18
  .top-area
    .row
      .col-sm-6
        %h3.page-title
          Terminal for environment
          = @environment.name

      .col-sm-6
        .nav-controls
19 20 21
          - if @environment.external_url.present?
            = link_to @environment.external_url, class: 'btn btn-default', target: '_blank', rel: 'noopener noreferrer nofollow' do
              = icon('external-link')
22 23
          = render 'projects/deployments/actions', deployment: @environment.last_deployment

24 25
.terminal-container{ class: container_class }
  #terminal{ data: { project_path: "#{terminal_namespace_project_environment_path(@project.namespace, @project, @environment)}.ws" } }