add jrails, work on comments
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
%div{:class => "comment-preview dtext"}
|
||||
= form_tag(comments_path) do
|
||||
= form_tag(comments_path, :remote => true) do
|
||||
= hidden_field "comment", "post_id", :value => post.id
|
||||
= text_area "comment", "body", :size => "60x7"
|
||||
%br
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
%div= format_text(comment.body)
|
||||
%menu
|
||||
%li
|
||||
%span{:class => "link"} Quote
|
||||
%span{:class => "link"} Reply
|
||||
- if CurrentUser.user.is_janitor? || CurrentUser.user.id == comment.creator_id
|
||||
%li= link_to "Delete", comment_path(comment.id), :confirm => "Do you really want to delete this comment?", :method => :delete
|
||||
%li= link_to "Vote up", comment_vote_path(comment.id, :is_positive => true), :method => :post
|
||||
|
||||
Reference in New Issue
Block a user