From 3990a9269683a3b167e80779dbc095e87c73bdc0 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Mon, 20 Mar 2023 14:12:34 +0100
Subject: [PATCH] changed condition for credit and fixed cc

---
 app/assets/stylesheets/extranet/pages/_posts.sass | 2 +-
 app/views/extranet/posts/posts/show.html.erb      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/assets/stylesheets/extranet/pages/_posts.sass b/app/assets/stylesheets/extranet/pages/_posts.sass
index b967fba25..3cf0c482c 100644
--- a/app/assets/stylesheets/extranet/pages/_posts.sass
+++ b/app/assets/stylesheets/extranet/pages/_posts.sass
@@ -2,8 +2,8 @@
     figure
         @include media-breakpoint-up(md)
             display: inline-block
-            position: relative
             padding-left: 2.813rem
+            position: relative
             width: 25%
         picture img
             width: 100%
diff --git a/app/views/extranet/posts/posts/show.html.erb b/app/views/extranet/posts/posts/show.html.erb
index a923c8c04..df92a2c85 100644
--- a/app/views/extranet/posts/posts/show.html.erb
+++ b/app/views/extranet/posts/posts/show.html.erb
@@ -2,9 +2,9 @@
 
 <% content_for :header_right do %>
   <% if @post.featured_image.attached? %>
-    <figure <% if !@post.featured_image_credit.blank? %>class="with-credit"<% end %>>
+    <figure <% if @post.featured_image_credit.present? %>class="with-credit"<% end %>>
       <%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %>
-      <% if !@post.featured_image_credit.blank? %>
+      <% if @post.featured_image_credit.present? %>
         <figcaption tabindex="0">
             <%= sanitize @post.featured_image_credit %>
         </figcaption>
-- 
GitLab