Sha256: f6c89b6235672a7b4b7811ff35dba87bcf16db8ad69e517e204f78d86c2970f3

Contents?: true

Size: 957 Bytes

Versions: 8

Compression:

Stored size: 957 Bytes

Contents

%div{ id: dom_id(post), class: "row #{dom_class(post)} bottom-margin-5 mb-4" }
  .col-lg-4
    .post-preview-picture
      = image_tag(main_app.url_for(post.preview_picture.asset.variant(Cmor::Blog::Configuration.preview_picture_asset_variant_options)), class: 'img-fluid')
  .col-lg-8
    %h2.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
          = tag_labels_for(post)

    .post-body.truncate-lines-3
      = post.body(format: :html).html_safe

Version data entries

8 entries across 8 versions & 1 rubygems

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