2014-08-31 02:04:45 -04:00
|
|
|
h2 Average Rating: #{averageRating.toFixed(2)}, #{totalRatings} ratings
|
|
|
|
ul.user-feedback-list.list-group
|
|
|
|
for feedback in allFeedback
|
|
|
|
li.list-group-item
|
|
|
|
each i in Array(feedback.rating)
|
|
|
|
.glyphicon.glyphicon-star
|
|
|
|
if feedback.rating < 5
|
|
|
|
each i in Array(5 - feedback.rating)
|
|
|
|
.glyphicon.glyphicon-star-empty
|
|
|
|
span.spl.spr -
|
|
|
|
em= moment(new Date(feedback.created)).fromNow()
|
|
|
|
span.spl.spr -
|
|
|
|
a(href="/user/#{feedback.creator}")
|
2014-08-31 15:21:25 -04:00
|
|
|
strong= feedback.creatorName || 'Anoner'
|
2014-08-31 02:04:45 -04:00
|
|
|
if feedback.review
|
|
|
|
span.spr :
|
|
|
|
span= feedback.review
|