Give the comments admin page custom css.
[matthijs/projects/xerxes.git] / influences / admin.py
index 3c380ec27f73822bfb749f8b6855e443065a5bd2..126cd5cea9ddd20232a6a5a9d6050b172e310eb7 100644 (file)
@@ -6,6 +6,8 @@ from xerxes.influences.models import Character, Influence
 from django.contrib.contenttypes import generic
 from threadedcomments.models import ThreadedComment
 from django.utils.safestring import mark_safe
+from django.utils.translation import ugettext as _
+from django.utils.encoding import force_unicode
 
 class CharacterAdmin(admin.ModelAdmin):
     list_filter=('status', 'player')
@@ -21,6 +23,7 @@ class InfluenceAdmin(admin.ModelAdmin):
 
     class Media:
         js = ('base/js/yahoo-dom-event.js', 'base/js/logger-debug.js')
+        css = {'all' : ('base/css/admin.css',)}
 
     def __call__(self, request, url):
         if (url and url.endswith('/comments')):
@@ -36,6 +39,7 @@ class InfluenceAdmin(admin.ModelAdmin):
         comments = obj.get_comments(private=True)
 
         context = {
+            'title'         : _('Commentaar: %s') % force_unicode(obj),
             'root_path'     : self.admin_site.root_path,
             'app_label'     : self.model._meta.app_label,
             'object'        : obj,