]> git.parisson.com Git - telemeta.git/commitdiff
remove custom admin templates, add suit as admin theme
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Dec 2014 00:10:01 +0000 (01:10 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Dec 2014 00:10:01 +0000 (01:10 +0100)
example/sandbox/settings.py
setup.py
telemeta/templates/admin/base.html [deleted file]
telemeta/templates/admin/base_site.html [deleted file]

index 0651affe98be16347f0df3590557f47b0947eaec..5817fcfdca1295597f3540d5672df5cca33f451e 100644 (file)
@@ -124,6 +124,7 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.messages',
+    'suit',
     'django.contrib.admin',
     'django.contrib.staticfiles',
     'django_extensions',
index e9e56a8ec4c3254e3088b53ffa002c253e0de754..03fdbfe374887497c96ffc7436e83ef923c0fd4b 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,7 @@ setup(
         'django-bootstrap3',
         'django-bootstrap-pagination',
         'django-json-rpc==0.6.2',
+        'django-suit',
         'timeside>=0.5.6',
         'south',
         'sorl-thumbnail',
diff --git a/telemeta/templates/admin/base.html b/telemeta/templates/admin/base.html
deleted file mode 100644 (file)
index d5f4b3f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
-<head>
-<title>{% block title %}{% endblock %}</title>
-<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{{ STATIC_URL }}admin/css/base.css{% endblock %}" />
-{% block extrastyle %}{% endblock %}
-<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{{ STATIC_URL }}admin/css/ie.css{% endblock %}" /><![endif]-->
-{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{{ STATIC_URL }}admin/css/rtl.css{% endblock %}" />{% endif %}
-<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{{ STATIC_URL }}admin/{% endfilter %}";</script>
-{% block extrahead %}{% endblock %}
-{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
-</head>
-{% load i18n %}
-
-<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
-
-<!-- Container -->
-<div id="container">
-
-    {% if not is_popup %}
-    {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
-    {% endif %}
-
-        {% if messages %}
-        <ul class="messagelist">{% for message in messages %}
-          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
-       {% endfor %}</ul>
-        {% endif %}
-
-    <!-- Content -->
-    <div id="content" class="{% block coltype %}colM{% endblock %}">
-        {% block pretitle %}{% endblock %}
-        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
-        {% block content %}
-        {% block object-tools %}{% endblock %}
-        {{ content }}
-        {% endblock %}
-        {% block sidebar %}{% endblock %}
-        <br class="clear" />
-    </div>
-    <!-- END Content -->
-
-    {% block footer %}<div id="footer"></div>{% endblock %}
-</div>
-<!-- END Container -->
-
-</body>
-</html>
diff --git a/telemeta/templates/admin/base_site.html b/telemeta/templates/admin/base_site.html
deleted file mode 100644 (file)
index 966fef7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends "admin/base.html" %}
-{% load i18n %}
-
-{% block title %}{{ title }} | {% trans 'Telemta site admin' %}{% endblock %}
-
-{% block branding %}
-<h1 id="site-name">{% trans 'Telemeta administration' %}</h1>
-{% endblock %}
-
-{% block nav-global %}{% endblock %}