-
+
+
+
+ {{$.platform_name}}
+
+
+
+
{{ if eq (len $.items) 0 }}
-
- + {{ range $.items }} -
Your shopping cart is empty!
Items you add to your shopping cart will appear here.
- Browse Products → + Browse Products → {{ else }}
-
{{ len $.items }} item - {{- if gt (len $.items) 1}}s{{end}} - in your Shopping Cart
+{{ $.cart_size }} item + {{- if gt ($.cart_size) 1}}s{{end}} + in your cart
-
+
- + {{ range $.items }} -
-
-
- {{.Item.Name}}
- SKU: #{{.Item.Id}} -
- - SKU: #{{.Item.Id}} -
- Qty: {{.Quantity}}
- - {{ renderMoney .Price}} - +
- - {{ renderMoney .Price}} - +
+
- {{ end }}
+ {{ end }}
-
-
+
- Shipping Cost: {{ renderMoney .shipping_cost }}
Total Cost: {{ renderMoney .total_cost }}-
+
- {{ template "recommendations" $.recommendations }} - {{ end }} -
+ {{ if $.recommendations}}
+ {{ template "recommendations" $.recommendations }}
+ {{ end }}
-
{{ template "footer" . }}
-{{ end }}
+ {{ end }}
diff --git a/src/frontend/templates/error.html b/src/frontend/templates/error.html
old mode 100644
new mode 100755
index 0c9d163..8d7557f
--- a/src/frontend/templates/error.html
+++ b/src/frontend/templates/error.html
@@ -1,12 +1,16 @@
{{ define "error" }}
{{ template "header" . }}
-
+
-
{{ end }}
- {{ if $.recommendations}}
- Checkout
+Checkout
- {{ template "recommendations" $.recommendations }} - {{ end }} -
+
+ {{$.platform_name}}
+
+
Uh, oh!
Something has failed. Below are some details for debugging.
- +HTTP Status: {{.status_code}} {{.status}}
@@ -17,4 +21,4 @@ {{ template "footer" . }} -{{ end }} + {{ end }} \ No newline at end of file diff --git a/src/frontend/templates/footer.html b/src/frontend/templates/footer.html old mode 100644 new mode 100755 index 0ca31e1..9d12557 --- a/src/frontend/templates/footer.html +++ b/src/frontend/templates/footer.html @@ -1,25 +1,18 @@ {{ define "footer" }} -