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 }
|
= render partial: 'packages/grid_thumbnail', locals: { pkg: pkg }
|
||||||
|
|
||||||
- else
|
- else
|
||||||
div.panel.callout.radius
|
= render 'packages/noresults'
|
||||||
' 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
|
// Paginator
|
||||||
= render 'packages/paginator'
|
= render 'packages/paginator'
|
||||||
|
|
|
||||||
|
|
@ -35,13 +35,7 @@
|
||||||
= render 'packages/paginator'
|
= render 'packages/paginator'
|
||||||
|
|
||||||
- else
|
- else
|
||||||
div.panel.callout.radius
|
= render 'packages/noresults'
|
||||||
' 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?
|
|
||||||
|
|
||||||
// Icon sidebar for options and views
|
// Icon sidebar for options and views
|
||||||
.small-3.medium-2.columns
|
.small-3.medium-2.columns
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue