Django

Code

Changeset 3639

Show
Ignore:
Timestamp:
08/21/06 16:41:36 (2 years ago)
Author:
utrebec
Message:

[full-history]
* Added some generic-wannabe tables

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/full-history/django/contrib/history/templates/history/detail.html

    r3424 r3639  
    11{% if change %} 
     2<h3>ChangeLog</h3> 
     3<table border="1px"> 
     4<thead> 
     5<tr> 
     6  <th>Name</th> 
     7  <th>Value</th> 
     8  <th>Verbose</th> 
     9</tr> 
     10</thead> 
     11<tbody> 
     12{% for field in change_fields %} 
     13<tr> 
     14  <td>{{ field.name }}</td> 
     15  <td>{{ field.data_type }}</td> 
     16  <td>{% if field.verbose %} 
     17    {{ field.verbose|escape }} 
     18    {% endif %} 
     19    {% if field.help_text %} -  
     20    {{ field.help_text|escape }} 
     21    {% endif %}</td> 
     22</tr> 
     23{% endfor %} 
     24</tbody> 
     25</table> 
     26 
     27<h3>{{ object }}</h3> 
     28<table border="1px"> 
     29<thead> 
     30<tr> 
     31  <th>Name</th> 
     32  <th>Value</th> 
     33  <th>Verbose</th> 
     34</tr> 
     35</thead> 
     36<tbody> 
     37{% for field in object_fields %} 
     38<tr> 
     39  <td>{{ field.name }}</td> 
     40  <td>{{ field.data_type }}</td> 
     41  <td>{{ field.verbose }}</td> 
     42</tr> 
     43{% endfor %} 
     44</tbody> 
     45</table> 
     46 
     47 
    248<ul> 
    349<li>ID: {{ change.id }}</li> 
    450<li>PID: {{ change.object_id }}</li> 
    551<li>UID: {{ change.user_id }}</li> 
     52<li>Type: {{ change.content_type }}</li> 
    653<li>Change time: {{ change.change_time }}</li> 
    754<li>Comment: {{ change.comment }}</li> 
    855<hr width="100px" align="left"/> 
    956        <li>ID: {{ object.id }} 
    10         <li>Question: {{ object.question }}</li> 
     57        <li>Question: {{ object }}</li> 
    1158        <li>Pub date: {{ object.pub_date }}</li> 
    1259