% nav = render_erb('_nav.html.erb', binding) %> <% head = render_erb('_head.html.erb', binding) %> <% foot = render_erb('_foot.html.erb', binding) %> <% check_path_escaped = u(@entity) << '/' << u(@check) %> <% current_time = Time.now %>
<%= h start.to_s %> -> <%= h finish.to_s %> (<%= h remain %> remaining)
<% end %> <% if @current_scheduled_maintenance %><%= h start.to_s %> -> <%= h finish.to_s %> (<%= h remain %> remaining)
<% end %><%= h @check_details %>
Last state change: | <%= h relative_time_ago(Time.at(@check_last_change.to_i)) %> ago | <%= h Time.at(@check_last_change.to_i).to_s %> | |
Last update: | <%= h relative_time_ago(Time.at(@check_last_update.to_i)) %> ago | <%= h Time.at(@check_last_update.to_i).to_s %> | |
Last <%= h type.to_s %> notification: | <%= @last_notifications[type] ? h(@last_notifications[type][:relative]) : 'never' %> | <%= @last_notifications[type] ? h(@last_notifications[type][:time].to_s) : ' ' %> | <%= @last_notifications[type] ? h(@last_notifications[type][:summary]) : ' ' %> |
Start | End | Duration | Summary | Actions |
---|---|---|---|---|
<%= h Time.at(start_time).to_s %> | <%= h Time.at(end_time).to_s %> | <%= h ChronicDuration.output(duration) %> | <%= h summary %> | <% if end_time > current_time.to_i %> <% label = (start_time > current_time.to_i) ? 'Delete' : 'End Now' %> <% else %> <% end %> |
No maintenance is scheduled
<% end %>Times given will be interpreted in the local timezone of <%= h local_timezone %>
<% if @state_changes && !@state_changes.empty? %>Timestamp | State | Summary |
---|---|---|
<%= h Time.at(state_change[:timestamp]).to_s %> | <%= h state_change[:state] %> | <%= h state_change[:summary] %> |
Name | Media |
---|---|
<%= h contact.name %> |
<% if contact.media && !contact.media.empty? %>
<%= h contact.media.keys.collect(&:capitalize).join(", ") %> <% else %>No media <% end %> |
No contacts
<% end %>