From 13b6b7a452a3f6ffd2bda523c7b1e905b180f2d7 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 May 2021 17:54:45 -0300 Subject: [PATCH] =?UTF-8?q?cambiar=20la=20leyenda=20del=20bot=C3=B3n=20en?= =?UTF-8?q?=20el=20filtro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no cambia el resaltado porque la definiciĆ³n de la clase .btn hace conflicto, para arreglar eso hay que verificar todo el panel. --- app/views/posts/index.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 23772237..26a0f3ee 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -17,7 +17,7 @@ %tr %th= layout.humanized_name %td.pl-3= link_to t('posts.add'), new_site_post_path(@site, **@filter_params), class: 'btn btn-secondary btn-sm' - - if @filter_params[:layout] == layout.value + - if @filter_params[:layout] == layout.name.to_s %td= link_to t('posts.remove_filter'), site_posts_path(@site, **@filter_params.merge(layout: nil)), class: 'btn btn-primary btn-sm' - else %td= link_to t('posts.filter'), site_posts_path(@site, **@filter_params.merge(layout: layout.value)), class: 'btn btn-secondary btn-sm'