aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-07-09 22:45:24 -0400
committerMike Crute <mcrute@gmail.com>2010-07-09 22:45:24 -0400
commit57336e9b907ac9efa02f427a8da949f46976afdd (patch)
tree3fa7d6367b1e16bae7924b380f67290f36e918d6
parent95f4d046bcb42bcb34e92293900386b9b29f38ae (diff)
downloadsnakeplan-57336e9b907ac9efa02f427a8da949f46976afdd.tar.bz2
snakeplan-57336e9b907ac9efa02f427a8da949f46976afdd.tar.xz
snakeplan-57336e9b907ac9efa02f427a8da949f46976afdd.zip
Moving media to templates directory
-rw-r--r--snakeplan/settings.py9
-rw-r--r--snakeplan/templates/media/css/screen.css94
-rwxr-xr-xsnakeplan/templates/media/images/add.pngbin0 -> 733 bytes
-rwxr-xr-xsnakeplan/templates/media/images/arrow_left.pngbin0 -> 345 bytes
-rwxr-xr-xsnakeplan/templates/media/images/connect.pngbin0 -> 748 bytes
-rwxr-xr-xsnakeplan/templates/media/images/delete.pngbin0 -> 715 bytes
-rwxr-xr-xsnakeplan/templates/media/images/disconnect.pngbin0 -> 796 bytes
-rwxr-xr-xsnakeplan/templates/media/images/error.pngbin0 -> 701 bytes
-rwxr-xr-xsnakeplan/templates/media/images/info.pngbin0 -> 778 bytes
-rwxr-xr-xsnakeplan/templates/media/images/pencil.pngbin0 -> 450 bytes
-rwxr-xr-xsnakeplan/templates/media/images/warning.pngbin0 -> 666 bytes
11 files changed, 100 insertions, 3 deletions
diff --git a/snakeplan/settings.py b/snakeplan/settings.py
index 69b177c..c735997 100644
--- a/snakeplan/settings.py
+++ b/snakeplan/settings.py
@@ -44,13 +44,13 @@ USE_I18N = False
44 44
45# Absolute path to the directory that holds media. 45# Absolute path to the directory that holds media.
46# Example: "/home/media/media.lawrence.com/" 46# Example: "/home/media/media.lawrence.com/"
47MEDIA_ROOT = '' 47MEDIA_ROOT = os.path.join(PROJECT_DIR, 'templates/media')
48 48
49# URL that handles the media served from MEDIA_ROOT. Make sure to use a 49# URL that handles the media served from MEDIA_ROOT. Make sure to use a
50# trailing slash if there is a path component (optional in other cases). 50# trailing slash if there is a path component (optional in other cases).
51# Examples: "http://media.lawrence.com", "http://example.com/media/" 51# Examples: "http://media.lawrence.com", "http://example.com/media/"
52MEDIA_URL = '' 52MEDIA_URL = '/media'
53ADMIN_MEDIA_PREFIX = '/media/' 53ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/'
54 54
55SECRET_KEY = 'ow28jyl#0h8+^3$-!*%o-qfj5#zyr@xz+%vn_a3iizhn%l-3_=' 55SECRET_KEY = 'ow28jyl#0h8+^3$-!*%o-qfj5#zyr@xz+%vn_a3iizhn%l-3_='
56 56
@@ -78,4 +78,7 @@ INSTALLED_APPS = (
78 'django.contrib.sites', 78 'django.contrib.sites',
79 'django.contrib.admin', 79 'django.contrib.admin',
80 'snakeplan.projects', 80 'snakeplan.projects',
81 'snakeplan.accounts',
81) 82)
83
84AUTH_PROFILE_MODULE = 'snakeplan.accounts.UserProfile'
diff --git a/snakeplan/templates/media/css/screen.css b/snakeplan/templates/media/css/screen.css
new file mode 100644
index 0000000..c133323
--- /dev/null
+++ b/snakeplan/templates/media/css/screen.css
@@ -0,0 +1,94 @@
1/*********************************************************************
2 * Base *
3 *********************************************************************/
4body {
5 font: 12px Verdana, Arial, sans-serif;
6 margin: 0;
7}
8
9h1, h2, h3, h4, h5 {
10 font-family: Georgia, Times, 'Times New Roman', serif;
11 font-weight: normal;
12 text-align: center;
13}
14
15a {
16 color: #00F;
17}
18
19table {
20 margin: auto;
21 border: 1px solid #CCC;
22 border-collapse: collapse;
23}
24
25td, th {
26 padding: 5px;
27 border: 1px solid #AAA;
28}
29
30th {
31 background: #AAA;
32 text-align: center;
33 border-bottom: 1px solid black;
34}
35
36.row-actions {
37 text-align: center;
38}
39
40.action-bar {
41 width: 75%;
42 margin: 10px auto;
43 padding: 0px;
44 list-style: none;
45 height: 20px;
46}
47
48.action-bar li {
49 display: block;
50 float: right;
51 padding: 0 10px;
52}
53
54a.action {
55 text-decoration: none;
56 color: #000;
57}
58
59a.action img {
60 vertical-align: middle;
61}
62
63div.warning {
64 border-color: #FC3;
65 background: #FF9 url('../images/warning.png');
66}
67
68div.error {
69 background: #FCC url('../images/error.png');
70 border-color: #903;
71}
72
73div.info {
74 background: #CCF url('../images/info.png');
75 border-color: #00C;
76}
77
78div.user-notice {
79 border-width: 1px;
80 border-style: solid;
81 padding: 20px 20px 20px 50px;
82 width: 50%;
83 margin: auto;
84 background-repeat: no-repeat;
85 background-position: 20px;
86}
87
88
89/*********************************************************************
90 * Projects *
91 *********************************************************************/
92.project.inactive, .project.inactive a {
93 color: #999;
94}
diff --git a/snakeplan/templates/media/images/add.png b/snakeplan/templates/media/images/add.png
new file mode 100755
index 0000000..6332fef
--- /dev/null
+++ b/snakeplan/templates/media/images/add.png
Binary files differ
diff --git a/snakeplan/templates/media/images/arrow_left.png b/snakeplan/templates/media/images/arrow_left.png
new file mode 100755
index 0000000..5dc6967
--- /dev/null
+++ b/snakeplan/templates/media/images/arrow_left.png
Binary files differ
diff --git a/snakeplan/templates/media/images/connect.png b/snakeplan/templates/media/images/connect.png
new file mode 100755
index 0000000..024138e
--- /dev/null
+++ b/snakeplan/templates/media/images/connect.png
Binary files differ
diff --git a/snakeplan/templates/media/images/delete.png b/snakeplan/templates/media/images/delete.png
new file mode 100755
index 0000000..08f2493
--- /dev/null
+++ b/snakeplan/templates/media/images/delete.png
Binary files differ
diff --git a/snakeplan/templates/media/images/disconnect.png b/snakeplan/templates/media/images/disconnect.png
new file mode 100755
index 0000000..b335cb1
--- /dev/null
+++ b/snakeplan/templates/media/images/disconnect.png
Binary files differ
diff --git a/snakeplan/templates/media/images/error.png b/snakeplan/templates/media/images/error.png
new file mode 100755
index 0000000..c37bd06
--- /dev/null
+++ b/snakeplan/templates/media/images/error.png
Binary files differ
diff --git a/snakeplan/templates/media/images/info.png b/snakeplan/templates/media/images/info.png
new file mode 100755
index 0000000..12cd1ae
--- /dev/null
+++ b/snakeplan/templates/media/images/info.png
Binary files differ
diff --git a/snakeplan/templates/media/images/pencil.png b/snakeplan/templates/media/images/pencil.png
new file mode 100755
index 0000000..0bfecd5
--- /dev/null
+++ b/snakeplan/templates/media/images/pencil.png
Binary files differ
diff --git a/snakeplan/templates/media/images/warning.png b/snakeplan/templates/media/images/warning.png
new file mode 100755
index 0000000..628cf2d
--- /dev/null
+++ b/snakeplan/templates/media/images/warning.png
Binary files differ