Only show approve button if screenshot is not yet approved
This commit is contained in:
parent
2d5729c9c6
commit
7cd48ed7d6
1 changed files with 5 additions and 4 deletions
|
|
@ -3,10 +3,11 @@
|
|||
button.small.dropdown.warning.button type="button" data-toggle="admin-info-#{screenshot.id}"
|
||||
'Admin
|
||||
.dropdown-pane data-dropdown=true id="admin-info-#{screenshot.id}"
|
||||
a.button.small.success[
|
||||
href=approve_screenshot_path(@package.name, screenshot.id)
|
||||
method='post'
|
||||
] Approve screenshot
|
||||
- unless screenshot.approved
|
||||
a.button.small.success[
|
||||
href=approve_screenshot_path(@package.name, screenshot.id)
|
||||
method='post'
|
||||
] Approve screenshot
|
||||
a.button.small.alert[
|
||||
href=delete_screenshot_path(@package.name, screenshot.id)
|
||||
onclick="return confirm('Really delete the screenshot?');"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue