Quick correction on organisations' count
This commit is contained in:
parent
412d116bea
commit
6b695d7350
|
@ -10,12 +10,14 @@
|
||||||
%em.fa{ class: "fa-#{kind.icon}" }
|
%em.fa{ class: "fa-#{kind.icon}" }
|
||||||
= count
|
= count
|
||||||
|
|
||||||
%li{ title: Kind.human_attribute_name('active').pluralize + '?' }
|
- count = @unfiltered_orgas.count :all
|
||||||
- p[:kind_id_eq] = params[:q][:kind_id_eq]
|
- if count.positive?
|
||||||
\/
|
%li{ title: Kind.human_attribute_name('active').pluralize + '?' }
|
||||||
= link_to orgas_url(q: p, active: params[:active].present? && params[:active] != 'true') do
|
- p[:kind_id_eq] = params[:q][:kind_id_eq]
|
||||||
- if params[:active].nil? || params[:active] == 'true'
|
\/
|
||||||
%em.fa.fa-heartbeat
|
= link_to orgas_url(q: p, active: params[:active].present? && params[:active] != 'true') do
|
||||||
- else
|
- if params[:active].nil? || params[:active] == 'true'
|
||||||
%em.fa.fa-heart-broken
|
%em.fa.fa-heartbeat
|
||||||
= @unfiltered_orgas.count
|
- else
|
||||||
|
%em.fa.fa-heart-broken
|
||||||
|
= count
|
||||||
|
|
Loading…
Reference in New Issue