mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 20:42:10 +01:00
Price Display fix
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<div class="productData">
|
<div class="productData">
|
||||||
<a href="/product/<%=prod.id %>"><h4 style="color: Navy;"><%=prod.name %></h4></a>
|
<a href="/product/<%=prod.id %>"><h4 style="color: Navy;"><%=prod.name %></h4></a>
|
||||||
|
|
||||||
<h4><%=prod.price %>€</h4>
|
<h4><%=prod.price.toFixed(2) %><small><small>€</small></small></h4>
|
||||||
<h4><%
|
<h4><%
|
||||||
if (prod.rating) {
|
if (prod.rating) {
|
||||||
prod.rating = Math.round(prod.rating/2)
|
prod.rating = Math.round(prod.rating/2)
|
||||||
|
|||||||
Reference in New Issue
Block a user