Package names removed as arguments. screenshot.id is sufficient

This commit is contained in:
Christoph Haas 2016-06-13 17:54:19 +02:00
parent 6b83cf7135
commit 34c5af8684
3 changed files with 8 additions and 8 deletions

View file

@ -3,13 +3,13 @@
button.small.dropdown.warning.button type="button" data-toggle="admin-info-#{screenshot.id}"
'Admin
.dropdown-pane data-dropdown=true id="admin-info-#{screenshot.id}"
- unless screenshot.approved
- if not screenshot.approved or screenshot.markedfordelete
a.button.small.success[
href=approve_screenshot_path(@package.name, screenshot.id)
href=approve_screenshot_path(screenshot.id)
method='post'
] Approve screenshot
] Keep/approve screenshot
a.button.small.alert[
href=delete_screenshot_path(@package.name, screenshot.id)
href=delete_screenshot_path(screenshot.id)
onclick="return confirm('Really delete the screenshot?');"
] Delete screenshot

View file

@ -7,6 +7,6 @@
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))
= form_tag(report_screenshot_path(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'