Commits

Kevin Veroneau committed 71e4627

Made the alerts dismissable.

Comments (0)

Files changed (1)

bootstrap_theme/templates/bootstrap_theme/fragments/messages.html

           <div id="messages">
             {% if SYSTEM_MESSAGE %}
-            <div class="alert alert-warning"><strong>System Message:</strong> {{SYSTEM_MESSAGE}}</div>
+            <div class="alert alert-warning alert-dismissable">
+              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
+              <strong>System Message:</strong> {{SYSTEM_MESSAGE}}
+            </div>
             {% endif %}
             {% if messages %}
             {% for message in messages %}
-            <div class="alert alert-{{message.tags}}">
-            {{message}}
+            <div class="alert alert-{{message.tags}} alert-dismissable">
+              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
+              {{message}}
             </div>
             {% endfor %}
             {% endif %}