Commits

jordilin committed cb297b0

added admin custom style

Comments (0)

Files changed (2)

src/dijous/settings.py

 
 TEMPLATE_DIRS = (
     MEDIA_ROOT,
+    pjoin(BASE_PATH, 'templates'),
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.

src/dijous/templates/admin/base_site.html

+{% extends "admin/base.html" %}
+{% load i18n %}
+
+{% block title %}{{ title }} | {% trans 'Dijous site admin' %}{% endblock %}
+
+{% block extrastyle %}
+    <style>
+    #header{ background-color: #333940; border-bottom: solid 3px #999; }
+     
+    #branding h1{ color: #fff; }
+    .module h2, .module caption, .inline-group h2 { background:#ccc
+    url(/admin_media/img/admin/nav-bg.gif) bottom left repeat-x; color:
+    #333940; }
+    a.section:link, a.section:visited { color: #666666; }
+    </style>
+{% endblock %}
+
+{% block branding %}
+<h1 id="site-name">{% trans 'Dijous man-in-the-middle administration' %}</h1>
+{% endblock %}
+
+{% block nav-global %}{% endblock %}
+