fix icon. re-enable javascript to define upload paths

This commit is contained in:
Christoph Haas 2025-05-13 01:19:37 +02:00
parent 1cd784cb14
commit 368d4b9c27
2 changed files with 13 additions and 13 deletions

View file

@ -32,7 +32,7 @@
= small_img(screenshot, cls: '')
.magnifying-glass-icon
i.fa.fa-search
= icon('zoom-in')
.text
= screenshot.caption
// Has the unmoderated screenshot been uploaded by the current user?
@ -70,9 +70,9 @@
/ #metadata is the anchor for this sticky container.
= render(partial: 'details_rightbox', locals: {pkg: @package})
/ javascript:
/ // Where to send POST requests for uploads
/ let ajax_upload_url = '#{{upload_receive_json_path}}';
javascript:
// Where to send POST requests for uploads
let ajax_upload_url = '#{{upload_receive_json_path}}';
/ // Where to go to after a successful image upload
/ let after_upload_url = '#{{package_path(@package)}}';
// Where to go to after a successful image upload
let after_upload_url = '#{{package_path(@package)}}';