Revision e5726427

b/astakos/im/static/im/grnetstyles/css/styles.css
722 722
.section p {
723 723
  line-height: 1.7em;
724 724
}
725
.messages {
726
  display: inline;
727
  float: left;
728
  margin-left: 22px;
729
  width: 798px;
730
  margin-bottom: 2em;
731
  background-color: #ddd;
732
}
733
.messages li {
734
  padding: 1em;
735
}
736
.messages li.success {
737
  background-color: #46a546;
738
  color: #ffffff;
739
}
740
.messages li.error {
741
  background-color: #9d261d;
742
  color: #ffffff;
743
}
744
.messages li.warning {
745
  background-color: #ffc40d;
746
  color: #000000;
747
}
725 748
.service-desc {
726 749
  margin-top: 4em;
727 750
}
b/astakos/im/static/im/grnetstyles/css/styles.less
310 310
}
311 311

  
312 312

  
313
// page messages
314
.messages {
315
    .makeColumn(10);
316

  
317
    margin-bottom: 2em;
318
    background-color: #ddd;
319

  
320
    li {
321
        padding: 1em;    
322

  
323
        &.success { background-color: @green; color: @white }
324
        &.error { background-color: @red; color: @white }
325
        &.warning { background-color: @yellow; color: @black }
326
    }
327

  
328
}
329

  
313 330
// accounts specific styles
314 331
.service-desc {
315 332
    margin-top: 4em;    
b/astakos/im/templates/base.html
87 87
            {% endblock %}
88 88
        </div>
89 89
        <div class="page">
90
            {% if messages %}
91
            <ul class="messages">
92
                {% for message in messages %}
93
                <li{% if message.tags %} 
94
                    class="{{ message.tags }}"{% endif %}>
95
                    {{ message }}</li>
96
                {% endfor %}
97
            </ul>
98
            {% endif %}
90 99
            {% block page.body %}
91 100
                <div class="maincol">
92 101
                    {% block body %}

Also available in: Unified diff