From 13ce6eb2d1958f763784ce78939b2a37f2f6abe9 Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Sat, 26 Dec 2020 16:45:35 +0800 Subject: [PATCH] fix: page url, and also better UI --- app.py | 2 +- templates/list.html | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index 6750a90..039ef82 100644 --- a/app.py +++ b/app.py @@ -50,7 +50,7 @@ def list(): has_course = course is not None has_teacher = teacher is not None has_year = year is not None - ept = not (has_course or has_teacher or has_year) + ept = not (has_course or has_teacher or has_year) and 'page' not in request.args ps = Paper.query diff --git a/templates/list.html b/templates/list.html index 5c72308..04098d1 100644 --- a/templates/list.html +++ b/templates/list.html @@ -179,12 +179,10 @@
-
+

华清大学
 课程攻略

-
-
@@ -289,7 +287,7 @@
-

点击某一课程/教师/年份进行筛选

+

*点击某一课程/教师/年份进行筛选

@@ -325,10 +323,10 @@ {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} -
  • {{ page }}
  • +
  • {{ page }}
  • {% else %}
  • - {{ page }}(current) + {{ page }}(current)
  • {% endif %} {% else %}