Sha256: 611c67c312e7a257ef6d17c86f9bcec84e3afe9b1fa6810b4d5c71447561c5f4
Contents?: true
Size: 788 Bytes
Versions: 18
Compression:
Stored size: 788 Bytes
Contents
- if current_user and current_user.flagged?(@flaggable) %p You have already flagged this item. - elsif current_user - form_for current_user.flags.build , :url => save_mark_as_flag_path do |form| = form.hidden_field :flaggable_type, :value => @flaggable.class.name = form.hidden_field :flaggable_id, :value => @flaggable.id .form_element = form.label "Select a reason" %br %select{:name => "flag[reason]"} - @flaggable.reasons.each do |reason| %option{:name => "#{reason.to_s}"}= reason.to_s .form_element = form.label :description %br = form.text_area(:description) %input{:type => "submit", :value => "Flag this content"}/ - else Login or sign up to flag content as inappropriate
Version data entries
18 entries across 18 versions & 1 rubygems