summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-08-14 07:50:55 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-08-14 07:50:55 +0800
commit5277ca87da81216a5030752f6709308930d1f9c0 (patch)
tree63d221c2f52a8359dd5b4152d92e8dbb1c945c99
parenta87205a1f509722dfba8410a890f3824021c977e (diff)
main.py: add page title for user.
-rw-r--r--app/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index d6a59d6..b3a7f2a 100644
--- a/app/main.py
+++ b/app/main.py
@@ -290,7 +290,8 @@ def userpage(username):
elif request.method == 'GET': # when we load a html page
page = '<meta charset="UTF8">\n'
page += '<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes" />\n'
- page += '<meta name="format-detection" content="telephone=no" />\n' # forbid treating numbers as cell numbers in smart phones
+ page += '<meta name="format-detection" content="telephone=no" />\n' # forbid treating numbers as cell numbers in smart phones
+ page += '<title>EnglishPal Study Room for %s</title>' % (username)
page += '<p><b>English Pal for <font color="red">%s</font></b> <a href="/logout">登出</a></p>' % (username)
page += '<p><a href="/%s">下一篇</a></p>' % (username)
page += '<p><b>阅读文章并回答问题</b></p>\n'