Mostly fixed the packages list, grid and detail views
This commit is contained in:
parent
43a8ea9dd3
commit
1c59a5ac74
7 changed files with 206 additions and 1 deletions
32
app/views/packages/_list_details.slim
Normal file
32
app/views/packages/_list_details.slim
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// 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
|
||||
|
||||
.row
|
||||
.large-12.columns
|
||||
a.button.tiny href=package_path(name: pkg.name) Details
|
||||
'
|
||||
a.button.tiny href=upload_package_path(name: pkg.name) Upload screenshot
|
||||
Loading…
Add table
Add a link
Reference in a new issue