17 lines
794 B
Text
17 lines
794 B
Text
// Button that reveals a dropdown/modal for users (for their own screenshots)
|
|
.text-right
|
|
button.small.dropdown.warning.button type="button" data-toggle="admin-info-#{screenshot.id}"
|
|
'Manage your screenshot
|
|
.dropdown-pane data-dropdown=true id="admin-info-#{screenshot.id}"
|
|
a.button.small.alert[
|
|
href=delete_screenshot_path(@package.name, screenshot.id)
|
|
onclick="return confirm('Really delete the screenshot?');"
|
|
] Delete screenshot
|
|
p Write a description for this screenshot:
|
|
= form_tag(update_screenshot_description_path(screenshot.package.name, screenshot.id))
|
|
.input-group
|
|
= text_field_tag 'description', nil, class: 'input-group-field', maxlength: 40
|
|
.input-group-button
|
|
=submit_tag 'OK', class: 'button success'
|
|
p
|
|
i =screenshot.status
|