Ticket #11373: patch-changelist.diff

File patch-changelist.diff, 1.8 KB (added by Marco Paolini, 15 years ago)

alternative patch

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

     
    5353    vertical-align: middle;
    5454}
    5555
    56 #changelist table thead th:first-child {
     56#changelist.with-actions table thead th:first-child {
    5757    width: 1.5em;
    5858    text-align: center;
    5959}
     
    6262    border-left: 1px solid #ddd;
    6363}
    6464
    65 #changelist table tbody td:first-child {
     65#changelist.with-actions table tbody td:first-child {
    6666    border-left: 0;
    6767    border-right: 1px solid #ddd;
    6868    text-align: center;
  • django/contrib/admin/templates/admin/change_list.html

     
    99    <script type="text/javascript" src="../../jsi18n/"></script>
    1010  {% endif %}
    1111  {{ media }}
    12   {% if not actions_on_top and not actions_on_bottom %}
    13     <style>
    14       #changelist table thead th:first-child {width: inherit}
    15     </style>
    16   {% endif %}
    1712{% endblock %}
    1813
    1914{% block bodyclass %}change-list{% endblock %}
     
    5550        </p>
    5651        <ul class="errorlist">{% for error in cl.formset.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
    5752    {% endif %}
    58     <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
     53    <div class="module{% if cl.has_filters %} filtered{% endif %}{% if action_form %} with-actions{% endif %}" id="changelist">
    5954      {% block search %}{% search_form cl %}{% endblock %}
    6055      {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
    6156
Back to Top