Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[full-history]

* Added some generic-wannabe tables



git-svn-id: http://code.djangoproject.com/svn/django/branches/full-history@3639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 56642885be405e166e58d704f80f47b7165f50d7 1 parent e6b7a2d
Uroš Trebec authored
Showing with 48 additions and 1 deletion.
  1. +48 −1 django/contrib/history/templates/history/detail.html
View
49 django/contrib/history/templates/history/detail.html
@@ -1,13 +1,60 @@
{% if change %}
+<h3>ChangeLog</h3>
+<table border="1px">
+<thead>
+<tr>
+ <th>Name</th>
+ <th>Value</th>
+ <th>Verbose</th>
+</tr>
+</thead>
+<tbody>
+{% for field in change_fields %}
+<tr>
+ <td>{{ field.name }}</td>
+ <td>{{ field.data_type }}</td>
+ <td>{% if field.verbose %}
+ {{ field.verbose|escape }}
+ {% endif %}
+ {% if field.help_text %} -
+ {{ field.help_text|escape }}
+ {% endif %}</td>
+</tr>
+{% endfor %}
+</tbody>
+</table>
+
+<h3>{{ object }}</h3>
+<table border="1px">
+<thead>
+<tr>
+ <th>Name</th>
+ <th>Value</th>
+ <th>Verbose</th>
+</tr>
+</thead>
+<tbody>
+{% for field in object_fields %}
+<tr>
+ <td>{{ field.name }}</td>
+ <td>{{ field.data_type }}</td>
+ <td>{{ field.verbose }}</td>
+</tr>
+{% endfor %}
+</tbody>
+</table>
+
+
<ul>
<li>ID: {{ change.id }}</li>
<li>PID: {{ change.object_id }}</li>
<li>UID: {{ change.user_id }}</li>
+<li>Type: {{ change.content_type }}</li>
<li>Change time: {{ change.change_time }}</li>
<li>Comment: {{ change.comment }}</li>
<hr width="100px" align="left"/>
<li>ID: {{ object.id }}
- <li>Question: {{ object.question }}</li>
+ <li>Question: {{ object }}</li>
<li>Pub date: {{ object.pub_date }}</li>
</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.