Sha256: 440dd1dc3aa1db6feacfd0e62d11d8032740e2122a271780692a62de08c932d5

Contents?: true

Size: 1.19 KB

Versions: 15

Compression:

Stored size: 1.19 KB

Contents

- @page_title = "#{link_to "Content", admin_content_path} > Flagged Content"

- if @flags.empty?
  %p.empty No Flagged Content
- else
  %table{:cellpadding => 0, :cellspacing => 0, :summary => "Flagged Content"}
    %thead
      %tr
        %th Url
        %th Content
        %th Reason
        %th Description
        %th Flagged by
        %th
          Flagged at
        %th
          Controls

    %tbody
      - @flags.each do |flag|
        %tr
          %td
            - unless flag.url.blank?
              = link_to flag.url , flag.url
          %td
            = flag.flaggable_type.demodulize.humanize
          %td
            = flag.reason
          %td
            = flag.description
          %td
            - unless flag.user.blank?
              = flag.user.full_name
          %td
            = date_format flag.created_at
          %td
            - if flag.moderation_required != false
              = link_to "Approve", admin_flagged_contents_moderation_path(flag, :moderation => "approve")
              = link_to "Disapprove", admin_flagged_contents_moderation_path(flag, :moderation => "disapprove")
            - else
              = flag.approved == true ? "Approved" : "Disapproved"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/content/flag/index.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/content/flag/index.html.haml