1
0
Fork 0

Make the flash message dismissible.

Alpha-snapshot20230621
Lan Hui 2023-08-11 19:28:53 +08:00
parent f4df263d6e
commit e9ac50422b
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
venv/ venv/
app/__init__.py app/__init__.py
app/__pycache__/ app/__pycache__/
.DS_Store
app/.DS_Store app/.DS_Store
app/sqlite_commands.py app/sqlite_commands.py
app/static/usr/*.jpg app/static/usr/*.jpg

BIN
app/static/.DS_Store vendored

Binary file not shown.

View File

@ -5,6 +5,8 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes"/> content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes"/>
<meta name="format-detection" content="telephone=no"/> <meta name="format-detection" content="telephone=no"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
{{ yml['header'] | safe }} {{ yml['header'] | safe }}
{% if yml['css']['item'] %} {% if yml['css']['item'] %}
@ -56,7 +58,10 @@
</p> </p>
{% for message in get_flashed_messages() %} {% for message in get_flashed_messages() %}
<div class="alert alert-warning" role="alert">{{ message }}</div> <div class="alert alert-warning alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %} {% endfor %}
<button class="btn btn-success" id="load_next_article" onclick="load_next_article();Reader.stopRead()"> 下一篇 Next Article </button> <button class="btn btn-success" id="load_next_article" onclick="load_next_article();Reader.stopRead()"> 下一篇 Next Article </button>