Sha256: 5eeee9ca6159b23367baa65de06eac1db7cb9654f3773f907a013c3f13a1f0a8
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
<% status = job.status(Time.zone) %> <div class="id"><label>ID:</label> <%= status.delete('_id') %></div> <% if description = status.delete('description') %> <div class="status-message"><label>Description:</label> <%= description %></div> <% end %> <% if duration = status.delete('duration') %> <div class="status-message"><label>Duration:</label> <%= duration %></div> <% end %> <% if record_count = status.delete('record_count') %> <div class="status-message"><label>Record Count:</label> <%= record_count %></div> <% end %> <div class="created_at"><label>Created At:</label> <%= status.delete('created_at') %></div> <% if started_at = status.delete('started_at') %> <div class="status-message"><label>Started At:</label> <%= started_at %></div> <% end %> <% if percent_complete = status.delete('percent_complete') %> <div class="status-message"><label>% Complete:</label> <%= percent_complete %></div> <% end %> <% remaining = {} status.each_pair do |key, value| next if ((value != false) && value.blank?) || ['state', '_type', 'sub_state'].include?(key) if value.kind_of?(Hash) || value.kind_of?(Array) remaining[key] = value next end %> <div class="status-message"><label><%= key.to_s.titleize %>:</label> <%= value %></div> <% end %> <div class="clearfix"></div> <% remaining.each_pair do |key, value| %> <div class="status-message"> <label><%= key.to_s.titleize %>:</label> <pre><code><%= pretty_print_array_or_hash(value) %></code></pre> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocketjob_mission_control-3.0.3 | app/views/rocket_job_mission_control/jobs/_status.html.erb |