fix icon. re-enable javascript to define upload paths
This commit is contained in:
parent
1cd784cb14
commit
368d4b9c27
2 changed files with 13 additions and 13 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
= small_img(screenshot, cls: '')
|
= small_img(screenshot, cls: '')
|
||||||
|
|
||||||
.magnifying-glass-icon
|
.magnifying-glass-icon
|
||||||
i.fa.fa-search
|
= icon('zoom-in')
|
||||||
.text
|
.text
|
||||||
= screenshot.caption
|
= screenshot.caption
|
||||||
// Has the unmoderated screenshot been uploaded by the current user?
|
// Has the unmoderated screenshot been uploaded by the current user?
|
||||||
|
|
@ -70,9 +70,9 @@
|
||||||
/ #metadata is the anchor for this sticky container.
|
/ #metadata is the anchor for this sticky container.
|
||||||
= render(partial: 'details_rightbox', locals: {pkg: @package})
|
= render(partial: 'details_rightbox', locals: {pkg: @package})
|
||||||
|
|
||||||
/ javascript:
|
javascript:
|
||||||
/ // Where to send POST requests for uploads
|
// Where to send POST requests for uploads
|
||||||
/ let ajax_upload_url = '#{{upload_receive_json_path}}';
|
let ajax_upload_url = '#{{upload_receive_json_path}}';
|
||||||
|
|
||||||
/ // Where to go to after a successful image upload
|
// Where to go to after a successful image upload
|
||||||
/ let after_upload_url = '#{{package_path(@package)}}';
|
let after_upload_url = '#{{package_path(@package)}}';
|
||||||
|
|
|
||||||
|
|
@ -64,11 +64,11 @@ h1 = "Upload screenshots for #{@package.name}"
|
||||||
' from a shell using after setting "export LANG=C".
|
' from a shell using after setting "export LANG=C".
|
||||||
li can be pasted here from your clipboard (Ctrl-V)
|
li can be pasted here from your clipboard (Ctrl-V)
|
||||||
|
|
||||||
/ javascript:
|
javascript:
|
||||||
/ // todo: use data attributes to pass this information to javascript
|
// todo: use data attributes to pass this information to javascript
|
||||||
/ // https://chat.deepseek.com/a/chat/s/41a4350b-7799-42bf-aec9-3c205b22ab24
|
// https://chat.deepseek.com/a/chat/s/41a4350b-7799-42bf-aec9-3c205b22ab24
|
||||||
/ // Where to send POST requests for uploads
|
// Where to send POST requests for uploads
|
||||||
/ let ajax_upload_url = '#{{upload_receive_json_path}}';
|
let ajax_upload_url = '#{{upload_receive_json_path}}';
|
||||||
|
|
||||||
/ // Where to go to after a successful image upload
|
// Where to go to after a successful image upload
|
||||||
/ let after_upload_url = '#{{package_path(@package)}}';
|
let after_upload_url = '#{{package_path(@package)}}';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue