From cf4ffde833713483965920e57bcf48ec13e1152b Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Fri, 30 Oct 2020 11:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- templates/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f68f010..b753e3e 100644 --- a/app.py +++ b/app.py @@ -99,7 +99,7 @@ def can_list(): } for name, ques, hint, ans in C.verify ] - return render_template('list.html', pagination=pag, vs=vs, showPrivate=(key==C.key), sort_by=sort_by, key=key) + return render_template('list.html', pagination=pag, vs=vs, showPrivate=(key==C.key), sort_by=sort_by, key=key, base_toot_url='https://%s/web/statuses/' % C.domain) @app.route('/ordinary/new', methods=['POST']) @limiter.limit("5 / hour; 1 / 2 second") diff --git a/templates/list.html b/templates/list.html index 4f5c375..bbb7981 100644 --- a/templates/list.html +++ b/templates/list.html @@ -436,7 +436,7 @@ $(document).ready(function(){ $(self).find('.timeago').timeago(); } else { $(self).empty(); - $(self).append(`
(暂无评论)
`) + $(self).append(`

(暂无评论) 发表第一条评论

`) } }, error: (xhr, status, error) => {