diff --git a/app/views/extranet/posts/posts/_list.html.erb b/app/views/extranet/posts/posts/_list.html.erb index 5f4f5714e88f9ada09a63ed97048996e61ee63ca..f2cdc8a08c980544ee2639026fd0b67f30008a4b 100644 --- a/app/views/extranet/posts/posts/_list.html.erb +++ b/app/views/extranet/posts/posts/_list.html.erb @@ -1,11 +1,15 @@ -<div class="row"> +<div class="row mt-n5"> <% posts.each do |post| %> <div class="col-lg-4"> - <div class="position-relative"> - <% if post.featured_image.attached? && post.featured_image.analyzed? && post.featured_image.representable? %> - <%= kamifusen_tag post.featured_image.variant(resize_to_fill: [800, 500]), class: 'img-fluid' %> + <div class="position-relative mt-5"> + <% if post.featured_image.attached? && post.featured_image.representable? %> + <%= image_tag post.featured_image.variant(resize_to_fill: [800, 500]), class: 'img-fluid' %> <% end %> - <%= link_to post, posts_communication_extranet_post_path(post.slug), class: 'stretched-link' %> + <p class="mt-2"> + <b><%= post %></b><br> + <span class="text-muted"><%= l post.published_at %><span> + </p> + <%= link_to t('extranet.posts.read_post'), posts_communication_extranet_post_path(post.slug), class: ' btn btn-outline-primary stretched-link' %> </div> </div> <% end %> diff --git a/config/locales/extranet/en.yml b/config/locales/extranet/en.yml index 9f388ea654561e1ea7b44078af9299c0bb54248a..60a20170038d89ef0a73529fb54867e549f29ea4 100644 --- a/config/locales/extranet/en.yml +++ b/config/locales/extranet/en.yml @@ -35,4 +35,5 @@ en: title: My personal data updated: Your personal data has been updated! posts: - home: Recent posts \ No newline at end of file + home: Recent posts + read_post: Read post \ No newline at end of file diff --git a/config/locales/extranet/fr.yml b/config/locales/extranet/fr.yml index 5035bd6f9c468a710e0be0076e34ef101236ca09..e00a646cf5b9a5d41ce5ac368266f9ec1b6dbfdc 100644 --- a/config/locales/extranet/fr.yml +++ b/config/locales/extranet/fr.yml @@ -35,4 +35,5 @@ fr: title: Mes données personnelles updated: Mise à jour des donnes personnelles effectuée ! posts: - home: Actualités récentes \ No newline at end of file + home: Actualités récentes + read_post: Lire l'article \ No newline at end of file