diff --git a/app/views/packages/_grid_small_image.slim b/app/views/packages/_grid_small_image.slim deleted file mode 100644 index 6166cd2..0000000 --- a/app/views/packages/_grid_small_image.slim +++ /dev/null @@ -1,7 +0,0 @@ -a.black href=package_path(name: pkg.name) - .image - = small_img(screenshots_visible_to_user(pkg, session).first, cls: '') - .text.pkgname - = pkg.name - .text - = pkg.description diff --git a/app/views/packages/browse.slim b/app/views/packages/browse.slim index 44a3e93..0e7db6b 100644 --- a/app/views/packages/browse.slim +++ b/app/views/packages/browse.slim @@ -16,12 +16,20 @@ .grid-x.grid-margin-x.small-up-1.medium-up-2.large-up-3 data-equalizer=true data-equalize-on="medium" - @packages.all.each do |pkg| .cell.pkgcard data-equalizer-watch=true - = render partial: 'packages/grid_small_image', locals: { pkg: pkg } + a.black href=package_path(name: pkg.name) + .image + = small_img(screenshots_visible_to_user(pkg, session).first, cls: '') + .text.pkgname + = pkg.name + .text + = pkg.description - elsif @view_style==:list - @packages.to_a.each do |pkg| .grid-x.listview .small-12.medium-4.cell.pkgcard - = render partial: 'packages/grid_small_image', locals: { pkg: pkg } + a.black href=package_path(name: pkg.name) + .image + = small_img(screenshots_visible_to_user(pkg, session).first, cls: '') .small-12.medium-8.cell h1 a href=package_path(name: pkg.name)