From d0f04e4834be0399284c4e0770e951284e7b8d3c Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 29 Dec 2014 15:30:33 +0100 Subject: [PATCH] Hierarchy of elements fixed. Error message with "no packages found" is not shown in grid view any more. --- app/views/packages/index-grid.slim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/packages/index-grid.slim b/app/views/packages/index-grid.slim index 77ff050..e29e93c 100644 --- a/app/views/packages/index-grid.slim +++ b/app/views/packages/index-grid.slim @@ -12,23 +12,23 @@ // Grid view .row .small-9.large-10.columns - ul.small-block-grid-1.medium-block-grid-3.large-block-grid-4 - - if @packages.length>0 + - if @packages.length>0 + ul.small-block-grid-1.medium-block-grid-3.large-block-grid-4 - @packages.all.each do |pkg| li.thumbnail = render partial: 'packages/grid_thumbnail', locals: { pkg: pkg } - - else - div.panel.callout.radius - ' Sorry. I couldn't find any software package like that. - ' Would you like to view - ' - a href=url_for(show: params[:show]) all packages - ' - ' instead? + - else + div.panel.callout.radius + ' Sorry. I couldn't find any software package like that. + ' Would you like to view + ' + a href=url_for(show: params[:show]) all packages + ' + ' instead? // Paginator - = render '/packages/paginator' + = render 'packages/paginator' // Icon sidebar for options and views .small-3.large-2.columns