Browse Source

Le bouton de recherche d'asso a maintenent un libellé

recurrent
echarp 8 years ago
parent
commit
4da7a31a45
  1. 4
      app/assets/stylesheets/lugs.sass
  2. 2
      app/helpers/events_helper.rb
  3. 1
      app/views/lugs/_search.html.haml

4
app/assets/stylesheets/lugs.sass

@ -33,5 +33,7 @@ form#lug_search
font-size: larger
margin-top: 0.2em
background-color: transparent
&:hover
&:hover em.fa
color: #2E97FF
span.label
display: none

2
app/helpers/events_helper.rb

@ -3,7 +3,7 @@ module EventsHelper
def set_events_meta
set_meta_tags \
description: t('layouts.application.subtitle'),
keywords: @events.pluck(:tags).join(' ').split.group_by { |i| i }
keywords: @events.map { |e| e.tags }.join(' ').split.group_by { |i| i }
.reject { |_k, v| v.size < 2 }.map { |k, _v| k },
DC: {
title: t('layouts.application.title'),

1
app/views/lugs/_search.html.haml

@ -6,3 +6,4 @@
placeholder: t('.title', entity: Lug.model_name.human)
= f.button class: :search do
%em.fa.fa-search
%span.label=t '.label'

Loading…
Cancel
Save