Moved "no packages found" message panel to partial view
This commit is contained in:
parent
71538d9e8c
commit
56df10224b
3 changed files with 9 additions and 14 deletions
7
app/views/packages/_noresults.slim
Normal file
7
app/views/packages/_noresults.slim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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?
|
||||
|
|
@ -18,13 +18,7 @@
|
|||
= 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?
|
||||
= render 'packages/noresults'
|
||||
|
||||
// Paginator
|
||||
= render 'packages/paginator'
|
||||
|
|
|
|||
|
|
@ -35,13 +35,7 @@
|
|||
= render 'packages/paginator'
|
||||
|
||||
- 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?
|
||||
= render 'packages/noresults'
|
||||
|
||||
// Icon sidebar for options and views
|
||||
.small-3.medium-2.columns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue