Added moderation, report and approval buttons for admins, uploaders and anonymous people
This commit is contained in:
parent
014a840493
commit
9bb9cf1f5d
5 changed files with 43 additions and 10 deletions
|
|
@ -1,14 +1,18 @@
|
|||
// Button that reveals a dropdown/modal for admins
|
||||
.text-center
|
||||
.text-right
|
||||
button.small.dropdown.warning.button type="button" data-toggle="admin-info-#{screenshot.id}"
|
||||
'Admin
|
||||
.dropdown-pane data-dropdown=true id="admin-info-#{screenshot.id}"
|
||||
a.button.small.success[
|
||||
href=approve_screenshot_path(@package.name, screenshot.id)
|
||||
method='post'
|
||||
] Approve screenshot
|
||||
a.button.small.alert[
|
||||
href=delete_screenshot_path(@package.name, screenshot.id)
|
||||
onclick="return confirm('Really delete the screenshot?');"
|
||||
] Delete screenshot
|
||||
|
||||
p Status: #{screenshot.status}
|
||||
p Uploader IP=#{screenshot.uploaderip}
|
||||
p Uploader Token=#{session[:token]}
|
||||
p Uploaded #{screenshot.age_days} (#{screenshot.created_at})
|
||||
p Status: #{screenshot.status}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue