summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/show.html.haml
blob: 7660a8e4ac16434b1c2d5523633477e3f2c76577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- add_to_breadcrumbs _('Kubernetes Clusters'), clusterable.index_path
- breadcrumb_title @cluster.name
- page_title _('Kubernetes Cluster')
- cluster_environments_path = clusterable.environments_cluster_path(@cluster)

- status_path = clusterable.cluster_status_cluster_path(@cluster.id, format: :json) if can?(current_user, :admin_cluster, @cluster)
.edit-cluster-form.js-edit-cluster-form{ data: { status_path: status_path,
  cluster_environments_path: cluster_environments_path,
  toggle_status: @cluster.enabled? ? 'true': 'false',
  has_rbac: has_rbac_enabled?(@cluster) ? 'true': 'false',
  cluster_type: @cluster.cluster_type,
  cluster_status: @cluster.status_name,
  cluster_status_reason: @cluster.status_reason,
  provider_type: @cluster.provider_type,
  help_path: help_page_path('user/infrastructure/clusters/index.md'),
  environments_help_path: help_page_path('ci/environments/index.md', anchor: 'create-a-static-environment'),
  clusters_help_path: help_page_path('user/project/clusters/deploy_to_cluster.md'),
  deploy_boards_help_path: help_page_path('user/project/deploy_boards.md', anchor: 'enabling-deploy-boards'),
  cluster_id: @cluster.id } }

  .js-cluster-application-notice
    .flash-container

  %h4.gl-my-5.gl-display-flex.gl-align-items-center
    = @cluster.name
    = gl_badge_tag cluster_type_label(@cluster.cluster_type), { variant: :info }, { class: 'gl-ml-3' }

  = render 'banner'

  - if cluster_created?(@cluster)
    .js-toggle-container
      = gl_tabs_nav do
        = render 'clusters/clusters/details_tab'
        = render_if_exists 'clusters/clusters/environments_tab'
        = render 'clusters/clusters/health_tab'
        = render 'clusters/clusters/integrations_tab'
        = render 'clusters/clusters/advanced_settings_tab'

      .tab-content.py-3
        .tab-pane.active{ role: 'tabpanel' }
          = render_cluster_info_tab_content(params[:tab], expanded_by_default?)