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
|
.small-6.columns
|
||||||
p Please moderate:
|
p Please moderate:
|
||||||
- @pending_screenshots.each do |screenshot|
|
- @pending_screenshots.each do |screenshot|
|
||||||
/ = screenshot.status
|
.container.listview.text-center
|
||||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
/ = screenshot.status
|
||||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||||
.imgcaption =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?
|
/ New screenshot that needs to be approved?
|
||||||
- if screenshot.approved==false
|
- if screenshot.approved==false
|
||||||
.button-group
|
div
|
||||||
/ TODO: Add a reason for the rejection to tell the user
|
/ TODO: Add a reason for the rejection to tell the user
|
||||||
a.button.alert.round Reject
|
a.button.alert.round href=delete_screenshot_path(screenshot) Reject
|
||||||
a.button.success.round Approve
|
a.button.success.round href=approve_screenshot_path(screenshot) Approve
|
||||||
|
|
||||||
/ Existing screenshots that was requested for removal
|
/ Existing screenshots that was requested for removal
|
||||||
- if screenshot.markedfordelete==true
|
- if screenshot.markedfordelete==true
|
||||||
.button-group
|
.button-group
|
||||||
a.button.alert.round Remove as requested
|
a.button.alert.round href=delete_screenshot_path(screenshot) Remove as requested
|
||||||
a.button.success.round Keep the screenshot
|
a.button.success.round href=approve_screenshot_path(screenshot) Keep the screenshot
|
||||||
|
|
||||||
|
|
||||||
.small-6.columns
|
.small-6.columns
|
||||||
p Existing screenshots:
|
p Existing screenshots:
|
||||||
- @package.screenshots.each do |screenshot|
|
- @package.screenshots.each do |screenshot|
|
||||||
- if screenshot.approved==true and screenshot.markedfordelete==false
|
- 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
|
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)
|
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||||
.imgcaption =screenshot.caption
|
.imgcaption =screenshot.caption
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue