The active filtering button has a title, and is slightly separated from others

Closes #114
This commit is contained in:
echarp 2018-02-17 16:46:53 +01:00
parent 073893424d
commit 26a2ce254a

View File

@ -3,16 +3,17 @@
%ul.counters %ul.counters
-# The reorder and specific count are required for the "near" scope -# 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 - p[:kind_id_eq] = kind.id
%li{ title: Kind.human_attribute_name("name_#{kind.name}") } %li{ title: Kind.human_attribute_name("name_#{kind.name}") }
= link_to orgas_url(q: p) do = link_to orgas_url(q: p) do
%em.fa{ class: "fa-#{kind.icon}" } %em.fa{ class: "fa-#{kind.icon}" }
= count = count
%li %li{ title: Kind.human_attribute_name('active').pluralize }
- p[:kind_id_eq] = params[:q][:kind_id_eq] - p[:kind_id_eq] = params[:q][:kind_id_eq]
- p[:active_eq] = true - p[:active_eq] = true
|
= link_to orgas_url(q: p) do = link_to orgas_url(q: p) do
%em.fa.fa-heartbeat %em.fa.fa-heartbeat
= @unfiltered_orgas.active.count :id = @unfiltered_orgas.active.count