Change count on administrations page

This commit is contained in:
Xavier J 2016-10-25 12:11:11 +02:00
parent e6c28fc9b2
commit e1d70f4e4a

View file

@ -20,7 +20,7 @@
= admin.procedures.where(published: true).count
%td
- 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
= smart_listing.paginate
= smart_listing.pagination_per_page_links