Sha256: d48c2b300e8d08535efdc37863d62754c6eb58ed3e7ee87f63a4bc70f6c974d0

Contents?: true

Size: 935 Bytes

Versions: 37

Compression:

Stored size: 935 Bytes

Contents

%div{ id: dom_id(post), class: "row #{dom_class(post)} bottom-margin-5 mb-4" }
  .col-lg-4
    = 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)} | #{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)

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
cmor_blog-0.0.39.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.38.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.37.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.36.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.35.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.34.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.33.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.32.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.31.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.30.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.29.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.28.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.27.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.26.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.25.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.24.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.22.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.21.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.20.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml
cmor_blog-0.0.19.pre app/views/cmor/blog/posts/_post_in_index_with_preview_picture.haml