mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 02:56:22 +00:00
fix: obtener el nombre para humanites #15112
This commit is contained in:
parent
ff83c97070
commit
b867747291
1 changed files with 4 additions and 3 deletions
|
@ -15,11 +15,12 @@
|
||||||
%input.sr-only{ type: 'submit' }
|
%input.sr-only{ type: 'submit' }
|
||||||
- @filter_params.each do |param, values|
|
- @filter_params.each do |param, values|
|
||||||
- [values].flatten.each do |value|
|
- [values].flatten.each do |value|
|
||||||
- if param == :layout
|
|
||||||
- value = @site.layouts[value.to_sym].humanized_name
|
|
||||||
= link_to site_posts_path(@site, **@filter_params),
|
= link_to site_posts_path(@site, **@filter_params),
|
||||||
class: 'btn btn-secondary btn-sm',
|
class: 'btn btn-secondary btn-sm',
|
||||||
title: t('posts.remove_filter_help', filter: value),
|
title: t('posts.remove_filter_help', filter: value),
|
||||||
aria: { labelledby: "help-filter-#{param}" } do
|
aria: { labelledby: "help-filter-#{param}" } do
|
||||||
|
- if param == :layout
|
||||||
|
= @site.layouts[value.to_sym].humanized_name
|
||||||
|
- else
|
||||||
= value
|
= value
|
||||||
×
|
×
|
||||||
|
|
Loading…
Reference in a new issue