Sha256: 066a65f433ea5d2c319b0e94159df7e93f48fc9abfd75d9cbff02477a6b5e682
Contents?: true
Size: 1.56 KB
Versions: 36
Compression:
Stored size: 1.56 KB
Contents
%div{ id: dom_id(post), class: dom_class(post) } %h1.post-title = link_to(post.title, cmor_blog.url_for(post)) %small %span.post-creation-information.text-muted = "#{l(post.created_at)} | #{post.creator.send(Cmor::Blog::Configuration.creator_label_method_name)}" - if Cmor::Blog.features?(:cmor_comments) | %span.comments-information = link_to(t('cmor.comments.commentable.comments_information', comments_count: post.comments.count), cmor_blog.post_url(post, anchor: 'comments')) - if Cmor::Blog.features?(:cmor_tags) | %span.post-tags = tag_labels_for(post) %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 .card.text-center.border-0 %a{ href: main_app.url_for(picture_detail.asset), data: { gallery: dom_id(post) } } %img{ src: main_app.url_for(picture_detail.asset.variant(Cmor::Blog::Configuration.preview_picture_asset_variant_options)) } .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')
Version data entries
36 entries across 36 versions & 1 rubygems