1
0
Fork 0

first commit

593
田其鹭 2023-04-27 15:43:11 +08:00
parent b9a6e4407e
commit 61f46f7d58
2 changed files with 5 additions and 4 deletions

View File

@ -26,7 +26,10 @@
<a class="btn btn-secondary" href="/logout" role="button">退出</a> <a class="btn btn-secondary" href="/logout" role="button">退出</a>
<a class="btn btn-secondary" href="/reset" role="button">重设密码</a> <a class="btn btn-secondary" href="/reset" role="button">重设密码</a>
</p> </p>
{{ flashed_messages|safe }} {% if flashed_messages != "" %}
<div class="alert alert-warning" role="alert" id="warn_info">{{ flashed_messages|safe }}</div>
{% endif %}
<a class="btn btn-success" href="/{{ username }}/reset" role="button"> 下一篇 Next Article </a> <a class="btn btn-success" href="/{{ username }}/reset" role="button"> 下一篇 Next Article </a>
{% if session.get('articleID') != session.get('old_articleID') %} {% if session.get('articleID') != session.get('old_articleID') %}

View File

@ -181,7 +181,5 @@ def get_flashed_messages_if_any():
messages = get_flashed_messages() messages = get_flashed_messages()
s = '' s = ''
for message in messages: for message in messages:
s += '<div class="alert alert-warning" role="alert">' s += message
s += f'Congratulations! {message}'
s += '</div>'
return s return s