From b8677472912fc924dff370ee3a07e657b7e4424a Mon Sep 17 00:00:00 2001 From: f Date: Mon, 29 Apr 2024 14:07:03 -0300 Subject: [PATCH] fix: obtener el nombre para humanites #15112 --- app/views/sites/_header.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/sites/_header.haml b/app/views/sites/_header.haml index c2e5c8c2..4bd7a073 100644 --- a/app/views/sites/_header.haml +++ b/app/views/sites/_header.haml @@ -15,11 +15,12 @@ %input.sr-only{ type: 'submit' } - @filter_params.each do |param, values| - [values].flatten.each do |value| - - if param == :layout - - value = @site.layouts[value.to_sym].humanized_name = link_to site_posts_path(@site, **@filter_params), class: 'btn btn-secondary btn-sm', title: t('posts.remove_filter_help', filter: value), aria: { labelledby: "help-filter-#{param}" } do - = value + - if param == :layout + = @site.layouts[value.to_sym].humanized_name + - else + = value ×