1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +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:
Adrian Holovaty 2005-11-24 04:24:29 +00:00
parent 82c071539b
commit 7da863576f
12 changed files with 75 additions and 85 deletions

View File

@ -2,16 +2,12 @@
<thead>
<tr>
{% 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 }}
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
</tr>
</thead>
{% for result in results %}
<tr class="{%cycle row1,row2%}" >
{%for item in result %}
{{item }}
{%endfor%}
</tr>
<tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
{% endfor %}
</table>

View File

@ -7,7 +7,6 @@
{% endif %}
{% endfor %}
{% for fcw in bound_related_object.form_field_collection_wrappers %}
{% if change %}{% if original_row_needed %}
{% if fcw.obj.original %}
<tr class="row-label {% cycle row1,row2 %}"><td colspan="{{ num_headers }}"><strong>{{ fcw.obj.original }}</strong></tr>
@ -41,4 +40,3 @@
{% endfor %}
{% endfor %}
</fieldset>

View File

@ -1,4 +1,3 @@
<p class="paginator">
{% if pagination_required %}
{% for i in page_range %}
@ -7,7 +6,4 @@
{% endif %}
{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
{% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">Show all</a>{% endif %}
</p>