Kind names properly translated in the tooltip. Refs #48

This commit is contained in:
echarp 2016-02-26 23:25:22 +01:00
parent 1b15bc73b1
commit 938ba42ac6

View File

@ -4,7 +4,7 @@
%ul.counters %ul.counters
- Kind.all.each do |kind| - Kind.all.each do |kind|
- p[:kind_id_eq] = kind.id - p[:kind_id_eq] = kind.id
%li{ title: 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}" }
= Orga.where(kind: kind).count = Orga.where(kind: kind).count