Showing uploader-hashes only for logged in admins
This commit is contained in:
parent
da28c6440d
commit
6416aa191f
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@
|
|||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
// TODO: Show information only if admin
|
||||
p Uploader IP=#{screenshot.uploaderip} / Token=#{screenshot.uploaderhash}
|
||||
- if user_signed_in?
|
||||
p Uploader IP=#{screenshot.uploaderip} / Token=#{screenshot.uploaderhash}
|
||||
// TODO: Enable button only if admin or uploader
|
||||
a.button.tiny.alert[
|
||||
href=delete_screenshot_path(@package.name, screenshot.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue