lib/decidim/votings/admin_engine.rb in decidim-elections-0.27.5 vs lib/decidim/votings/admin_engine.rb in decidim-elections-0.27.6

- old
+ new

@@ -84,10 +84,10 @@ end initializer "decidim_votings.admin_votings_components_menu" do Decidim.menu :admin_votings_components_menu do |menu| current_participatory_space.components.each do |component| - caption = translated_attribute(component.name) + caption = decidim_escape_translated(component.name) if component.primary_stat.present? caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter") end menu.add_item [component.manifest_name, component.id].join("_"),