forked from mrlan/EnglishPal
				
			Make the flash message dismissible.
							parent
							
								
									f4df263d6e
								
							
						
					
					
						commit
						e9ac50422b
					
				|  | @ -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 | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -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> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue