Hide list of screenshots in upload page

This commit is contained in:
Christoph Haas 2020-11-03 00:19:18 +01:00
parent e9e7b494c3
commit 206a828a38

View file

@ -25,12 +25,12 @@ h1 = "Upload screenshots for #{@package.name}"
= fa_stacked_icon "upload", base: "circle-thin" = fa_stacked_icon "upload", base: "circle-thin"
' Start upload ' Start upload
- if @package.screenshots.any? / - if @package.screenshots.any?
p Just for your information - these screenshots have already been uploaded: / p Just for your information - these screenshots have already been uploaded:
- @package.screenshots.all.each do |ss| / - @package.screenshots.all.each do |ss|
a.black.fancybox href=url_for(ss.image.variant(resize_to_limit: [800,600])) rel='fancybox-thumb' title=ss.caption / a.black.fancybox href =url_for(ss.simage_url(:large)) rel='fancybox-thumb' title=ss.caption
= image_tag(ss.image.variant(resize_to_limit: [160,120]), alt: ss.caption, class: 'thumbnail') / = small_img(ss)
.small-5.cell.bigpanel .small-5.cell.bigpanel