commit 5a52a8d9522a32ba86bccf203177ffc6f9c21b20 Author: hmtsai Date: Wed Jun 26 10:01:05 2024 +0800 init:初始化仓库,并基本完成 diff --git a/home.html b/home.html new file mode 100644 index 0000000..cd9790d --- /dev/null +++ b/home.html @@ -0,0 +1,62 @@ + + + + + + Home + + + + + + + + + + + + + + Posts +
+
+ + + + + {% for forum in forums %} + + + + + {% endfor %} + + + + + + + + {% for forum in forums %} + + + + + {% endfor %} + + + + + diff --git a/posts.html b/posts.html new file mode 100644 index 0000000..321d4f6 --- /dev/null +++ b/posts.html @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + Posts -- from {{ posts.from_topic }} + + + + + + Posts +
+
+ + + + + {% for forum in forums %} + + + + + {% endfor %} + + + + + + + + Back + + + {% for posts in posts.posts %} + + +
+ + {{ posts.id }}楼 作者: + + {{ posts.postername }} + + + +
+ {{ posts.text | safe }} +
+ +
+
+ + {% endfor %} + +
+
+ {{ page.now }} / {{ page.count }}页 +
+ 第一页 + {% if page.prev_url != "" %} + 上一页 + {% endif %} + +
+ + {% if page.next_url != "" %} + 下一页 + {% endif %} + 最后一页 +
+
+ + + + diff --git a/topics.html b/topics.html new file mode 100644 index 0000000..04434f2 --- /dev/null +++ b/topics.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + Topics -- from {{ topics.form_forum }} + + + + + + Posts +
+
+ + + + + {% for forum in forums %} + + + + + {% endfor %} + + + + + + Back + + + {% for topic in topics.topics %} + + +
+ +

{{ topic.id }}{{ topic.name }}

+ + Time: {{ topic.time }} + +
+
+ + {% endfor %} + +
+
+ {{ page.now }} / {{ page.count }}页 +
+ 第一页 + {% if page.prev_url != "" %} + 上一页 + {% endif %} + +
+ + {% if page.next_url != "" %} + 下一页 + {% endif %} + 最后一页 +
+
+ + + diff --git a/user.html b/user.html new file mode 100644 index 0000000..1662ccb --- /dev/null +++ b/user.html @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + User -- {{ user.name }} + + + + + + Posts +
+
+ + + + + {% for forum in forums %} + + + + + {% endfor %} + + + + + + Back
    + +

    {{ user.name }}

    +
    + {{ user.description | safe }} + + Register time: {{ user.reg_time }} +
    + + +