From 10c86197f1f63e222dfc9e937911e35ab500a208 Mon Sep 17 00:00:00 2001 From: Jonathan Tschanter Date: Sat, 22 Jan 2022 21:24:24 +0100 Subject: Adds edit cards and templates to include --- templates/artwork/artwork_template.twig | 54 +++++++++++++++++++++++++++++++++ templates/artwork/artwork_view.twig | 10 ++++++ 2 files changed, 64 insertions(+) create mode 100644 templates/artwork/artwork_template.twig create mode 100644 templates/artwork/artwork_view.twig (limited to 'templates/artwork') diff --git a/templates/artwork/artwork_template.twig b/templates/artwork/artwork_template.twig new file mode 100644 index 0000000..fe55f6a --- /dev/null +++ b/templates/artwork/artwork_template.twig @@ -0,0 +1,54 @@ +{% if artworkSettings.isPreview == true %} +
+ {% if artworkSettings.artworkHeader != "" %} +

{{ artworkSettings.artworkHeader }}

+ {% endif %} + +
+
+ {% if artworkSettings.isVotable == true %} + + + {{ artwork.getVotesTotal() }} + + {% endif %} +
+
+
+ +
+
+ +
+
+
+
+{% else %} +
+

Artwork

+
+ +
+ + + +
+ +
+
+
+ {% if artworkSettings.isVotable == true %} + + + {{ artwork.getVotesTotal() }} + + {% endif %} +
+
+
+ +
+
+
+
+{% endif %} diff --git a/templates/artwork/artwork_view.twig b/templates/artwork/artwork_view.twig new file mode 100644 index 0000000..3eb1c65 --- /dev/null +++ b/templates/artwork/artwork_view.twig @@ -0,0 +1,10 @@ +{% extends 'card/card.twig' %} + +{% block pagecontent %} + {% set artworkSettings = { + "artworkHeader": "", + "isPreview": false, + "isVotable": true + } %} + {{ include('artwork/artwork_template.twig') }} +{% endblock %} \ No newline at end of file -- cgit v1.2.3