BigW Consortium Gitlab

show.html.haml 1.21 KB
Newer Older
Kamil Trzcinski committed
1 2 3 4 5 6 7 8 9 10 11
- page_title "#{@runner.description} ##{@runner.id}", "Runners"

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

Douwe Maan committed
13 14 15 16 17 18
.table-holder
  %table.table
    %thead
      %tr
        %th Property Name
        %th Value
19
    %tr
20 21 22 23 24
      %td Active
      %td= @runner.active? ? 'Yes' : 'No'
    %tr
      %td Can run untagged jobs
      %td= @runner.run_untagged? ? 'Yes' : 'No'
25
    %tr
26
      %td Locked to this project
27
      %td= @runner.locked? ? 'Yes' : 'No'
28 29
    %tr
      %td Tags
Douwe Maan committed
30
      %td
31
        - @runner.tag_list.sort.each do |tag|
Douwe Maan committed
32 33 34
          %span.label.label-primary
            = tag
    %tr
35 36
      %td Name
      %td= @runner.name
Douwe Maan committed
37
    %tr
38 39
      %td Version
      %td= @runner.version
Douwe Maan committed
40
    %tr
41 42
      %td Revision
      %td= @runner.revision
Douwe Maan committed
43
    %tr
44 45
      %td Platform
      %td= @runner.platform
Douwe Maan committed
46
    %tr
47 48
      %td Architecture
      %td= @runner.architecture
Douwe Maan committed
49
    %tr
50 51
      %td Description
      %td= @runner.description
Douwe Maan committed
52
    %tr
53
      %td Last contact
Douwe Maan committed
54 55 56 57 58
      %td
        - if @runner.contacted_at
          #{time_ago_in_words(@runner.contacted_at)} ago
        - else
          Never