summaryrefslogtreecommitdiff
path: root/sw/templates/ap/collection_page.json
diff options
context:
space:
mode:
Diffstat (limited to 'sw/templates/ap/collection_page.json')
-rw-r--r--sw/templates/ap/collection_page.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/sw/templates/ap/collection_page.json b/sw/templates/ap/collection_page.json
new file mode 100644
index 0000000..e3bfe3b
--- /dev/null
+++ b/sw/templates/ap/collection_page.json
@@ -0,0 +1,23 @@
+{% extends "base.json" %}
+
+{% block content %}
+
+ {% block type %}
+ "type": "CollectionPage",
+ {% endblock %}
+
+ {% block nav %}
+ {% endblock %}
+
+ {% block items %}
+ "items": [
+ {% for item in items %}
+ {% block item_info scoped %}
+ "{{ url_for('items.get_item_info', item_id=item['id']) }}"
+ {% endblock %}
+ {{- "," if not loop.last }}
+ {% endfor %}
+ ],
+ {% endblock %}
+
+{% endblock %}