diff --git a/app/views/search/resultDetails.js b/app/views/search/resultDetails.js index d067a88..03384c8 100644 --- a/app/views/search/resultDetails.js +++ b/app/views/search/resultDetails.js @@ -8,12 +8,12 @@ export const resultDetails = (searchController, result) => { const modalId = `result_${result.uri}`; const buttonHTML = html``; @@ -24,7 +24,7 @@ export const resultDetails = (searchController, result) => {

${i18n.__('interaction.average_rating')}

- ${starRating(result.rating)} + ${starRating(result.averageRating)}
@@ -33,42 +33,34 @@ export const resultDetails = (searchController, result) => {
- ${result.reviewCount} + ${result.numberOfReviews} ${i18n.__('search.see_interaction_details')}
-
-
- {{USERNAME}} ${starRating(Math.ceil(result.rating))} -
-
-
-

- The only thing worse than yellow snow is green snow. Let's put a touch more of the magic here. - With practice comes confidence. You have to allow the paint to break to make it beautiful. -

-

- Let all these little things happen. Don't fight them. Learn to use them. Imagination is the key - to painting. You can't make a mistake. Anything that happens you can learn to use - and make - something beautiful out of it. This is a fantastic little painting. In painting, you have unlimited - power. You have the ability to move mountains. We don't have anything but happy trees here. -

-

- If what you're doing doesn't make you happy - you're doing the wrong thing. A fan brush can be - your best friend. Mountains are so simple, they're hard. -

-
- - - - - ${result.reviewCount} - -
-
+ ${result.reviews.map(review => { + return html`
+
+ ${review.reviewer.name} ${review.reviewer.handle}
+ ${review.date} ${starRating(Math.ceil(review.rating))} +
+
+
+

+ ${review.review} +

+
+ + + + + ${review.hearts} + +
+
`; + })}