Sha256: aa0a06299dc4d77161364cd7683d309fcfe954759b6b2d1b34d2df97edab955b

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

%div{ id: dom_id(post), class: "row #{dom_class(post)} bottom-margin-5" }
  .col-lg-4
    = image_tag(main_app.url_for(post.preview_picture.asset.variant(Ecm::Blog::Configuration.preview_picture_asset_variant_options)), class: 'img-fluid')
  .col-lg-8
    %h2.post-title
      = link_to(post.title, ecm_blog.url_for(post))
    %small
      %span.post-creation-information.text-muted
        = "#{l(post.created_at)} | #{post.creator.try(:human)}"
      |
      %span.comments-information
        = 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)

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_blog-1.3.1 app/views/ecm/blog/posts/_post_in_index_with_preview_picture.haml
ecm_blog-1.3.0 app/views/ecm/blog/posts/_post_in_index_with_preview_picture.haml