The active filtering button has a title, and is slightly separated from others
Closes #114
This commit is contained in:
parent
073893424d
commit
26a2ce254a
@ -3,16 +3,17 @@
|
||||
|
||||
%ul.counters
|
||||
-# The reorder and specific count are required for the "near" scope
|
||||
- @unfiltered_orgas.reorder('').group(:kind).count(:id).each do |kind, count|
|
||||
- @unfiltered_orgas.reorder('').group(:kind).count.each do |kind, count|
|
||||
- p[:kind_id_eq] = kind.id
|
||||
%li{ title: Kind.human_attribute_name("name_#{kind.name}") }
|
||||
= link_to orgas_url(q: p) do
|
||||
%em.fa{ class: "fa-#{kind.icon}" }
|
||||
= count
|
||||
|
||||
%li
|
||||
%li{ title: Kind.human_attribute_name('active').pluralize }
|
||||
- p[:kind_id_eq] = params[:q][:kind_id_eq]
|
||||
- p[:active_eq] = true
|
||||
|
|
||||
= link_to orgas_url(q: p) do
|
||||
%em.fa.fa-heartbeat
|
||||
= @unfiltered_orgas.active.count :id
|
||||
= @unfiltered_orgas.active.count
|
||||
|
Loading…
Reference in New Issue
Block a user