mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
new-admin: Normalized spacing in admin template tags
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
82c071539b
commit
7da863576f
@ -2,16 +2,12 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
{% for header in result_headers %}<th{{ header.class_attrib }}>
|
{% for header in result_headers %}<th{{ header.class_attrib }}>
|
||||||
{%if header.sortable%}<a href="{{header.url}}" %>{%endif%}
|
{% if header.sortable %}<a href="{{ header.url }}">{% endif %}
|
||||||
{{ header.text|capfirst }}
|
{{ header.text|capfirst }}
|
||||||
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
|
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<tr class="{%cycle row1,row2%}" >
|
<tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
|
||||||
{%for item in result %}
|
|
||||||
{{item }}
|
|
||||||
{%endfor%}
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for fcw in bound_related_object.form_field_collection_wrappers %}
|
{% for fcw in bound_related_object.form_field_collection_wrappers %}
|
||||||
|
|
||||||
{% if change %}{% if original_row_needed %}
|
{% if change %}{% if original_row_needed %}
|
||||||
{% if fcw.obj.original %}
|
{% if fcw.obj.original %}
|
||||||
<tr class="row-label {% cycle row1,row2 %}"><td colspan="{{ num_headers }}"><strong>{{ fcw.obj.original }}</strong></tr>
|
<tr class="row-label {% cycle row1,row2 %}"><td colspan="{{ num_headers }}"><strong>{{ fcw.obj.original }}</strong></tr>
|
||||||
@ -41,4 +40,3 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<p class="paginator">
|
<p class="paginator">
|
||||||
{% if pagination_required %}
|
{% if pagination_required %}
|
||||||
{% for i in page_range %}
|
{% for i in page_range %}
|
||||||
@ -7,7 +6,4 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
|
{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
|
||||||
{% if show_all_url %} <a href="{{ show_all_url }}" class="showall">Show all</a>{% endif %}
|
{% if show_all_url %} <a href="{{ show_all_url }}" class="showall">Show all</a>{% endif %}
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user