Sha256: eb1a4b8b75254737fb9447935daf4e3f631b2df79bc7bd7f7d309909ac616f64
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
<% # Clients of this partial must supply the following variables: # comment %> <% can_edit = comment.can_be_edited_by?(@commontator) can_delete = comment.can_be_deleted_by?(@commontator) %> <% if can_edit %> <%= link_to 'Edit', edit_comment_path(comment), :id => "comment_#{comment.id.to_s}_edit_link", :class => "comment_edit_link", :remote => true %> <% end %> <% if can_delete %> <% is_deleted = comment.is_deleted? <% del_string = is_deleted ? "undelete" : "delete" %> <%= link_to del_string.capitalize, polymorphic_path([del_string, comment]), :confirm => (!is_deleted ? \ "Are you sure you want to delete this " + \ "#{@thread.config.comment_name}?" : nil), :method => :put, :id => "comment_#{comment.id.to_s}_#{del_string}_link", :class => "comment_#{del_string}_link", :remote => true %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.4.1 | app/views/commontator/comments/_actions.html.erb~ |
commontator-0.3.10 | app/views/commontator/comments/_actions.html.erb~ |