Sha256: b5de888671e18d31471b1e3ac3b07125b7c02788d777cbd0672bde2b46e09660

Contents?: true

Size: 1.57 KB

Versions: 8

Compression:

Stored size: 1.57 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)} | #{Cmor::Blog::Configuration.creator_label_for_post_proc.call(post)}"
    - if Cmor::Core.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::Core.features?(:cmor_tags)
      |
      %span.post-tags
        = tags_helper(self).render_tags_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

8 entries across 8 versions & 1 rubygems

Version Path
cmor_blog-0.0.54.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.53.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.52.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.51.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.50.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.49.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.48.pre app/views/cmor/blog/posts/_post.html.haml
cmor_blog-0.0.45.pre app/views/cmor/blog/posts/_post.html.haml