Skip to content

Commit

Permalink
ajoute les traductions pour le dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon authored and shanser committed Dec 8, 2020
1 parent 56ed5e2 commit 2d5caa2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/dashboard/_actualite.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ div class: 'actualite' do
span class: 'date' do
l actualite.created_at, format: :point
end
text_node link_to 'Lire', [:admin, actualite], class: 'action'
text_node link_to t('.action'), [:admin, actualite], class: 'action'
end
5 changes: 2 additions & 3 deletions app/views/admin/dashboard/_evaluations.html.arb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ div class: 'evaluations' do
text_node evaluation.nom
end
span class: 'date' do
text_node ' il y a '
text_node time_ago_in_words(evaluation.created_at)
text_node t('.date', date: time_ago_in_words(evaluation.created_at))
end
span class: 'action' do
link_to 'Voir', admin_campagne_evaluation_path(evaluation.campagne, evaluation)
link_to t('.action'), admin_campagne_evaluation_path(evaluation.campagne, evaluation)
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions config/locales/views/dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ fr:
titre: Statistiques
actualites:
titre: Les actualités sur eva
actualite:
action: Lire
evaluations:
titre: Vos dernières évaluations
action: Voir
date: "il y a %{date}"
formulaire_contact:
contacts:
titre: Vos coordonnées
Expand Down

0 comments on commit 2d5caa2

Please sign in to comment.