Showing package long description properly
This commit is contained in:
parent
239a4758c0
commit
bee641baf1
3 changed files with 6 additions and 29 deletions
|
|
@ -1,26 +0,0 @@
|
|||
// Details of a package in list view
|
||||
|
||||
// Second row containsjust the long description
|
||||
.row.pkgdetails
|
||||
.large-12.columns
|
||||
.description =pkg.description
|
||||
// TODO: packages don't have any long description yet
|
||||
-if pkg.long_description
|
||||
.longdescription =pkg.long_description
|
||||
-else
|
||||
.longdescription Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.
|
||||
|
||||
// Third row contains the star-rating, the comment count
|
||||
// and the action buttons
|
||||
|
||||
//.row
|
||||
// .large-12.columns
|
||||
// // TODO: use actual rating
|
||||
// span.star-rating-readonly data-score=4.5
|
||||
//
|
||||
// span.commentcount
|
||||
// // TODO: count proper comments
|
||||
// // TODO: Tooltips for it
|
||||
// img src="/images/icons/comment.svg" width="18" =rand(30)
|
||||
// '
|
||||
// img src="/images/icons/screenshot.svg" width="18" =rand(5)+1
|
||||
|
|
@ -26,8 +26,10 @@
|
|||
.bigpanel
|
||||
p.subtitle Details
|
||||
// TODO: split long_description by <p> tags
|
||||
// TODO: What to do if long description is missing?
|
||||
p =@package.long_description
|
||||
- if @package.long_description
|
||||
p =@package.long_description
|
||||
- else
|
||||
p Sorry - no more information available.
|
||||
|
||||
|
||||
a.button.round.expand data-reveal-id="upload-modal" Upload more screenshots for #{@package.name}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
a href=upload_package_by_name_path(name: pkg.name)
|
||||
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
|
||||
.small-12.medium-8.columns
|
||||
= render partial: 'packages/list_details', locals: {pkg: pkg }
|
||||
.row.packagedetails
|
||||
= pkg.long_description
|
||||
|
||||
// Second paginator at the bottom so the user does not have to scroll up again
|
||||
= render 'packages/paginator'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue