Project

General

Profile

« Previous | Next » 

Revision e1863f84

Added by Hannes Schaller almost 12 years ago

  • ID e1863f846c966cb9d524de10f54d5b24e7df2234

changed dashboard display of interval to use time_ago_in_words

View differences:

app/views/dashboard/index.html.erb
<td><%= @report[:bad_hosts_enabled] %> </td>
</tr>
<tr>
<td><%=searchable_links "Good Host Reports in the last #{Setting[:puppet_interval]+5} minutes", "last_report > \"#{Setting[:puppet_interval]+5} minutes ago\" and status.enabled = true and status.applied = 0 and status.failed = 0 and status.pending = 0" %></td>
<td><%=searchable_links "Good Host Reports in the last #{time_ago_in_words((Setting[:puppet_interval]+5).minutes.ago)}", "last_report > \"#{Setting[:puppet_interval]+5} minutes ago\" and status.enabled = true and status.applied = 0 and status.failed = 0 and status.pending = 0" %></td>
<td> <%= "#{@report[:ok_hosts_enabled]} / #{@report[:total_hosts]}" %> hosts (<%= @report[:percentage] %>%)</td>
</tr>
<tr>

Also available in: Unified diff