2024-05-23 21:20:20 +00:00
|
|
|
:ruby
|
|
|
|
image = nil
|
|
|
|
description = nil
|
|
|
|
|
|
|
|
if post.post.attribute?(:image) && (image = post.post.image.static_file)
|
|
|
|
description = post.post.image.value['description']
|
|
|
|
end
|
|
|
|
|
2024-05-28 20:56:27 +00:00
|
|
|
.col.mb-3.p-1
|
2024-05-23 21:20:20 +00:00
|
|
|
= render('bootstrap/card', image: image, description: description, title: post.title, class: 'h-100') do
|
|
|
|
- if post.post.attribute?(:description)
|
|
|
|
%p.card-text= post.post.description.value
|
|
|
|
|
2024-06-17 14:08:27 +00:00
|
|
|
= link_to t('.edit'), edit_site_post_path(post.site, post.path), class: 'btn btn-secondary'
|