Sha256: 3af29b3ecaaf7cb77cf9bfc0944e6467918ebc0d2964ce97ca630fb7389bb09d
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
<%# Views that use this partial must supply the following variables: comment user %> <% can_edit = comment.can_be_edited_by?(user) can_delete = comment.can_be_deleted_by?(user) %> <% if can_edit %> <%= link_to t('commontator.comment.actions.edit'), commontator.edit_comment_path(comment), id: "commontator-comment-#{comment.id}-edit", class: 'edit', remote: true %> <% end %> <% if can_delete %> <% is_deleted = comment.is_deleted? %> <% del_string = is_deleted ? 'undelete' : 'delete' %> <%= link_to t("commontator.comment.actions.#{del_string}"), commontator.polymorphic_path([del_string, comment]), data: is_deleted ? {} : { confirm: t('commontator.comment.actions.confirm_delete') }, method: :put, id: "commontator-comment-#{comment.id}-#{del_string}", class: del_string, remote: true %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-6.0.0.pre.1 | app/views/commontator/comments/_actions.html.erb |