PageRenderTime 130ms CodeModel.GetById 125ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 56 lines | 42 code | 14 blank | 0 comment | 0 complexity | 0b8ba43770ecd6c4f1e143652bf023f7 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3
 4${self.block_breadcrumbs()}<%def name="block_breadcrumbs()">
 5<div class="breadcrumbs">
 6    <a href="../../../../">${trans('Home')}</a> &rsaquo; 
 7    <a href="../../../">${ capfirst(app_label) | escape }</a> &rsaquo; 
 8    <a href="../../">${ module_name }</a> &rsaquo; 
 9    <a href="../">${ object|escape }</a> &rsaquo; 
10    ${trans('History')}
11</div>
12</%def>
13
14${self.block_content()}<%def name="block_content()">
15<div id="content-main">
16<div class="module">
17
18
19% if action_list:
20
21    <table id="change-history">
22        <thead>
23        <tr>
24            <th scope="col">${trans('Date/time')}</th>
25            <th scope="col">${trans('User')}</th>
26            <th scope="col">${trans('Action')}</th>
27        </tr>
28        </thead>
29        <tbody>
30        
31% for action in action_list:
32
33        <tr>
34            <th scope="row">${ action.action_time }</th>
35            <td>${action.user.username}
36% if action.user.first_name:
37 (${action.user.first_name} ${action.user.last_name})
38% endif
39</td>
40            <td>${action.change_message}</td>
41        </tr>
42        
43% endfor
44
45        </tbody>
46    </table>
47
48% else:
49
50    <p>${trans("This object doesn't have a change history. It probably wasn't added via this admin site.")}</p>
51
52% endif
53
54</div>
55</div>
56</%def>