La description meta de la page principale est plus explicite

This commit is contained in:
echarp 2014-07-20 17:19:19 +02:00
parent 0843edac44
commit 21976ed56b
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class EventsController < ApplicationController
@events = @events.month start_date.change day: 1
end
set_meta_tags description: t('layouts.application.subtitle'),
set_meta_tags description: "#{t('layouts.application.subtitle')} - #{start_date ? t('date.month_names')[start_date.month] : ''} #{start_date ? start_date.year.to_s : params[:year]} - #{t '.nb_events', count: @events.size}",
keywords: @events.pluck(:tags)
.join(' ')
.split

View File

@ -21,12 +21,13 @@ fr:
# Base de données
activerecord:
models:
admin_user: Admin
comment: Commentaire
event: Événement
user: Modérateur
lug: Gull
city: Ville
region: Région
lug: Gull
admin_user: Admin
comment: Commentaire
i18n/backend/active_record/translation: Contenu
attributes:
user:
@ -115,6 +116,7 @@ fr:
index:
calendar_in: Ce calendrier en %{rss}, %{webcal} ou %{ical}
all_regions: Toutes les régions
nb_events: "%{count} événements"
show:
lug-list: Groupes d'utilisateurs de la région
add_to_calendar: Ajouter à mon calendrier