From 1a3affb231d209d47f8d1d5e3186ebd4a8c49ca3 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 21 Oct 2021 17:49:17 +0200
Subject: [PATCH] fix

---
 app/views/admin/communication/website/posts/show.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/admin/communication/website/posts/show.html.erb b/app/views/admin/communication/website/posts/show.html.erb
index 52679295d..1fd65d4be 100644
--- a/app/views/admin/communication/website/posts/show.html.erb
+++ b/app/views/admin/communication/website/posts/show.html.erb
@@ -31,7 +31,7 @@
           </tr>
           <tr>
             <td><%= Communication::Website::Page.human_attribute_name('published_at') %></td>
-            <td><%= l @post.published_at, format: :long %></td>
+            <td><%= l @post.published_at, format: :long if @post.published_at %></td>
           </tr>
           <tr>
             <td><%= Communication::Website::Page.human_attribute_name('published') %></td>
-- 
GitLab