mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -04:00
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections. Fix error in refactoring Reverted some .size into .count
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
.well
|
|
.post
|
|
.row
|
|
.col-md-1
|
|
= render :partial => "members/avatar", :locals => { :member => post.author }
|
|
.col-md-11
|
|
- if defined?(subject)
|
|
%h3= link_to strip_tags(post.subject), post
|
|
|
|
.post-meta
|
|
%p
|
|
Posted by
|
|
= link_to post.author.login_name, member_path(post.author)
|
|
- if post.forum
|
|
in
|
|
= link_to post.forum, post.forum
|
|
at
|
|
= post.created_at
|
|
|
|
.post-body
|
|
:growstuff_markdown
|
|
#{ strip_tags post.body }
|
|
|
|
- unless defined?(hide_comments)
|
|
.post-comments
|
|
%ul.list-inline
|
|
%li.first= link_to pluralize(post.comments.size, "comment"),
|
|
post_path(post, :anchor => 'comments')
|
|
-if can? :create, Comment
|
|
%li= link_to "Reply", new_comment_path(:post_id => post.id)
|
|
%li= link_to "Permalink", post
|
|
-if can? :edit, post
|
|
%li= link_to "Edit", edit_post_path(post)
|
|
|
|
|