This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfc8dc4
commit afa60d5
Showing
10 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ build | |
.DS_Store | ||
.project | ||
.pydevproject | ||
*~ | ||
*~ | ||
.hg | ||
.git | ||
.svn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
0.1.0 - 15.01.2010 | ||
================== | ||
initial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include README | ||
include HISTORY | ||
recursive-include divioadmin/templates/ * | ||
recursive-include divioadmin/media/ * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
django admin modifications for the divio theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__="0.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
] | ||
) |