Sha256: 4536b036e01ad4db888fc764fd2ad91ffec4be61970019be99f9928cc2488ffc

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

.rails_blog_engine_post
  %h1
    = link_to_unless_current(post.title, post_permalink_path(post))
    = render(:partial => 'rails_blog_engine/posts/tools',
             :locals => { :post => post })
  %p.byline
    Posted
    = distance_of_time_in_words_to_now(post.published_at)
    ago by
    = post.author_byline

  %div.body~ markdown(post.body, :trusted? => true)

  - if current_page?(post_permalink_path(post))
    = render(:partial => 'rails_blog_engine/posts/comments_section',
             :locals => { :post => post, :comments => @comments,
                          :comment => @comment })
  - else
    %p.links
      = link_to_comments_section(post)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.2 app/views/rails_blog_engine/posts/_post.html.haml
rails_blog_engine-0.0.1 app/views/rails_blog_engine/posts/_post.html.haml