Ticket #208: 208-update-templates.patch

File 208-update-templates.patch, 8.8 KB (added by Chris Beaven, 17 years ago)

separate patch which should be applied - updates admin and databrowse templates to use new format

  • django/contrib/admin/templates/admin/change_list_results.html

     
    1010</thead>
    1111<tbody>
    1212{% for result in results %}
    13 <tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
     13<tr class="{% cycle 'row1' 'row2' %}">{% for item in result %}{{ item }}{% endfor %}</tr>
    1414{% endfor %}
    1515</tbody>
    1616</table>
  • django/contrib/databrowse/templates/databrowse/calendar_day.html

     
    1010
    1111<ul class="objectlist">
    1212{% for object in object_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/calendar_homepage.html

     
    1010
    1111<ul class="objectlist">
    1212{% for field in field_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ field.name }}/">{{ model.verbose_name_plural|capfirst }} by {{ field.verbose_name }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ field.name }}/">{{ model.verbose_name_plural|capfirst }} by {{ field.verbose_name }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/calendar_main.html

     
    1010
    1111<ul class="objectlist">
    1212{% for year in date_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ year.year }}/">{{ year.year }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ year.year }}/">{{ year.year }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/calendar_month.html

     
    1010
    1111<ul class="objectlist">
    1212{% for object in object_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/calendar_year.html

     
    1010
    1111<ul class="objectlist">
    1212{% for month in date_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ month|date:"M"|lower }}/">{{ month|date:"F" }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ month|date:"M"|lower }}/">{{ month|date:"F" }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/choice_detail.html

     
    1010
    1111<ul class="objectlist">
    1212{% for object in object_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/choice_list.html

     
    1010
    1111<ul class="objectlist">
    1212{% for choice in field.choices %}
    13 <li class="{% cycle odd,even %}"><a href="{{ choice.url }}">{{ choice.label|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ choice.url }}">{{ choice.label|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/fieldchoice_detail.html

     
    1010
    1111<ul class="objectlist">
    1212{% for object in object_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/fieldchoice_homepage.html

     
    1010
    1111<ul class="objectlist">
    1212{% for field in field_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ field.name }}/">{{ model.verbose_name_plural|capfirst }} by {{ field.verbose_name }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ field.name }}/">{{ model.verbose_name_plural|capfirst }} by {{ field.verbose_name }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/fieldchoice_list.html

     
    1010
    1111<ul class="objectlist">
    1212{% for object in object_list %}
    13 <li class="{% cycle odd,even %}"><a href="{{ object|iriencode }}/">{{ object|escape }}</a></li>
     13<li class="{% cycle 'odd' 'even' %}"><a href="{{ object|iriencode }}/">{{ object|escape }}</a></li>
    1414{% endfor %}
    1515</ul>
    1616
  • django/contrib/databrowse/templates/databrowse/homepage.html

     
    77{% block content %}
    88
    99{% for model in model_list %}
    10   <div class="modelgroup {% cycle even,odd %}">
     10  <div class="modelgroup {% cycle 'even' 'odd' %}">
    1111          <h2><a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a></h2>
    1212                <p>
    1313                {% for object in model.sample_objects %}
  • django/contrib/databrowse/templates/databrowse/model_detail.html

     
    1212
    1313<ul class="objectlist">
    1414{% for object in model.objects %}
    15     <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     15    <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    1616{% endfor %}
    1717</ul>
    1818
  • django/contrib/databrowse/templates/databrowse/object_detail.html

     
    1010
    1111<table class="objectinfo">
    1212{% for field in object.fields %}
    13 <tr class="{% cycle odd,even %}">
     13<tr class="{% cycle 'odd' 'even' %}">
    1414<th>{{ field.field.verbose_name|capfirst }}</th>
    1515<td>
    1616{% if field.urls %}
     
    2929  {% if related_object.object_list %}
    3030  <ul class="objectlist">
    3131    {% for object in related_object.object_list %}
    32     <li class="{% cycle odd,even %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
     32    <li class="{% cycle 'odd' 'even' %}"><a href="{{ object.url }}">{{ object|escape }}</a></li>
    3333    {% endfor %}
    3434  </ul>
    3535  {% else %}
Back to Top