Commits

Simon Meers committed 5df8b55

messages/font-awesome update

Comments (0)

Files changed (2)

generic/templates/generic/_messages.html

   <div id="messages">
     <ul class="messages">
       {% for message in messages %}
-        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
+        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>
+          {% if 'success' in message.tags %}
+            <i class="icon-ok-sign"></i>
+          {% elif 'error' in message.tags %}
+            <i class="icon-exclamation-sign"></i>
+          {% elif 'warning' in message.tags %}
+            <i class="icon-warning-sign"></i>
+          {% elif 'info' in message.tags %}
+            <i class="icon-info-sign"></i>
+          {% endif %}
+          {{ message|safe }}
+        </li>
       {% endfor %}
     </ul>
   </div>

generic/templates/generic/base.html

     <title>{% block title %}{% block page_title %}{% endblock %} | {{ SITE_NAME }}{% endblock %}</title>
 
     {% block style %}
-      <link href="{% static 'generic/css/global.css' %}" rel="stylesheet" />
-      <link href="{% static 'generic/css/screen.css' %}" media="screen" rel="stylesheet" />
+      {% block generic_css %}
+        <link href="{% static 'generic/css/global.css' %}" rel="stylesheet" />
+        <link href="{% static 'generic/css/screen.css' %}" media="screen" rel="stylesheet" />
+      {% endblock %}
+      {% block font_awesome %}
+        <link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet" />
+      {% endblock %}
     {% endblock %}
      <!--[if lt IE 9]>
         <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>