Add dummy text in list view if a long description is missing.

This commit is contained in:
Christoph Haas 2015-06-26 21:17:30 +02:00
parent 66ea039c10
commit cefa804f54

View file

@ -9,7 +9,7 @@
= render 'packages/searchfield' = render 'packages/searchfield'
// Package list // Package list
.row .row.packagepage
.small-9.medium-10.columns .small-9.medium-10.columns
- if @packages.length>0 - if @packages.length>0
- @packages.to_a.each do |pkg| - @packages.to_a.each do |pkg|
@ -32,7 +32,8 @@
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg" img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
.small-12.medium-8.columns .small-12.medium-8.columns
.row.packagedetails .row.packagedetails
= pkg.long_description .subtitle = pkg.description
= pkg.long_description or 'Sorry - no description available.'
// Second paginator at the bottom so the user does not have to scroll up again // Second paginator at the bottom so the user does not have to scroll up again
= render 'packages/paginator' = render 'packages/paginator'