Hierarchy of elements fixed.
Error message with "no packages found" is not shown in grid view any more.
This commit is contained in:
parent
1e4a830cfa
commit
d0f04e4834
1 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue