Skip to content
Snippets Groups Projects
Commit 4c90adfb authored by Arnaud Levy's avatar Arnaud Levy
Browse files

posts

parent 1959ff5c
No related branches found
No related tags found
No related merge requests found
<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 %>
......
......@@ -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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment