Change count on administrations page
This commit is contained in:
parent
af084db008
commit
3b2c61f090
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
= admin.procedures.where(published: true).count
|
= admin.procedures.where(published: true).count
|
||||||
%td
|
%td
|
||||||
- total_dossier = 0
|
- total_dossier = 0
|
||||||
- admin.procedures.each do |procedure| total_dossier += procedure.dossiers.count end
|
- admin.procedures.each do |procedure| total_dossier += procedure.dossiers.where.not(state: :draft).count end
|
||||||
= total_dossier
|
= total_dossier
|
||||||
= smart_listing.paginate
|
= smart_listing.paginate
|
||||||
= smart_listing.pagination_per_page_links
|
= smart_listing.pagination_per_page_links
|
||||||
|
|
Loading…
Reference in a new issue