diff options
-rw-r--r-- | snakeplan/settings.py | 9 | ||||
-rw-r--r-- | snakeplan/templates/media/css/screen.css | 94 | ||||
-rwxr-xr-x | snakeplan/templates/media/images/add.png | bin | 0 -> 733 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/arrow_left.png | bin | 0 -> 345 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/connect.png | bin | 0 -> 748 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/delete.png | bin | 0 -> 715 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/disconnect.png | bin | 0 -> 796 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/error.png | bin | 0 -> 701 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/info.png | bin | 0 -> 778 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/pencil.png | bin | 0 -> 450 bytes | |||
-rwxr-xr-x | snakeplan/templates/media/images/warning.png | bin | 0 -> 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/" |
47 | MEDIA_ROOT = '' | 47 | MEDIA_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/" |
52 | MEDIA_URL = '' | 52 | MEDIA_URL = '/media' |
53 | ADMIN_MEDIA_PREFIX = '/media/' | 53 | ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/' |
54 | 54 | ||
55 | SECRET_KEY = 'ow28jyl#0h8+^3$-!*%o-qfj5#zyr@xz+%vn_a3iizhn%l-3_=' | 55 | SECRET_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 | |||
84 | AUTH_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 | *********************************************************************/ | ||
4 | body { | ||
5 | font: 12px Verdana, Arial, sans-serif; | ||
6 | margin: 0; | ||
7 | } | ||
8 | |||
9 | h1, h2, h3, h4, h5 { | ||
10 | font-family: Georgia, Times, 'Times New Roman', serif; | ||
11 | font-weight: normal; | ||
12 | text-align: center; | ||
13 | } | ||
14 | |||
15 | a { | ||
16 | color: #00F; | ||
17 | } | ||
18 | |||
19 | table { | ||
20 | margin: auto; | ||
21 | border: 1px solid #CCC; | ||
22 | border-collapse: collapse; | ||
23 | } | ||
24 | |||
25 | td, th { | ||
26 | padding: 5px; | ||
27 | border: 1px solid #AAA; | ||
28 | } | ||
29 | |||
30 | th { | ||
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 | |||
54 | a.action { | ||
55 | text-decoration: none; | ||
56 | color: #000; | ||
57 | } | ||
58 | |||
59 | a.action img { | ||
60 | vertical-align: middle; | ||
61 | } | ||
62 | |||
63 | div.warning { | ||
64 | border-color: #FC3; | ||
65 | background: #FF9 url('../images/warning.png'); | ||
66 | } | ||
67 | |||
68 | div.error { | ||
69 | background: #FCC url('../images/error.png'); | ||
70 | border-color: #903; | ||
71 | } | ||
72 | |||
73 | div.info { | ||
74 | background: #CCF url('../images/info.png'); | ||
75 | border-color: #00C; | ||
76 | } | ||
77 | |||
78 | div.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 | |||