PageRenderTime 510ms CodeModel.GetById 202ms app.highlight 9ms RepoModel.GetById 157ms app.codeStats 44ms

/django/contrib/admin/templates/mako/admin/index.html

https://code.google.com/p/mango-py/
HTML | 95 lines | 77 code | 18 blank | 0 comment | 0 complexity | 01a9badf1bae19283ff99f8275cb0188 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3
 4${self.block_stylesheet()}<%def name="block_stylesheet()"><%namespace name="admin" module="django.contrib.admin.templatetags.adminmedia" />${admin_media_prefix()}css/dashboard.css</%def>
 5
 6${self.block_coltype()}<%def name="block_coltype()">colMS</%def>
 7
 8${self.block_bodyclass()}<%def name="block_bodyclass()">dashboard</%def>
 9
10${self.block_breadcrumbs()}<%def name="block_breadcrumbs()"></%def>
11
12${self.block_content()}<%def name="block_content()">
13<div id="content-main">
14% if app_list:
15% for app in app_list:
16        <div class="module">
17        <table summary="<%def name="blocktrans()"><% name = app['name'] %>Models available in the ${name} application.</%def>${blocktrans()}">
18        <caption><a href="${app['app_url']}" class="section"><%def name="blocktrans()"><% name = app['name'] %>${name}</%def>${blocktrans()}</a></caption>
19% for model in app['models']:
20            <tr>
21% if model['perms']['change']:
22                <th scope="row"><a href="${model['admin_url']}">${model['name']}</a></th>
23% else:
24                <th scope="row">${model['name']}</th>
25% endif
26% if model['perms']['add']:
27                <td><a href="${model['admin_url']}add/" class="addlink">${trans('Add')}</a></td>
28% else:
29                <td>&nbsp;</td>
30% endif
31% if model['perms']['change']:
32                <td><a href="${model['admin_url']}" class="changelink">${trans('Change')}</a></td>
33% else:
34                <td>&nbsp;</td>
35% endif
36            </tr>
37% endfor
38        </table>
39        </div>
40% endfor
41% else:
42    <p>${trans("You don't have permission to edit anything.")}</p>
43% endif
44</div>
45</%def>
46
47${self.block_sidebar()}<%def name="block_sidebar()">
48<div id="content-related">
49    <div class="module" id="recent-actions-module">
50        <h2>${trans('Recent Actions')}</h2>
51        <h3>${trans('My Actions')}</h3>
52            
53            <% get_admin_log(10, 'admin_log', user) %>
54            
55% if not admin_log:
56
57            <p>${trans('None available')}</p>
58            
59% else:
60
61            <ul class="actionlist">
62            
63% for entry in admin_log:
64
65            <li class="
66% if entry.is_addition():
67addlink
68% endif
69
70% if entry.is_change():
71changelink
72% endif
73
74% if entry.is_deletion():
75deletelink
76% endif
77">
78% if not entry.is_deletion() and entry.content_type:
79<a href="${entry.get_admin_url()}">
80% endif
81${entry.object_repr|escape}
82% if not entry.is_deletion() and entry.content_type:
83</a>
84% endif
85<br /><span class="mini quiet">${capfirst(trans(entry.content_type))}</span></li>
86            
87% endfor
88
89            </ul>
90            
91% endif
92
93    </div>
94</div>
95</%def>