Admin dropdown replaced by set of buttons under image
This commit is contained in:
parent
c928bdf261
commit
4f2c89d928
1 changed files with 0 additions and 1 deletions
|
|
@ -1,43 +0,0 @@
|
|||
// Button that reveals a dropdown/modal for moderation/reporting
|
||||
.button-group.small.align-center
|
||||
|
||||
a.button.secondary.hollow =screenshot.adminstatus
|
||||
|
||||
a.button.small.bordered.radius.alert[
|
||||
href=delete_screenshot_path(screenshot.id)
|
||||
onclick="return confirm('Really delete the screenshot?');"
|
||||
] #{fa_icon 'trash'} Delete
|
||||
|
||||
/ a.button.small.bordered.radius.secondary[
|
||||
/ href='#'
|
||||
/ ] #{fa_icon 'edit'} Edit caption
|
||||
|
||||
/ a.button.small.bordered.radius.secondary[
|
||||
/ href='#'
|
||||
/ ] #{fa_icon 'star'} Make primary
|
||||
|
||||
- if not screenshot.approved
|
||||
a.button.small.success[
|
||||
href=approve_screenshot_path(screenshot.id)
|
||||
method='post'
|
||||
] Approve
|
||||
|
||||
- elsif screenshot.markedfordelete
|
||||
a.button.small.success[
|
||||
href=approve_screenshot_path(screenshot.id)
|
||||
method='post'
|
||||
] Keep
|
||||
|
||||
|
||||
/ Display additional information to admins
|
||||
p Status: #{screenshot.adminstatus}
|
||||
p Uploader IP=#{screenshot.uploaderip}
|
||||
p Uploader Token=#{session[:token]}
|
||||
p Uploaded #{screenshot.age_days} (#{screenshot.created_at})
|
||||
|
||||
/ TODO: Move reporting screenshots to an extra page with a form and captcha
|
||||
/ - else
|
||||
/ / Allow anonymous users to report inappropriate screenshots
|
||||
/ = 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue