From 9960ebd646ffc7c9d05c95bf1fb163d89fb737ac Mon Sep 17 00:00:00 2001 From: maki Date: Tue, 20 Feb 2024 14:09:46 -0300 Subject: [PATCH] mover el buscador #13586 --- app/views/posts/index.haml | 8 -------- app/views/sites/_header.haml | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 69fb2d8f..bb97d8d5 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -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 diff --git a/app/views/sites/_header.haml b/app/views/sites/_header.haml index c8931041..c6be7c88 100644 --- a/app/views/sites/_header.haml +++ b/app/views/sites/_header.haml @@ -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' }