index.html.haml 2.4 KB
Newer Older
P
Phil Hughes 已提交
1
- breadcrumb_title "Runners"
2
- @no_container = true
3

V
Valery Sizov 已提交
4
%div{ class: container_class }
5 6
  .bs-callout
    %p
F
Filipa Lacerda 已提交
7
      A 'Runner' is a process which runs a job.
8
      You can setup as many Runners as you need.
9
      %br
10
      Runners can be placed on separate users, servers, even on your local machine.
11
      %br
D
Douwe Maan 已提交
12

13
    %div
14
      %span Each Runner can be in one of the following states:
15 16 17
      %ul
        %li
          %span.label.label-success shared
F
Filipa Lacerda 已提交
18
          \- Runner runs jobs from all unassigned projects
19 20
        %li
          %span.label.label-info specific
F
Filipa Lacerda 已提交
21
          \- Runner runs jobs from assigned projects
22
        %li
L
Lin Jen-Shin 已提交
23
          %span.label.label-warning locked
24
          \- Runner cannot be assigned to other projects
25 26
        %li
          %span.label.label-danger paused
F
Filipa Lacerda 已提交
27
          \- Runner will not receive any new jobs
D
Douwe Maan 已提交
28

29 30 31 32 33
  .bs-callout.clearfix
    .pull-left
      %p
        You can reset runners registration token by pressing a button below.
      .prepend-top-10
S
Shinya Maeda 已提交
34
        = button_to _("Reset runners registration token"), reset_runners_token_admin_application_settings_path,
35
          method: :put, class: 'btn btn-default',
S
Shinya Maeda 已提交
36
          data: { confirm: _("Are you sure you want to reset registration token?") }
37

38 39
  = render partial: 'ci/runner/how_to_setup_shared_runner',
           locals: { registration_token: Gitlab::CurrentSettings.runners_registration_token }
40

41 42 43 44 45 46
  .append-bottom-20.clearfix
    .pull-left
      = form_tag admin_runners_path, id: 'runners-search', class: 'form-inline', method: :get do
        .form-group
          = search_field_tag :search, params[:search], class: 'form-control', placeholder: 'Runner description or token', spellcheck: false
        = submit_tag 'Search', class: 'btn'
D
Douwe Maan 已提交
47

48
    .pull-right.light
C
Clement Ho 已提交
49
      Runners with last contact more than a minute ago: #{@active_runners_cnt}
D
Douwe Maan 已提交
50

51
  %br
D
Douwe Maan 已提交
52

53
  - if @runners.any?
54 55 56 57 58 59 60 61 62 63 64 65
    .runners-content
      .table-holder
        %table.table
          %thead
            %tr
              %th Type
              %th Runner token
              %th Description
              %th Version
              %th Projects
              %th Jobs
              %th Tags
66
              %th= link_to 'Last contact', admin_runners_path(params.slice(:search).merge(sort: 'contacted_asc'))
67
              %th
D
Douwe Maan 已提交
68

69 70 71
          - @runners.each do |runner|
            = render "admin/runners/runner", runner: runner
      = paginate @runners, theme: "gitlab"
72 73
  - else
    .nothing-here-block No runners found