summaryrefslogtreecommitdiff
path: root/app/views/shared/runners/show.html.haml
blob: 1af04b808bf1f6bad16ba845db6f2e07ce0d64b3 (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
68
69
70
71
- page_title "#{@runner.description} ##{@runner.id}", _("Runners")

%h3.page-title
  = s_('Runners|Runner #%{id}' % { id: @runner.id })
  .float-right
    - if @runner.instance_type?
      %span.runner-state.runner-state-shared
        = s_('Runners|Shared')
    - elsif @runner.group_type?
      %span.runner-state.runner-state-shared
        = s_('Runners|Group')
    - else
      %span.runner-state.runner-state-specific
        = s_('Runners|Specific')

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