5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 01:46:21 +00:00

mover el buscador #13586

This commit is contained in:
maki 2024-02-20 14:09:46 -03:00
parent ecab598595
commit 9960ebd646
2 changed files with 8 additions and 8 deletions

View file

@ -39,14 +39,6 @@
%section.col
.d-flex.justify-content-between.align-items-center.pl-2-plus.pr-2-plus.mb-2
%form{ action: site_posts_path }
- @filter_params.each do |param, value|
- next if param == 'q'
%input{ type: 'hidden', name: param, value: value }
.form-group.flex-grow-0.m-0
%label.sr-only{for: 'q'}= t('.search')
%input#q.form-control.border.border-magenta{ type: 'search', placeholder: t('.search'), name: 'q', value: @filter_params[:q] }
%input.sr-only{ type: 'submit' }
- if @site.locales.size > 1
%nav#locales

View file

@ -1,3 +1,11 @@
.hyphens{ lang: site.default_locale }
%h1= site.title
%p.lead= site.description
%form{ action: site_posts_path }
- @filter_params.each do |param, value|
- next if param == 'q'
%input{ type: 'hidden', name: param, value: value }
.form-group.flex-grow-0.m-0
%label.sr-only{for: 'q'}= t('posts.index.search')
%input#q.form-control.border.border-magenta{ type: 'search', placeholder: t('posts.index.search'), name: 'q', value: @filter_params[:q] }
%input.sr-only{ type: 'submit' }