Sha256: d4982a797f4aa1a6f42522ce4bfa98b7f82a9057d3611387a9318c829e8f1af9
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
- run_now ||= false - show_group ||= false - is_snooze = check.snooze_for and check.snooze_for > Time.now - tr_id = show_group ? nil : dom_id(check) - tr_html_class = check.enabled? ? 'enabled' : 'disabled' - tr_html_class += ' alert alert-info' if is_snooze %tr{ id: tr_id, class: tr_html_class } - if show_group %td =link_to check.group.name, "##{dom_id(check)}", class: 'fail_check' - else %td =check.command ="(regexp: #{check.regexp})" unless check.regexp.blank? %p.check_interval= "run every: #{check.interval} min" %td{ class: is_snooze ? 'snooze_for' : '' } %span.label{ class: "label-#{status_to_label(check.status)}"}= check.status =check.latest_state - if is_snooze %div.snooze_for Snooze for: #{check.snooze_for} - 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?' } %td .checkbox_holder =check_box_tag dom_id(check), check.id
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_nagios-0.0.19 | app/views/my_nagios/checks/_check_row.haml |