From 4f02a3b956da59367473f3000e2dff7b2c08a726 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Mon, 13 Mar 2023 11:48:30 +0100
Subject: [PATCH] added credit for header image

---
 app/views/extranet/posts/posts/show.html.erb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/app/views/extranet/posts/posts/show.html.erb b/app/views/extranet/posts/posts/show.html.erb
index 8f3410964..1d2bf0ce6 100644
--- a/app/views/extranet/posts/posts/show.html.erb
+++ b/app/views/extranet/posts/posts/show.html.erb
@@ -2,7 +2,14 @@
 
 <% content_for :header_right do %>
   <% if @post.featured_image.attached? %>
-    <%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %>
+    <figure>
+      <%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %>
+      <figcaption tabindex="0">
+        <p>
+          <% @post.featured_image_credit %>
+        </p>
+      </figcaption>
+    </figure>
   <% end %>
 <% end %>
 
-- 
GitLab