Revision bf4a13d3
Added by Walden Raines over 10 years ago
app/views/dashboard/index.html.erb | ||
---|---|---|
<% title _('Overview') %>
|
||
<div id='dashboard' xmlns="http://www.w3.org/1999/html">
|
||
<%= title_actions _("Generated at %s") % Time.now.to_s(:short) %>
|
||
<div class="row-fluid">
|
||
<div id='status-table' class='stats-well span12'>
|
||
<div class="span6">
|
||
<div class="row">
|
||
<div id='status-table' class='stats-well col-md-12'>
|
||
<div class="col-md-6">
|
||
<%= render 'status_table' %>
|
||
</div>
|
||
<div class="span6">
|
||
<div class="col-md-6">
|
||
<%= render_overview(@report, :class => 'statistics-pie small') %>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row-fluid">
|
||
<div class="span5 stats-well">
|
||
<div class="row">
|
||
<div class="col-md-5 stats-well">
|
||
<h4 style="text-align: center;"><%= _("Latest Events") %></h4>
|
||
<% events = latest_events %>
|
||
<% if events.empty? %>
|
||
... | ... | |
<td><%= link_to h(trunc(report.host, 14)), host_reports_path(report.host) %></td>
|
||
<td><%= report_event_column(report.applied, "label-info") %></td>
|
||
<td><%= report_event_column(report.restarted, "label-info") %></td>
|
||
<td><%= report_event_column(report.failed, "label-important") %></td>
|
||
<td><%= report_event_column(report.failed, "label-danger") %></td>
|
||
<td><%= report_event_column(report.failed_restarts, "label-warning") %></td>
|
||
<td><%= report_event_column(report.skipped, "label-info") %></td>
|
||
<td><%= report_event_column(report.pending, "label-info") %></td>
|
||
... | ... | |
</table>
|
||
<% end %>
|
||
</div>
|
||
<div class="span7 stats-well">
|
||
<div class="col-md-7 stats-well">
|
||
<h4 style="text-align: center;"><%= n_("Run distribution in the last %s minute", "Run distribution in the last %s minutes", Setting[:puppet_interval]) % Setting[:puppet_interval] %></h4>
|
||
<%= render_run_distribution(@hosts, :class => 'statistics-bar') %>
|
||
</div>
|
Also available in: Unified diff
Fixes #3811 updating to bootstrap 3