index.html.haml 1.5 KB
Newer Older
1 2
- page_title 'Geo nodes'
%h3.page-title
3
  Geo Nodes
4 5

%p.light
6
  With #{link_to 'GitLab Geo', help_page_path('gitlab-geo/README'), class: 'vlink'} you can install a special
7
  read-only and replicated instance anywhere.
8 9 10

%hr

Gabriel Mazetto's avatar
Gabriel Mazetto committed
11
= render :partial => 'form', locals: {geo_node: @node} if Gitlab::Geo.license_allows?
12

Alfredo Sumaran's avatar
Alfredo Sumaran committed
13
- if @nodes.any?
14 15 16 17 18 19 20
  .panel.panel-default
    .panel-heading
      Geo nodes (#{@nodes.count})
    %ul.well-list
      - @nodes.each do |node|
        %li
          .list-item-name
21 22
            %span
              = node.primary ? icon('star fw') : icon('globe fw')
23
            %strong= node.url
24
            %p
25
              %span.help-block= node.primary ? 'Primary node' : 'Secondary node'
26 27

          .pull-right
28 29 30 31 32 33 34 35 36
            - if Gitlab::Geo.license_allows?
              - if node.missing_oauth_application?
                = link_to repair_admin_geo_node_path(node), method: :post, title: 'OAuth application is missing', class: 'btn btn-default btn-sm prepend-left-10' do
                  = icon('exclamation-triangle fw')
                  Repair authentication
              - unless node.primary?
                = link_to backfill_repositories_admin_geo_node_path(node), method: :post, class: 'btn btn-primary btn-sm prepend-left-10' do
                  = icon 'map-signs'
                  Backfill all repositories
37
            = link_to admin_geo_node_path(node), data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-remove btn-sm prepend-left-10' do
38 39
              = icon 'trash'
              Remove