Hierarchy of elements fixed.

Error message with "no packages found" is not shown in grid view
any more.
This commit is contained in:
Christoph Haas 2014-12-29 15:30:33 +01:00
parent 1e4a830cfa
commit d0f04e4834

View file

@ -12,23 +12,23 @@
// Grid view // Grid view
.row .row
.small-9.large-10.columns .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| - @packages.all.each do |pkg|
li.thumbnail li.thumbnail
= render partial: 'packages/grid_thumbnail', locals: { pkg: pkg } = render partial: 'packages/grid_thumbnail', locals: { pkg: pkg }
- else - else
div.panel.callout.radius div.panel.callout.radius
' Sorry. I couldn't find any software package like that. ' Sorry. I couldn't find any software package like that.
' Would you like to view ' Would you like to view
' '
a href=url_for(show: params[:show]) all packages a href=url_for(show: params[:show]) all packages
' '
' instead? ' instead?
// Paginator // Paginator
= render '/packages/paginator' = render 'packages/paginator'
// Icon sidebar for options and views // Icon sidebar for options and views
.small-3.large-2.columns .small-3.large-2.columns