Ticket #12803: message-style.diff

File message-style.diff, 1.4 KB (added by Beat Bolli, 15 years ago)

CSS and template patch

  • django/contrib/admin/media/css/base.css

    diff --git a/django/contrib/admin/media/css/base.css b/django/contrib/admin/media/css/base.css
    index da502f3..39bd043 100644
    a b ul.messagelist li {  
    445445    background: #ffc url(../img/admin/icon_success.gif) 5px .3em no-repeat;
    446446}
    447447
     448ul.messagelist li.warning, ul.messagelist li.error {
     449    background: #fcc url(../img/admin/icon_error.gif) 5px .3em no-repeat;
     450}
     451
    448452.errornote {
    449453    font-size: 12px !important;
    450454    display: block;
  • django/contrib/admin/templates/admin/base.html

    diff --git a/django/contrib/admin/media/img/.DS_Store b/django/contrib/admin/media/img/.DS_Store
    index 0f94e14..1a04e03 100644
    Binary files a/django/contrib/admin/media/img/.DS_Store and b/django/contrib/admin/media/img/.DS_Store differ
    diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
    index d1216a1..85ab14f 100644
    a b  
    5555    {% endif %}
    5656
    5757        {% if messages %}
    58         <ul class="messagelist">{% for message in messages %}<li>{{ message }}</li>{% endfor %}</ul>
     58        <ul class="messagelist">{% for message in messages %}
     59          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>{% endfor %}
     60        </ul>
    5961        {% endif %}
    6062
    6163    <!-- Content -->
Back to Top