0
0
Fork 0

app/main.py: flash a message after deleting a word (use bootstrap alerts -- make the alert dismissable 2).

Lanhui-flash-messages
Hui Lan 2021-08-02 19:24:00 +08:00
parent c3dcc62879
commit aace6c033e
1 changed files with 1 additions and 2 deletions

View File

@ -197,8 +197,7 @@ def get_flashed_messages_if_any():
s = '' s = ''
for message in messages: for message in messages:
s += '<div class="alert alert-warning alert-dismissible fade show" role="alert">' s += '<div class="alert alert-warning alert-dismissible fade show" role="alert">'
s += '<h4 class="alert-heading">Congratulations</h4>' s += f'Congratulations! {message}'
s += f'{message}'
s += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">' s += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'
s += ' <span aria-hidden="true">&times;</span>' s += ' <span aria-hidden="true">&times;</span>'
s += '</button>' s += '</button>'