Sha256: 897b8a0ce72286629d457c77b43d4ef777e52b96cf16e1205df48cac5800cd9a
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
Contents
- hidden = "display:none" .row.controls .col-md-9 = link_to t('the_comments.edit'), "#", class: "edit btn btn-success" = link_to t('the_comments.cancel'), "#", class: "btn btn-warning edit", style: "display:none" - to_hide = comment.published? ? hidden : nil - opts = { remote: true, style: to_hide, method: :post } = link_to [comments, :to_published, comment], opts.merge(class: "btn btn-primary to_published") do = t('the_comments.to_published') - to_hide = comment.draft? ? hidden : nil - opts = { remote: true, style: to_hide, method: :post } = link_to [comments, :to_draft, comment], opts.merge(class: "btn btn-warning to_draft") do = t('the_comments.to_draft') - to_hide = comment.deleted? ? hidden : nil - opts = { remote: true, style: to_hide, method: :delete, data: { confirm: t('the_comments.delete_confirm') } } = link_to [comments, :to_deleted, comment], opts.merge(class: "btn btn-danger to_deleted") do = t('the_comments.to_deleted') - opts = { remote: true, method: :post} = link_to [comments, :to_spam, comment], opts.merge(class: "btn btn-danger to_spam") do = t('the_comments.to_spam') .col-md-3.text-right = link_to t('the_comments.additional_info'), "#", class: "additional_info btn btn-info"
Version data entries
3 entries across 3 versions & 1 rubygems