# Message rendering
* adds icons to message danger, info and success rendering
This commit is contained in:
		
							parent
							
								
									5a71ad7187
								
							
						
					
					
						commit
						52b1750281
					
				@ -275,4 +275,7 @@ Similar to bootstraps 'shadow-lg'
 | 
			
		||||
}
 | 
			
		||||
.tree-label.badge{
 | 
			
		||||
    font-size: 90%;
 | 
			
		||||
}
 | 
			
		||||
.alert{
 | 
			
		||||
    margin-bottom: 0 !important;
 | 
			
		||||
}
 | 
			
		||||
@ -27,7 +27,18 @@
 | 
			
		||||
    <div class="col">
 | 
			
		||||
        {% for message in messages %}
 | 
			
		||||
        <div class="row alert alert-{{ message.tags }}">
 | 
			
		||||
            {{ message }}
 | 
			
		||||
            <div>
 | 
			
		||||
                <span class="mr-3">
 | 
			
		||||
                {% if "danger" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'exclamation' %}
 | 
			
		||||
                {% elif "info" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'info' %}
 | 
			
		||||
                {% elif "success" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'check' %}
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                </span>
 | 
			
		||||
                {{ message }}
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -23,13 +23,22 @@
 | 
			
		||||
        {% endblock %}
 | 
			
		||||
    </header>
 | 
			
		||||
    <div class="container-fluid mt-3 px-5">
 | 
			
		||||
        <div class="">
 | 
			
		||||
        {% for message in messages %}
 | 
			
		||||
            <div class="row alert alert-{{ message.tags }}">
 | 
			
		||||
        <div class="row alert alert-{{ message.tags }}">
 | 
			
		||||
            <div>
 | 
			
		||||
                <span class="mr-3">
 | 
			
		||||
                {% if "danger" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'exclamation' %}
 | 
			
		||||
                {% elif "info" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'info' %}
 | 
			
		||||
                {% elif "success" in message.tags %}
 | 
			
		||||
                    {% fa5_icon 'check' %}
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                </span>
 | 
			
		||||
                {{ message }}
 | 
			
		||||
            </div>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
 | 
			
		||||
        {% block body %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user