Added counter_cache for user jobs, replaced count with size to use cache.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<h3 class="p-3 text-2xl font-bold">
|
||||
<%= icon(status_icon(status), class: "text-status-#{status} icon icon-nohover") %>
|
||||
<%= status %>
|
||||
<span class="block text-3xl text-right"><%= jobs.count %></span>
|
||||
<span class="block text-3xl text-right"><%= jobs.size %></span>
|
||||
</h3>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user