Ticket #8547: history.dff

File history.dff, 1.7 KB (added by anonymous, 16 years ago)
Line 
1--- django_org/contrib/admin/options.py 2008-08-25 11:49:22.000000000 +0200
2+++ django/contrib/admin/options.py 2008-08-25 11:53:23.000000000 +0200
3@@ -702,6 +702,7 @@
4 from django.contrib.admin.models import LogEntry
5 model = self.model
6 opts = model._meta
7+ app_label = opts.app_label
8 action_list = LogEntry.objects.filter(
9 object_id = object_id,
10 content_type__id__exact = ContentType.objects.get_for_model(model).id
11@@ -711,7 +712,8 @@
12 context = {
13 'title': _('Change history: %s') % force_unicode(obj),
14 'action_list': action_list,
15- 'module_name': capfirst(force_unicode(opts.verbose_name_plural)),
16+ 'opts': opts,
17+ 'app_label': app_label,
18 'object': obj,
19 'root_path': self.admin_site.root_path,
20 }
21--- django_org/contrib/admin/templates/admin/object_history.html 2008-08-25 11:49:22.000000000 +0200
22+++ django/contrib/admin/templates/admin/object_history.html 2008-08-25 11:55:11.000000000 +0200
23@@ -2,7 +2,12 @@
24 {% load i18n %}
25
26 {% block breadcrumbs %}
27-<div class="breadcrumbs"><a href="../../../../">{% trans 'Home' %}</a> &rsaquo; <a href="../../">{{ module_name }}</a> &rsaquo; <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo; {% trans 'History' %}</div>
28+<div class="breadcrumbs">
29+ <a href="../../../../">{% trans 'Home' %}</a> &rsaquo;
30+ <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
31+ <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
32+ <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
33+ {% trans 'History' %}</div>
34 {% endblock %}
35
36 {% block content %}
Back to Top