From 9bd7ffc9ab5451e0b709af81dcf3cbf7caf74e78 Mon Sep 17 00:00:00 2001 From: ridethepig Date: Mon, 12 Dec 2022 01:03:55 +0800 Subject: [PATCH] note ok --- src/templates/user/book.html | 66 +++++++++++++++++++++++++----------- src/user.py | 54 ++++++++++++++++++++++++++++- 2 files changed, 99 insertions(+), 21 deletions(-) diff --git a/src/templates/user/book.html b/src/templates/user/book.html index 1f20b9b..cbb48a0 100644 --- a/src/templates/user/book.html +++ b/src/templates/user/book.html @@ -1,24 +1,16 @@ {% extends 'base.html' %} {% block header %} - +} + {% endblock %} {% block content %} @@ -41,6 +33,28 @@
+
{{book['book_name']}}
{%if booktype|length > 0 %} @@ -85,7 +99,7 @@
- 加一个评论 +
@@ -108,11 +122,23 @@ {% endfor %}
-
+ {% for note in notes %} +
- space +
{{note['note_name']}}
+
+ 日期{{note['note_date']}} +
+ 删除 +
+
+
+
+
+

{{note['note_content']}}

+ {% endfor %}