Showing uploader-hashes only for logged in admins

This commit is contained in:
Christoph Haas 2015-07-15 18:00:02 +02:00
parent da28c6440d
commit 6416aa191f

View file

@ -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)