app/main.py: flash a message after deleting a word (use bootstrap alerts -- it seems that dismissable alert does not work, so forget about it.).
parent
aace6c033e
commit
c6b620b272
|
@ -196,11 +196,8 @@ def get_flashed_messages_if_any():
|
|||
messages = get_flashed_messages()
|
||||
s = ''
|
||||
for message in messages:
|
||||
s += '<div class="alert alert-warning alert-dismissible fade show" role="alert">'
|
||||
s += '<div class="alert alert-warning" role="alert">'
|
||||
s += f'Congratulations! {message}'
|
||||
s += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'
|
||||
s += ' <span aria-hidden="true">×</span>'
|
||||
s += '</button>'
|
||||
s += '</div>'
|
||||
return s
|
||||
|
||||
|
|
Loading…
Reference in New Issue