mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 14:26:14 -04:00
Merge pull request #1621 from jenkr55/SecondCommentButton
Show second comment button when many comments on a post
This commit is contained in:
@@ -199,6 +199,9 @@ li.crop-hierarchy
|
||||
.navbar-bottom
|
||||
margin: 40px 0px 0px 0px !important
|
||||
|
||||
.post-actions
|
||||
margin-bottom: 1rem
|
||||
|
||||
// footer
|
||||
footer
|
||||
#footer1, #footer2, #footer3
|
||||
|
||||
@@ -36,8 +36,12 @@
|
||||
= link_to 'Edit Post', edit_post_path(@post), class: 'btn btn-default btn-xs'
|
||||
- if can? :destroy, @post
|
||||
= link_to 'Delete Post', @post, method: :delete,
|
||||
data: { confirm: 'Are you sure?' },
|
||||
class: 'btn btn-default btn-xs'
|
||||
data: { confirm: 'Are you sure?' },
|
||||
class: 'btn btn-default btn-xs'
|
||||
|
||||
- if @post.comments.count > 10 && can?(:create, Comment)
|
||||
.post-actions
|
||||
= link_to 'Comment', new_comment_path(post_id: @post.id), class: 'btn btn-primary'
|
||||
|
||||
= render partial: "comments", locals: { post: @post }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user