diff --git a/app.py b/app.py index 2194693..56b928b 100644 --- a/app.py +++ b/app.py @@ -122,7 +122,7 @@ def can_list(): } for name, ques, hint, ans in C.verify ] - return render_template('list.html', pagination=pag, vs=vs, verified=session.get('verified'), showPrivate=(key==C.key), sort_by=sort_by, key=key, base_toot_url='https://%s/web/statuses/' % C.domain) + return render_template('list.html', pagination=pag, vs=vs, verified=session.get('verified'), showPrivate=(key==C.key), sort_by=sort_by, key=key, base_toot_url='https://%s/web/statuses/' % C.domain, step2=C.step2, text1=C.text1, text2=C.text2) @app.route('/ordinary/new', methods=['POST']) @limiter.limit("5 / hour; 1 / 2 second") diff --git a/templates/list.html b/templates/list.html index 0041bc9..faf0bdd 100644 --- a/templates/list.html +++ b/templates/list.html @@ -11,6 +11,10 @@ 华清大学特普通奖 报名页面 + @@ -205,6 +236,20 @@ + {% if step2 %} +
+ +

现已进入“答辩”阶段。入围的选手会在闭社平台上发布更详细的陈述,并与观众在评论区互动。前往 thu.closed.social/tags/特普通奖答辩 围观。

+ +
+ {% endif %} +
{% if not verified %}
@@ -226,12 +271,9 @@

自荐提名

- +
- +
@@ -305,7 +347,7 @@
{% for c in pagination.items %} -
+
No. {{c.id}}
{{c.content}}
{% if showPrivate %} @@ -403,6 +445,10 @@ $(document).ready(function(){ $('.timeago').timeago(); + $('.close').click((e) => { + $(e.currentTarget).parent().remove(); + }); + $('.twin').click((e) => { if($(e.currentTarget).hasClass('front')) return;