horizon/horizon/templates/horizon/_messages.html
Diana Whitten 1db4320b8d Branding: Horizon close buttons should use icon
To increase brandability, Horizon close buttons should use an icon
font.

Closes-bug: #1546383

Change-Id: I5c9a9ffc8bbd670a642f534f16ce5559fc876005
2016-02-18 00:16:45 +00:00

38 lines
1.3 KiB
HTML

{% load i18n %}
<div class="messages">
<toast></toast>
{% for message in messages %}
{% if "info" in message.tags %}
<div class="alert alert-info alert-dismissable fade in">
<a class="close" data-dismiss="alert" href="#">
<span class="fa fa-times"></span>
</a>
<p><strong>{% trans "Info: " %}</strong>{{ message }}</p>
</div>
{% endif %}
{% if "warning" in message.tags %}
<div class="alert alert-warning alert-dismissable fade in">
<a class="close" data-dismiss="alert" href="#">
<span class="fa fa-times"></span>
</a>
<p><strong>{% trans "Warning: " %}</strong>{{ message }}</p>
</div>
{% endif %}
{% if "success" in message.tags %}
<div class="alert alert-success alert-dismissable fade in">
<a class="close" data-dismiss="alert" href="#">
<span class="fa fa-times"></span>
</a>
<p><strong>{% trans "Success: " %}</strong>{{ message }}</p>
</div>
{% endif %}
{% if "error" in message.tags %}
<div class="alert alert-danger alert-dismissable fade in">
<a class="close" data-dismiss="alert" href="#">
<span class="fa fa-times"></span>
</a>
<p><strong>{% trans "Error: " %}</strong>{{ message }}</p>
</div>
{% endif %}
{% endfor %}
</div>