Sha256: d63329a0028f28a56bdcf00f1ebaf947035fcc91f2ed5048287279f2b23db44d

Contents?: true

Size: 953 Bytes

Versions: 5

Compression:

Stored size: 953 Bytes

Contents

- run_now     ||= false
- show_group  ||= false

- tr_id = show_group ? nil : dom_id(check)

%tr{ id: tr_id, class: (check.enabled? ? 'enabled' : 'disabled') }
  - if show_group
    %td
      =link_to check.group.name, "##{dom_id(check)}", class: 'fail_check'
  - else
    %td=check.command

  %td
    %span.label{ class: "label-#{status_to_label(check.status)}"}= check.status
    =check.latest_state

    - if show_group
      %strong=check.command

  %td=human_time(check.latest_updated_at)

  - if run_now
    %td
      #check_now
        =link_to 'run now', run_now_check_path(check), class: 'check_now', method: :post, remote: true
        =image_tag 'my_nagios/chasing_arrows.gif', class: 'spinner'
      #actions
        %br
        =link_to 'edit', edit_check_path(check)
        =link_to (check.enabled? ? 'disable' : 'enable' ), toggle_check_path(check), class: 'disable_check', method: :post, data: { remote: true, confirm: 'Are you sure?' }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
my_nagios-0.0.8 app/views/my_nagios/checks/_check_row.haml
my_nagios-0.0.7 app/views/my_nagios/checks/_check_row.haml
my_nagios-0.0.6 app/views/my_nagios/checks/_check_row.haml
my_nagios-0.0.5 app/views/my_nagios/checks/_check_row.haml
my_nagios-0.0.4 app/views/my_nagios/checks/_check_row.haml