Sha256: 61163f08e00502e72772c5c9f1c2910b7e82be46389e337749ed3f6ec33f0249

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

.hentry
  %h4.entry-title{:id=>"post_#{ post.id}"}
    = link_to post.title, user_post_path(post.user, post), :rel => 'bookmark'

  .vcard.author
    %h5
      %a{:href=>"#{user_post_path(post.user, post)}", :class=>"photo", :rel=>"bookmark"}
        =image_tag((post.first_image_in_body || post.user.avatar_photo_url(:thumb)), :alt=>"", :width=>"50", :height=>"50")

    %ul
      %li.fn=link_to post.user.login, user_path(post.user)
      %li.update
        %a{:href=>"#{user_post_path(post.user, post)}", :rel=>"bookmark"}
          %abbr.published{:title=>"#{post.published_at}"}= post.published_at_display(:short_literal_date)
      %li.view
        = :view_count.l
        = "(#{post.view_count})"
      %li.comments
        = link_to :comments.l+" (#{post.comments.count})", user_post_path(post.user, post)+'#comments'      
      - if current_user and current_user.can_request_friendship_with(post.user)
        %li.addfriend= add_friend_link(post.user)

  .entry-content
    = truncate_words(post.post, 75, '...' ).html_safe
    
    = render :partial => 'polls/excerpt', :locals => {:poll => post.poll} if post.poll
    
    %h6=link_to :read_more.l, user_post_path(post.user, post), :rel=> 'bookmark'
  

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/posts/_post.html.haml
community_engine-2.3.1 app/views/posts/_post.html.haml
community_engine-2.3.0 app/views/posts/_post.html.haml
community_engine-2.1.0 app/views/posts/_post.html.haml
community_engine-2.0.0 app/views/posts/_post.html.haml
community_engine-2.0.0.beta3 app/views/posts/_post.html.haml
community_engine-2.0.0.beta2 app/views/posts/_post.html.haml
community_engine-2.0.0.beta1 app/views/posts/_post.html.haml