Ticket #1585: index.diff

File index.diff, 904 bytes (added by ubernostrum, 9 years ago)

New admin index template with captions and summaries

  • index.html

     
    1313{% if app_list %}
    1414    {% for app in app_list %}
    1515        <div class="module">
    16         <h2>{{ app.name }}</h2>
    17         <table>
     16        <table summary="{% blocktrans %}Models available in the {{ app.name }} application.{% endblocktrans %}">
    1817        {% for model in app.models %}
     18          <caption>{{ app.name }}</caption>
    1919            <tr>
    2020            {% if model.perms.change %}
    21                 <th><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
     21                <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
    2222            {% else %}
    23                 <th>{{ model.name }}</th>
     23                <th scope="row">{{ model.name }}</th>
    2424            {% endif %}
    2525
    2626            {% if model.perms.add %}
Back to Top