Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanfoulis committed Jan 15, 2010
1 parent cfc8dc4 commit afa60d5
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -12,4 +12,7 @@ build
.DS_Store
.project
.pydevproject
*~
*~
.hg
.git
.svn
3 changes: 3 additions & 0 deletions HISTORY
@@ -0,0 +1,3 @@
0.1.0 - 15.01.2010
==================
initial
4 changes: 4 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,4 @@
include README
include HISTORY
recursive-include divioadmin/templates/ *
recursive-include divioadmin/media/ *
1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@
django admin modifications for the divio theme
1 change: 1 addition & 0 deletions divioadmin/__init__.py
@@ -0,0 +1 @@
__version__="0.1.1"
7 changes: 7 additions & 0 deletions 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;}
Binary file added 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.
Empty file added divioadmin/models.py
Empty file.
21 changes: 21 additions & 0 deletions 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 %}
51 changes: 51 additions & 0 deletions 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.