app/views/extface/devices/show.html.erb in extface-0.0.6 vs app/views/extface/devices/show.html.erb in extface-0.0.7
- old
+ new
@@ -38,16 +38,16 @@
<dt><%= t('.created') %></dt>
<dd><%= distance_of_time_in_words_to_now @device.created_at %> ago</dd>
<dt><%= t('.successful_jobs') %></dt>
<dd>
- <%= @device.jobs.count %>
+ <%= @device.jobs.completed.count %>
(<%= t('.last') %>: <%= distance_of_time_in_words_to_now @device.jobs.maximum(:completed_at) %> ago)
</dd>
<dt><%= t('.failures') %></dt>
<dd>
- <%= @device.jobs.count %>
+ <%= @device.jobs.failed.count %>
(<%= t('.last') %>: <%= distance_of_time_in_words_to_now @device.jobs.maximum(:failed_at) %> ago)
</dd>
</dl>