Sha256: a13cab901d0bdf9520c628ef232bea17082edd905d9857549d6ec5cda46365df
Contents?: true
Size: 1.63 KB
Versions: 8
Compression:
Stored size: 1.63 KB
Contents
- unless post.eql?(@posts.to_a.first) %tr.spacer %td{"colspan"=>"2"} %a{"name"=>"#{post.dom_id}", "id"=>"#{post.dom_id}"} %tr.post{"id"=>"posts-#{post.dom_id}-row"} %td.author.vcard{:width => "15%"} .date %a{"href"=>"##{post.dom_id}", "rel"=>"bookmark"} %abbr.updated{"title"=>"#{post.created_at.xmlschema}"}= time_ago_in_words(post.created_at) -if post.user = avatar_for post.user %span.fn = link_to truncate(h(post.username), :length => 15), user_path(post.user), :class => (post.topic.editable_by?(post.user) ? "admin" : nil) %span.posts= pluralize post.user.sb_posts_count, :post.l -else = image_tag(configatron.photo.missing_thumb, :height => '32', :width => '32', :class => 'photo') %span.fn =truncate(h(post.username), :length => 15) - if logged_in? && post.editable_by?(current_user) %p %span.edit = ajax_spinner_for "edit-post-#{post.id}", "spinner_bounce.gif" = link_to_remote(:edit_post.l, {:url => edit_forum_topic_sb_post_path(@forum, @topic, post), :method => :get, :before => "EditForm.init(#{post.id});", :condition => "!EditForm.isEditing(#{post.id})" }, {:class => "utility"}) - if admin? && post.user && !post.user.admin? %div{"class"=>"make-moderator-#{post.user_id}"} = render :partial => '/moderators/toggle', :locals => {:user => post.user, :forum => @forum} %td.body.entry-content{"id"=>"post-body-#{post.id}", :width => '85%'} = link_to_function image_tag('clearbits/comment.gif', :class => 'icon reply'), "$('reply').toggle()" if logged_in? = raw post.body
Version data entries
8 entries across 8 versions & 1 rubygems