summaryrefslogtreecommitdiff
path: root/web/templates/partials
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 22:57:19 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 22:57:19 +0530
commit10eb82c7c00a0a1a75528644fbfbe108a769207f (patch)
treeac5d413830d8e1f15985450230fe20490966fcb6 /web/templates/partials
parent2f4a92b0f1d02096427a2d1c97746bb52cdcc38a (diff)
serving created invoices as both HTML and JSON
Diffstat (limited to 'web/templates/partials')
-rw-r--r--web/templates/partials/item_list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/templates/partials/item_list.html b/web/templates/partials/item_list.html
index f12a34a..6fdd1f9 100644
--- a/web/templates/partials/item_list.html
+++ b/web/templates/partials/item_list.html
@@ -1,6 +1,6 @@
-{{ define "partials/item_list.html.tmpl" }}
+{{ define "partials/item_list.html" }}
<div class="items">
- {{ range .Items }}
+ {{ range . }}
{{ template "partials/item.html" .}}
{{ end }}
</div>