Added administrative information per screenshot
This commit is contained in:
parent
16540c64f9
commit
cfc6d29c66
1 changed files with 16 additions and 7 deletions
|
|
@ -13,12 +13,22 @@
|
||||||
.imgcaption =screenshot.caption
|
.imgcaption =screenshot.caption
|
||||||
// TODO: Show information only if admin
|
// TODO: Show information only if admin
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
p Uploader IP=#{screenshot.uploaderip} / Token=#{screenshot.uploaderhash} / Uploaded #{screenshot.age_days}
|
// TODO: Enable button only if admin or uploader
|
||||||
// TODO: Enable button only if admin or uploader
|
a.button.tiny.alert[
|
||||||
a.button.tiny.alert[
|
href=delete_screenshot_path(@package.name, screenshot.id)
|
||||||
href=delete_screenshot_path(@package.name, screenshot.id)
|
onclick="return confirm('Really delete the screenshot?');"
|
||||||
onclick="return confirm('Really delete the screenshot?');"
|
] Delete screenshot
|
||||||
] Delete screenshot
|
.callout.primary
|
||||||
|
p.subtitle Administrative information
|
||||||
|
p Uploader IP=#{screenshot.uploaderip}
|
||||||
|
/ p Token=#{screenshot.uploaderhash}
|
||||||
|
p Uploaded #{screenshot.age_days} (#{screenshot.uploaddatetime})
|
||||||
|
p Approved: #{screenshot.approved}
|
||||||
|
p To be removed: #{screenshot.markedfordelete}
|
||||||
|
- if screenshot.markedfordelete
|
||||||
|
' (#{screenshot.delete_reason})'
|
||||||
|
p URL: #{screenshot.image.url}
|
||||||
|
|
||||||
- else
|
- else
|
||||||
.row.listview
|
.row.listview
|
||||||
img src='/images/dummy/no-screenshots-available.svg' width='100%' style='padding: 0 10%'
|
img src='/images/dummy/no-screenshots-available.svg' width='100%' style='padding: 0 10%'
|
||||||
|
|
@ -40,7 +50,6 @@
|
||||||
p
|
p
|
||||||
= link_to @package.homepage, @package.homepage, target: '_blank'
|
= link_to @package.homepage, @package.homepage, target: '_blank'
|
||||||
|
|
||||||
|
|
||||||
a.button.round.expand data-open="upload-modal" Upload more screenshots for #{@package.name}
|
a.button.round.expand data-open="upload-modal" Upload more screenshots for #{@package.name}
|
||||||
|
|
||||||
// Modal upload window
|
// Modal upload window
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue