#33994: wrong position of {% block extrastyle %} in admin/base.html
-------------------------------------+-------------------------------------
               Reporter:  Maxim      |          Owner:  nobody
  Danilov                            |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  4.0
  contrib.admin                      |       Keywords:  admin, modeladmin,
               Severity:  Normal     |  templates
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 in admin/base.html
 {% block extrastyle %}{% endblock %} goes before {% block responsive
 %}...{% endblock %}

 i use **extrastyle** block to add my_extra.css styles to add extra css
 rules everywhere in admin.
 This is logically correct.

 But it works not correctly, because after in template exists other block
 with responsive.css or responsive_rtl.css.

 I can override block **responsive** to add my extra styles behind all css.
 But the Name of block **extrastyle** says: it should be done here.

 Probably we can change the position of **extrastyle** block, to made it as
 a last block_for_css in <header> of the admin/base.html?

 {{{
 ....
 <head>
 ....
 <-- not here {% block extrastyle %}{% endblock %} not here -- >
 ....
 {% block responsive %}
     ....
 {% endblock %}
 <-- here  {% block extrastyle %}{% endblock %} here -->
 {% block blockbots %}...{% endblock %}
 <-- or here {% block extrastyle %}{% endblock %} or here -- >
 </head>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33994>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018319a2dadc-279b6c1e-e216-4811-b725-0981629bd75d-000000%40eu-central-1.amazonses.com.

Reply via email to