From 2d5729c9c6ed4c1e3e837908812445f3e9be9642 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 7 Apr 2016 18:56:08 +0200 Subject: [PATCH] Added partial to allow anonymous users to report screenshots to have them removed --- app/views/packages/_report_dropdown.slim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/views/packages/_report_dropdown.slim diff --git a/app/views/packages/_report_dropdown.slim b/app/views/packages/_report_dropdown.slim new file mode 100644 index 0000000..8a39997 --- /dev/null +++ b/app/views/packages/_report_dropdown.slim @@ -0,0 +1,12 @@ +// Button that reveals a dropdown/modal for users (for their own screenshots) +.text-right + button.small.dropdown.warning.button type="button" data-toggle="admin-info-#{screenshot.id}" + 'Request removal +.dropdown-pane data-dropdown=true id="admin-info-#{screenshot.id}" + p If you think this screenshot does not meet the guidelines + or is misleading or not useful then please report it so that + the moderators can review it. Just let us know why you think + the screenshot should get removed: + = form_tag(report_screenshot_path(screenshot.package.name, screenshot.id)) + = text_area_tag 'delete_reason', nil, class: 'input-group-field', maxlength: 100, rows: 3, cols: 50 + = submit_tag 'Request removal', class: 'button alert'