diff --git a/app/views/admin/communication/extranets/posts/show/_metadata.html.erb b/app/views/admin/communication/extranets/posts/show/_metadata.html.erb index adb52ae0af9550330a83d6f4f828030ad4266017..9c581f3d28c21178ccf69b928ec9ec5226dd4d7c 100644 --- a/app/views/admin/communication/extranets/posts/show/_metadata.html.erb +++ b/app/views/admin/communication/extranets/posts/show/_metadata.html.erb @@ -2,18 +2,16 @@ <%= osuny_label t('metadata') %><br> <% if @post.published %> - <%= t 'communication.extranet.post.metadata.published_on' %> - <%= l @post.published_at.to_date, format: :long %> + <%= t('communication.extranet.post.metadata.published_on', date: l(@post.published_at.to_date, format: :long)) %> <% if @post.pinned %> - <%= t 'communication.extranet.post.metadata.and_pinned' %> + <%= t('communication.extranet.post.metadata.and_pinned') %> <% end %> <% else %> - <%= t 'communication.extranet.post.metadata.draft' %> + <%= t('communication.extranet.post.metadata.draft') %> <% end %> <% if @post.author %> <br> - <%= t 'communication.extranet.post.metadata.by' %> - <%= @post.author %> + <%= t('communication.extranet.post.metadata.by', author: @post.author) %> <% end %> </div> \ No newline at end of file diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index f019ace3e6990c77b183283bf1219bcfa42f1414..d13fae666830e6d6bc6ed99e20abcc7c80f2dfa9 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -674,9 +674,9 @@ en: post: metadata: and_pinned: and pinned - by: by + by: by %{author} draft: Draft - published_on: Published on + published_on: Published on %{date} manage_authors: Manage authors number_of_posts: Nunber of posts summary: diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 5b1158a64ee90ef0114cd6d9770203114791b44b..039982152c217962378785dcf93d7399027cc902 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -674,9 +674,9 @@ fr: post: metadata: and_pinned: et mis en avant - by: par + by: par %{author} draft: Brouillon - published_on: Publié le + published_on: Publié le %{date} manage_authors: Gérer les auteur·rice·s number_of_posts: Nombre d'actualités summary: