Sha256: 89cb81057d2e1eeb8390a9a696c65116130e7538a6e65a5c48f2bde72becec23
Contents?: true
Size: 1.62 KB
Versions: 1
Compression:
Stored size: 1.62 KB
Contents
- run_now ||= false - show_group ||= false - is_snooze = check.snooze_for && (check.snooze_for.utc > Time.now.utc) - tr_id = show_group ? nil : dom_id(check) - tr_html_class = check.enabled? ? 'enabled' : 'disabled' - tr_html_class += ' alert alert-info' if is_snooze - td_html_class = is_snooze ? 'snooze_for' : '' %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: td_html_class } %span.label{ class: "label-#{status_to_label(check.status)}"}= check.status =check.latest_state - if check.retry_count > 0 %strong= "(retries count: #{check.retry_count})" - 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.my_nagios_check =check_box_tag dom_id(check, :checkbox), nil, false, data: { check_id: check.id }, class: "group_#{check.group_id}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_nagios-0.0.22 | app/views/my_nagios/checks/_check_row.haml |