Moderation view fixed.
This commit is contained in:
parent
34c5af8684
commit
174a2567df
1 changed files with 18 additions and 16 deletions
|
|
@ -15,30 +15,32 @@
|
|||
.small-6.columns
|
||||
p Please moderate:
|
||||
- @pending_screenshots.each do |screenshot|
|
||||
/ = screenshot.status
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
.container.listview.text-center
|
||||
/ = screenshot.status
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
em.imgcaption =screenshot.adminstatus
|
||||
|
||||
/ New screenshot that needs to be approved?
|
||||
- if screenshot.approved==false
|
||||
.button-group
|
||||
/ TODO: Add a reason for the rejection to tell the user
|
||||
a.button.alert.round Reject
|
||||
a.button.success.round Approve
|
||||
/ New screenshot that needs to be approved?
|
||||
- if screenshot.approved==false
|
||||
div
|
||||
/ TODO: Add a reason for the rejection to tell the user
|
||||
a.button.alert.round href=delete_screenshot_path(screenshot) Reject
|
||||
a.button.success.round href=approve_screenshot_path(screenshot) Approve
|
||||
|
||||
/ Existing screenshots that was requested for removal
|
||||
- if screenshot.markedfordelete==true
|
||||
.button-group
|
||||
a.button.alert.round Remove as requested
|
||||
a.button.success.round Keep the screenshot
|
||||
/ Existing screenshots that was requested for removal
|
||||
- if screenshot.markedfordelete==true
|
||||
.button-group
|
||||
a.button.alert.round href=delete_screenshot_path(screenshot) Remove as requested
|
||||
a.button.success.round href=approve_screenshot_path(screenshot) Keep the screenshot
|
||||
|
||||
|
||||
.small-6.columns
|
||||
p Existing screenshots:
|
||||
- @package.screenshots.each do |screenshot|
|
||||
- if screenshot.approved==true and screenshot.markedfordelete==false
|
||||
.row.listview
|
||||
.container.listview
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue