Skip to content
Browse files

initial commit

  • Loading branch information...
1 parent cfc8dc4 commit afa60d5cd382a8695c2be26b59ba534a7a58fb17 @stefanfoulis stefanfoulis committed Jan 15, 2010
View
5 .gitignore
@@ -12,4 +12,7 @@ build
.DS_Store
.project
.pydevproject
-*~
+*~
+.hg
+.git
+.svn
View
3 HISTORY
@@ -0,0 +1,3 @@
+0.1.0 - 15.01.2010
+==================
+initial
View
4 MANIFEST.in
@@ -0,0 +1,4 @@
+include README
+include HISTORY
+recursive-include divioadmin/templates/ *
+recursive-include divioadmin/media/ *
View
1 README
@@ -0,0 +1 @@
+django admin modifications for the divio theme
View
1 divioadmin/__init__.py
@@ -0,0 +1 @@
+__version__="0.1.1"
View
7 divioadmin/media/divioadmin/admin.css
@@ -0,0 +1,7 @@
+#header,#branding h1,#branding h1 a{height:41px;}
+#header{background:#fff url(header.jpg) repeat-x 0px -45px;color:#656565;overflow:hidden;border-bottom:2px solid #DDDDDD;}
+#header a:link, #header a:visited{color:#656565;}
+#header a:hover{text-decoration:underline;}
+#branding h1{margin:0;padding:0;color:#656565;font-size:15px;line-height:40px;text-indent:10px;}
+#branding h1 a{display:block;background:url(header.jpg) no-repeat 0px 0px;text-indent:-7777px;width:115px;}
+#user-tools{position:absolute;top:0;right:0;padding:1.2em 10px;font-size:11px;text-align:right;}
View
BIN divioadmin/media/divioadmin/header.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 divioadmin/models.py
No changes.
View
21 divioadmin/templates/admin/base_site.html
@@ -0,0 +1,21 @@
+{% extends "admin/base.html" %}
+{% load i18n %}
+
+{# this file contains divio customization for the admin site #}
+{# also: media/admin_divio/* #}
+
+{% block extrastyle %}
+{{ block.super }}
+{% load adminmedia %}
+<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/dashboard.css" />
+<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/base.css" />
+<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}divioadmin/admin.css" />
+{% endblock %}
+
+{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}
+
+{% block branding %}
+<h1 id="site-name"><a href="/admin/">{% trans 'Django administration' %}</a></h1>
+{% endblock %}
+
+{% block nav-global %}{% endblock %}
View
51 setup.py
@@ -0,0 +1,51 @@
+APP_NAME = 'divioadmin'
+DESCRIPTION = "django admin modifications for the divio theme"
+
+from setuptools import setup, find_packages
+import os
+
+version = __import__(APP_NAME).__version__
+
+media_files = []
+for dir in ['%s/media' % APP_NAME,'%s/templates' % APP_NAME]:
+ for dirpath, dirnames, filenames in os.walk(dir):
+ media_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
+
+def read(fname):
+ # read the contents of a text file
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+install_requires = [
+ 'setuptools',
+]
+
+setup(
+ name = "django-%s" % APP_NAME,
+ version = version,
+ url = 'http://github.com/divio/django-%s' % APP_NAME,
+ license = 'BSD',
+ platforms=['OS Independent'],
+ description = DESCRIPTION,
+ long_description = read('README'),
+ author = 'Divio GmbH',
+ author_email = 'developers@divio.ch',
+ packages=find_packages(),
+ install_requires = install_requires,
+ package_data={
+ '': ['*.txt', '*.rst',],
+ },
+ package_dir = {
+ APP_NAME:APP_NAME,
+ },
+ data_files = media_files,
+ zip_safe=False,
+ classifiers = [
+ 'Development Status :: 4 - Beta',
+ 'Framework :: Django',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Internet :: WWW/HTTP',
+ ]
+)

0 comments on commit afa60d5

Please sign in to comment.
Something went wrong with that request. Please try again.