diff --git a/app/views/admin/communication/website/pages/show.html.erb b/app/views/admin/communication/website/pages/show.html.erb index d3808672ec594dcb600eff1e348c218bf57b8748..8353c826d6d084ffff250237e416fd10f2cc0f7b 100644 --- a/app/views/admin/communication/website/pages/show.html.erb +++ b/app/views/admin/communication/website/pages/show.html.erb @@ -68,7 +68,7 @@ </tbody> </table> </div> - <% if @page.featured_image.attached? %> + <% if @page.featured_image.attached? && @page.featured_image.variable? %> <div class="card flex-fill w-100"> <div class="card-header"> <h5 class="card-title mb-0"><%= t('activerecord.attributes.communication/website/page.featured_image') %></h5> diff --git a/app/views/admin/communication/website/posts/show.html.erb b/app/views/admin/communication/website/posts/show.html.erb index 3e44d2c44717b3f2008b6ac925dd947d903a8d86..c8a0354c1005371d2905eadbb8be9703f9c01f4c 100644 --- a/app/views/admin/communication/website/posts/show.html.erb +++ b/app/views/admin/communication/website/posts/show.html.erb @@ -56,7 +56,7 @@ </tbody> </table> </div> - <% if @post.featured_image.attached? %> + <% if @post.featured_image.attached? && @post.featured_image.variable? %> <div class="card flex-fill w-100"> <div class="card-header"> <h5 class="card-title mb-0"><%= t('activerecord.attributes.communication/website/post.featured_image') %></h5>