use flask-bootstrap util to display flashed messages
This commit is contained in:
		
							parent
							
								
									32dc3a9581
								
							
						
					
					
						commit
						d3a3467fee
					
				
					 2 changed files with 4 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,16 +1,11 @@
 | 
			
		|||
{% extends "bootstrap/base.html" %}
 | 
			
		||||
{% import "bootstrap/utils.html" as utils %}
 | 
			
		||||
 | 
			
		||||
{% block title %}Prolefeeder{% endblock %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
<div class="container">
 | 
			
		||||
 | 
			
		||||
{% with messages = get_flashed_messages() %}
 | 
			
		||||
{% if messages %}
 | 
			
		||||
    {% for message in messages %}
 | 
			
		||||
    <div class="alert alert-info" role="alert">{{ message }}</div>
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endwith %}
 | 
			
		||||
{{ utils.flashed_messages() }}
 | 
			
		||||
 | 
			
		||||
{% block app_content %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue