app/views/ecm/blog/posts/_post.haml in ecm_blog-1.2.1 vs app/views/ecm/blog/posts/_post.haml in ecm_blog-1.3.0
- old
+ new
@@ -9,6 +9,24 @@
= link_to(t('ecm.comments.commentable.comments_information', comments_count: post.comments.count), ecm_blog.post_url(post, anchor: 'comments'))
|
%span.post-tags
= tag_labels_for(post)
- %p.post-body= post.body(format: :html).html_safe
+ %p.post-body= post.body(format: :html).html_safe
+
+ - if post.asset_details.images.any?
+ .row
+ - post.asset_details.images.order(position: :asc).each do |picture_detail|
+ .col-lg-4.d-flex.align-items-stretch
+ = bootstrap_card(image_options: { src: main_app.url_for(picture_detail.asset)}, additional_css_classes: 'text-center border-0' ) do
+ .card-body
+ %h5.card-title
+ = picture_detail.title
+ %p.card-text
+ = picture_detail.description
+
+ - if post.asset_details.non_images.any?
+ = collection_table(collection: post.asset_details.non_images.order(position: :asc)) do |t|
+ = t.column :filename
+ = t.column :actions do |resource|
+ - link_to(main_app.url_for(resource.asset), class: 'btn btn-primary') do
+ - t('.download')
\ No newline at end of file