From 1ee71adba313630ff142b173879c943f6e37586f Mon Sep 17 00:00:00 2001 From: Bryan Yehuda Date: Mon, 20 Sep 2021 14:17:40 +0700 Subject: [PATCH] Revert Changes --- .../views/templates/template-creator.js | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/scripts/views/templates/template-creator.js b/src/scripts/views/templates/template-creator.js index 95970e4..590f8c7 100644 --- a/src/scripts/views/templates/template-creator.js +++ b/src/scripts/views/templates/template-creator.js @@ -1,7 +1,29 @@ import CONFIG from '../../globals/config'; const createRestaurantDetailTemplate = (restaurants) => ` - +

${restaurants.name}

+${restaurants.name} +

Information

+
Rating : ${restaurants.rating}
+
Lokasi : ${restaurants.city}
+
Alamat : ${restaurants.address}
+
Kategori : ${restaurants.categories.map((category) => category.name)}
+
+

Description

+

${restaurants.description}

+

Foods Menu

+

${restaurants.menus.foods.map((food) => `${food.name}
`).join('')}

+

Drinks Menu

+

${restaurants.menus.drinks.map((drink) => `${drink.name}
`).join('')}

+

Customer Reviews

+
+ ${restaurants.customerReviews.map((review) => ` +

Name : ${review.name}

+

Date : ${review.date}

+

Review : ${review.review}

+ `).join('')} +
+
`;