Django

Code

Changeset 127

Show
Ignore:
Timestamp:
07/16/05 18:38:12 (3 years ago)
Author:
adrian
Message:

More installation streamlining/automation: Added adminapplist templatetag library and changed the default admin index.html template to display all installed apps that have admins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/admin_templates/index.html

    r92 r127  
    66{% block content %} 
    77<div id="content-main"> 
     8 
     9{% load adminapplist %} 
     10 
     11{% get_admin_app_list as app_list %} 
     12{% for app in app_list %} 
     13    <div class="module"> 
     14    <h2>{{ app.name }}</h2> 
     15    <table> 
     16    {% for model in app.models %} 
     17        <tr> 
     18            <th><a href="{{ model.admin_url }}">{{ model.name }}</a></th> 
     19            <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">Add</a></td> 
     20            <td class="x75"><a href="{{ model.admin_url }}" class="changelink">Change</a></td> 
     21        </tr> 
     22    {% endfor %} 
     23    </table> 
     24    </div> 
     25{% endfor %} 
    826 
    927</div>