no hacen falta los parametros al crear un artículo nuevo
This commit is contained in:
parent
98df0ceb3a
commit
35518ba48a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
- next if layout.hidden?
|
- next if layout.hidden?
|
||||||
%tr
|
%tr
|
||||||
%th= layout.humanized_name
|
%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'
|
%td.pl-3= link_to t('posts.add'), new_site_post_path(@site, layout: layout.value), class: 'btn btn-secondary btn-sm'
|
||||||
- if @filter_params[:layout] == layout.name.to_s
|
- 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'
|
%td= link_to t('posts.remove_filter'), site_posts_path(@site, **@filter_params.merge(layout: nil)), class: 'btn btn-primary btn-sm'
|
||||||
- else
|
- else
|
||||||
|
|
Loading…
Reference in a new issue