first commit
parent
b9a6e4407e
commit
61f46f7d58
|
@ -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') %}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue