From 6a16363dee05832c1efc32fae2380ac86ebf6674 Mon Sep 17 00:00:00 2001 From: duongban Date: Fri, 28 May 2021 23:52:05 +0700 Subject: [PATCH] Add show cards page html --- templates/show.html | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/show.html diff --git a/templates/show.html b/templates/show.html new file mode 100644 index 0000000..fca4a57 --- /dev/null +++ b/templates/show.html @@ -0,0 +1,47 @@ +{% extends "layout.html" %} +{% block body %} + + +
+ all + {% for tag in tags %} + {{tag.tagName}} + {% endfor %} + + known + unknown +
+ +
+
+ + + {% for card in cards %} + + + + + {% else %} + + + + {% endfor %} +
+ + +

+ {{ card.front }} +

+ {% if card.type == 1 %} + {{ card.back|replace("\n", "
")|safe }} + {% else %} +
{{ card.back|escape }}
+ {% endif %} +
+ No cards to show. +
+ +{% endblock %}