summaryrefslogtreecommitdiff
path: root/app/views/projects/runners/show.html.haml
blob: d80cbb009e518e1e96f9b8aacee0d99c952917b2 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
- page_title "#{@runner.description} ##{@runner.id}", "Runners"

%h3.page-title
  Runner ##{@runner.id}
  .float-right
    - if @runner.shared?
      %span.runner-state.runner-state-shared
        Shared
    - else
      %span.runner-state.runner-state-specific
        Specific

.table-holder
  %table.table
    %thead
      %tr
        %th Property Name
        %th Value
    %tr
      %td Active
      %td= @runner.active? ? 'Yes' : 'No'
    %tr
      %td Protected
      %td= @runner.ref_protected? ? 'Yes' : 'No'
    %tr
      %td Can run untagged jobs
      %td= @runner.run_untagged? ? 'Yes' : 'No'
    %tr
      %td Locked to this project
      %td= @runner.locked? ? 'Yes' : 'No'
    %tr
      %td Tags
      %td
        - @runner.tag_list.sort.each do |tag|
          %span.label.label-primary
            = tag
    %tr
      %td Name
      %td= @runner.name
    %tr
      %td Version
      %td= @runner.version
    %tr
      %td IP Address
      %td= @runner.ip_address
    %tr
      %td Revision
      %td= @runner.revision
    %tr
      %td Platform
      %td= @runner.platform
    %tr
      %td Architecture
      %td= @runner.architecture
    %tr
      %td Description
      %td= @runner.description
    %tr
      %td Maximum job timeout
      %td= @runner.maximum_timeout_human_readable
    %tr
      %td Last contact
      %td
        - if @runner.contacted_at
          #{time_ago_in_words(@runner.contacted_at)} ago
        - else
          Never