Browse Source

Initial commit

tags/2011.2
Devin Carlen 8 years ago
commit
d3965a9f0a
95 changed files with 6651 additions and 0 deletions
  1. 176
    0
      LICENSE
  2. 0
    0
      dashboard/__init__.py
  3. 11
    0
      dashboard/manage.py
  4. 88
    0
      dashboard/settings.py
  5. 35
    0
      dashboard/templates/403.html
  6. 34
    0
      dashboard/templates/404.html
  7. 34
    0
      dashboard/templates/500.html
  8. 96
    0
      dashboard/templates/admin/index.html
  9. 63
    0
      dashboard/templates/base-root.html
  10. 15
    0
      dashboard/templates/base-sidebar.html
  11. 5
    0
      dashboard/templates/base.html
  12. 56
    0
      dashboard/templates/index.html
  13. 11
    0
      dashboard/templates/permission_denied.html
  14. 34
    0
      dashboard/templates/registration/activate.html
  15. 21
    0
      dashboard/templates/registration/activation_email.txt
  16. 1
    0
      dashboard/templates/registration/activation_email_subject.txt
  17. 36
    0
      dashboard/templates/registration/login.html
  18. 14
    0
      dashboard/templates/registration/logout.html
  19. 18
    0
      dashboard/templates/registration/password_change_done.html
  20. 23
    0
      dashboard/templates/registration/password_change_form.html
  21. 19
    0
      dashboard/templates/registration/password_reset_complete.html
  22. 26
    0
      dashboard/templates/registration/password_reset_confirm.html
  23. 17
    0
      dashboard/templates/registration/password_reset_done.html
  24. 13
    0
      dashboard/templates/registration/password_reset_email.html
  25. 23
    0
      dashboard/templates/registration/password_reset_form.html
  26. 22
    0
      dashboard/templates/registration/registration_complete.html
  27. 29
    0
      dashboard/templates/registration/registration_form.html
  28. 57
    0
      dashboard/urls.py
  29. 39
    0
      dashboard/views.py
  30. 29
    0
      dashboard/wsgi/django.wsgi
  31. 0
    0
      local/__init__.py
  32. 22
    0
      local/local_settings.py.example
  33. BIN
      media/dashboard/css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
  34. BIN
      media/dashboard/css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png
  35. BIN
      media/dashboard/css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png
  36. BIN
      media/dashboard/css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png
  37. BIN
      media/dashboard/css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png
  38. BIN
      media/dashboard/css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png
  39. BIN
      media/dashboard/css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png
  40. BIN
      media/dashboard/css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png
  41. BIN
      media/dashboard/css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
  42. BIN
      media/dashboard/css/cupertino/images/ui-icons_2694e8_256x240.png
  43. BIN
      media/dashboard/css/cupertino/images/ui-icons_2e83ff_256x240.png
  44. BIN
      media/dashboard/css/cupertino/images/ui-icons_3d80b3_256x240.png
  45. BIN
      media/dashboard/css/cupertino/images/ui-icons_72a7cf_256x240.png
  46. BIN
      media/dashboard/css/cupertino/images/ui-icons_ffffff_256x240.png
  47. 406
    0
      media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css
  48. 749
    0
      media/dashboard/css/dashboard.css
  49. 217
    0
      media/dashboard/css/dashboard_sub.css
  50. 541
    0
      media/dashboard/css/django-admin-widgets.css
  51. 18
    0
      media/dashboard/css/global.css
  52. 745
    0
      media/dashboard/css/home.css
  53. 85
    0
      media/dashboard/css/ie7.css
  54. 9
    0
      media/dashboard/css/jquery.tooltip.css
  55. 1145
    0
      media/dashboard/css/new_dash.css
  56. 63
    0
      media/dashboard/css/openstack.css
  57. 50
    0
      media/dashboard/css/reset.css
  58. BIN
      media/dashboard/img/body_bg.gif
  59. BIN
      media/dashboard/img/body_bg.png
  60. BIN
      media/dashboard/img/book_icon.png
  61. BIN
      media/dashboard/img/bread_crumb.gif
  62. BIN
      media/dashboard/img/btn_bg.png
  63. BIN
      media/dashboard/img/chat_icon.png
  64. BIN
      media/dashboard/img/content_bg.gif
  65. BIN
      media/dashboard/img/content_shadow.png
  66. BIN
      media/dashboard/img/dashboard_nav_bg.png
  67. BIN
      media/dashboard/img/foot_back.png
  68. BIN
      media/dashboard/img/gears.png
  69. BIN
      media/dashboard/img/header_bg.png
  70. BIN
      media/dashboard/img/home_head_back.png
  71. BIN
      media/dashboard/img/image_detail.png
  72. BIN
      media/dashboard/img/logged_in_box_bg.gif
  73. BIN
      media/dashboard/img/login_bg.png
  74. BIN
      media/dashboard/img/login_btn.png
  75. BIN
      media/dashboard/img/logo.gif
  76. BIN
      media/dashboard/img/nav_arrow.png
  77. BIN
      media/dashboard/img/nav_bg.png
  78. BIN
      media/dashboard/img/nav_highlight.png
  79. BIN
      media/dashboard/img/page_header.png
  80. BIN
      media/dashboard/img/projects_bg.png
  81. BIN
      media/dashboard/img/server_icon.png
  82. BIN
      media/dashboard/img/spinner.gif
  83. BIN
      media/dashboard/img/sub-head-back.png
  84. BIN
      media/dashboard/img/sub_head_back.png
  85. BIN
      media/dashboard/img/table_header_bg.png
  86. BIN
      media/dashboard/img/table_heading_bg.png
  87. BIN
      media/dashboard/img/title-blank-short-foot.png
  88. 4
    0
      media/dashboard/js/dashboard.js
  89. 564
    0
      media/dashboard/js/django-admin.multiselect.js
  90. 9
    0
      media/dashboard/js/jquery-ui.min.js
  91. 675
    0
      media/dashboard/js/jquery.form.js
  92. 154
    0
      media/dashboard/js/jquery.min.js
  93. 139
    0
      tools/install_venv.py
  94. 6
    0
      tools/pip-requires
  95. 5
    0
      tools/with_venv.sh

+ 176
- 0
LICENSE View File

@@ -0,0 +1,176 @@
1
+
2
+                                 Apache License
3
+                           Version 2.0, January 2004
4
+                        http://www.apache.org/licenses/
5
+
6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+   1. Definitions.
9
+
10
+      "License" shall mean the terms and conditions for use, reproduction,
11
+      and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+      "Licensor" shall mean the copyright owner or entity authorized by
14
+      the copyright owner that is granting the License.
15
+
16
+      "Legal Entity" shall mean the union of the acting entity and all
17
+      other entities that control, are controlled by, or are under common
18
+      control with that entity. For the purposes of this definition,
19
+      "control" means (i) the power, direct or indirect, to cause the
20
+      direction or management of such entity, whether by contract or
21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+      outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+      "You" (or "Your") shall mean an individual or Legal Entity
25
+      exercising permissions granted by this License.
26
+
27
+      "Source" form shall mean the preferred form for making modifications,
28
+      including but not limited to software source code, documentation
29
+      source, and configuration files.
30
+
31
+      "Object" form shall mean any form resulting from mechanical
32
+      transformation or translation of a Source form, including but
33
+      not limited to compiled object code, generated documentation,
34
+      and conversions to other media types.
35
+
36
+      "Work" shall mean the work of authorship, whether in Source or
37
+      Object form, made available under the License, as indicated by a
38
+      copyright notice that is included in or attached to the work
39
+      (an example is provided in the Appendix below).
40
+
41
+      "Derivative Works" shall mean any work, whether in Source or Object
42
+      form, that is based on (or derived from) the Work and for which the
43
+      editorial revisions, annotations, elaborations, or other modifications
44
+      represent, as a whole, an original work of authorship. For the purposes
45
+      of this License, Derivative Works shall not include works that remain
46
+      separable from, or merely link (or bind by name) to the interfaces of,
47
+      the Work and Derivative Works thereof.
48
+
49
+      "Contribution" shall mean any work of authorship, including
50
+      the original version of the Work and any modifications or additions
51
+      to that Work or Derivative Works thereof, that is intentionally
52
+      submitted to Licensor for inclusion in the Work by the copyright owner
53
+      or by an individual or Legal Entity authorized to submit on behalf of
54
+      the copyright owner. For the purposes of this definition, "submitted"
55
+      means any form of electronic, verbal, or written communication sent
56
+      to the Licensor or its representatives, including but not limited to
57
+      communication on electronic mailing lists, source code control systems,
58
+      and issue tracking systems that are managed by, or on behalf of, the
59
+      Licensor for the purpose of discussing and improving the Work, but
60
+      excluding communication that is conspicuously marked or otherwise
61
+      designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
64
+      on behalf of whom a Contribution has been received by Licensor and
65
+      subsequently incorporated within the Work.
66
+
67
+   2. Grant of Copyright License. Subject to the terms and conditions of
68
+      this License, each Contributor hereby grants to You a perpetual,
69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+      copyright license to reproduce, prepare Derivative Works of,
71
+      publicly display, publicly perform, sublicense, and distribute the
72
+      Work and such Derivative Works in Source or Object form.
73
+
74
+   3. Grant of Patent License. Subject to the terms and conditions of
75
+      this License, each Contributor hereby grants to You a perpetual,
76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+      (except as stated in this section) patent license to make, have made,
78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
79
+      where such license applies only to those patent claims licensable
80
+      by such Contributor that are necessarily infringed by their
81
+      Contribution(s) alone or by combination of their Contribution(s)
82
+      with the Work to which such Contribution(s) was submitted. If You
83
+      institute patent litigation against any entity (including a
84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+      or a Contribution incorporated within the Work constitutes direct
86
+      or contributory patent infringement, then any patent licenses
87
+      granted to You under this License for that Work shall terminate
88
+      as of the date such litigation is filed.
89
+
90
+   4. Redistribution. You may reproduce and distribute copies of the
91
+      Work or Derivative Works thereof in any medium, with or without
92
+      modifications, and in Source or Object form, provided that You
93
+      meet the following conditions:
94
+
95
+      (a) You must give any other recipients of the Work or
96
+          Derivative Works a copy of this License; and
97
+
98
+      (b) You must cause any modified files to carry prominent notices
99
+          stating that You changed the files; and
100
+
101
+      (c) You must retain, in the Source form of any Derivative Works
102
+          that You distribute, all copyright, patent, trademark, and
103
+          attribution notices from the Source form of the Work,
104
+          excluding those notices that do not pertain to any part of
105
+          the Derivative Works; and
106
+
107
+      (d) If the Work includes a "NOTICE" text file as part of its
108
+          distribution, then any Derivative Works that You distribute must
109
+          include a readable copy of the attribution notices contained
110
+          within such NOTICE file, excluding those notices that do not
111
+          pertain to any part of the Derivative Works, in at least one
112
+          of the following places: within a NOTICE text file distributed
113
+          as part of the Derivative Works; within the Source form or
114
+          documentation, if provided along with the Derivative Works; or,
115
+          within a display generated by the Derivative Works, if and
116
+          wherever such third-party notices normally appear. The contents
117
+          of the NOTICE file are for informational purposes only and
118
+          do not modify the License. You may add Your own attribution
119
+          notices within Derivative Works that You distribute, alongside
120
+          or as an addendum to the NOTICE text from the Work, provided
121
+          that such additional attribution notices cannot be construed
122
+          as modifying the License.
123
+
124
+      You may add Your own copyright statement to Your modifications and
125
+      may provide additional or different license terms and conditions
126
+      for use, reproduction, or distribution of Your modifications, or
127
+      for any such Derivative Works as a whole, provided Your use,
128
+      reproduction, and distribution of the Work otherwise complies with
129
+      the conditions stated in this License.
130
+
131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
132
+      any Contribution intentionally submitted for inclusion in the Work
133
+      by You to the Licensor shall be under the terms and conditions of
134
+      this License, without any additional terms or conditions.
135
+      Notwithstanding the above, nothing herein shall supersede or modify
136
+      the terms of any separate license agreement you may have executed
137
+      with Licensor regarding such Contributions.
138
+
139
+   6. Trademarks. This License does not grant permission to use the trade
140
+      names, trademarks, service marks, or product names of the Licensor,
141
+      except as required for reasonable and customary use in describing the
142
+      origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+   7. Disclaimer of Warranty. Unless required by applicable law or
145
+      agreed to in writing, Licensor provides the Work (and each
146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+      implied, including, without limitation, any warranties or conditions
149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
151
+      appropriateness of using or redistributing the Work and assume any
152
+      risks associated with Your exercise of permissions under this License.
153
+
154
+   8. Limitation of Liability. In no event and under no legal theory,
155
+      whether in tort (including negligence), contract, or otherwise,
156
+      unless required by applicable law (such as deliberate and grossly
157
+      negligent acts) or agreed to in writing, shall any Contributor be
158
+      liable to You for damages, including any direct, indirect, special,
159
+      incidental, or consequential damages of any character arising as a
160
+      result of this License or out of the use or inability to use the
161
+      Work (including but not limited to damages for loss of goodwill,
162
+      work stoppage, computer failure or malfunction, or any and all
163
+      other commercial damages or losses), even if such Contributor
164
+      has been advised of the possibility of such damages.
165
+
166
+   9. Accepting Warranty or Additional Liability. While redistributing
167
+      the Work or Derivative Works thereof, You may choose to offer,
168
+      and charge a fee for, acceptance of support, warranty, indemnity,
169
+      or other liability obligations and/or rights consistent with this
170
+      License. However, in accepting such obligations, You may act only
171
+      on Your own behalf and on Your sole responsibility, not on behalf
172
+      of any other Contributor, and only if You agree to indemnify,
173
+      defend, and hold each Contributor harmless for any liability
174
+      incurred by, or claims asserted against, such Contributor by reason
175
+      of your accepting any such warranty or additional liability.
176
+

+ 0
- 0
dashboard/__init__.py View File


+ 11
- 0
dashboard/manage.py View File

@@ -0,0 +1,11 @@
1
+#!/usr/bin/env python
2
+from django.core.management import execute_manager
3
+try:
4
+    import settings # Assumed to be in the same directory.
5
+except ImportError:
6
+    import sys
7
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
8
+    sys.exit(1)
9
+
10
+if __name__ == "__main__":
11
+    execute_manager(settings)

+ 88
- 0
dashboard/settings.py View File

@@ -0,0 +1,88 @@
1
+import datetime
2
+import logging
3
+import os
4
+import sys
5
+
6
+ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
7
+
8
+sys.path.append(ROOT_PATH)
9
+
10
+DEBUG = False
11
+TEMPLATE_DEBUG = DEBUG
12
+
13
+SITE_ID = 1
14
+SITE_NAME = 'openstack-dashboard'
15
+
16
+LOGIN_URL = '/accounts/login'
17
+LOGIN_REDIRECT_URL = '/'
18
+
19
+MEDIA_ROOT =  os.path.join(ROOT_PATH, '..', 'media')
20
+MEDIA_URL = '/media/'
21
+ADMIN_MEDIA_PREFIX = '/media/admin/'
22
+
23
+CREDENTIAL_AUTHORIZATION_DAYS = '5'
24
+
25
+ROOT_URLCONF = 'dashboard.urls'
26
+
27
+MIDDLEWARE_CLASSES = (
28
+    'django.middleware.common.CommonMiddleware',
29
+    'django.middleware.csrf.CsrfViewMiddleware',
30
+    'django.contrib.sessions.middleware.SessionMiddleware',
31
+    'django.contrib.messages.middleware.MessageMiddleware',
32
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
33
+    'django.middleware.doc.XViewMiddleware',
34
+)
35
+
36
+TEMPLATE_CONTEXT_PROCESSORS = (
37
+    'django.core.context_processors.auth',
38
+    'django.core.context_processors.debug',
39
+    'django.core.context_processors.i18n',
40
+    'django.core.context_processors.request',
41
+    'django.core.context_processors.media',
42
+    'django.contrib.messages.context_processors.messages',
43
+)
44
+
45
+TEMPLATE_LOADERS = (
46
+    'django.template.loaders.filesystem.load_template_source',
47
+    'django.template.loaders.app_directories.load_template_source',
48
+)
49
+
50
+TEMPLATE_DIRS = (
51
+    os.path.join(ROOT_PATH, 'templates'),
52
+)
53
+
54
+INSTALLED_APPS = (
55
+    'dashboard',
56
+    'django.contrib.auth',
57
+    'django.contrib.admin',
58
+    'django.contrib.contenttypes',
59
+    'django.contrib.sessions',
60
+    'django.contrib.messages',
61
+    'django.contrib.comments',
62
+    'django.contrib.sites',
63
+    'django.contrib.markup',
64
+    'django.contrib.syndication',
65
+    'django_nose',
66
+    'django_nova',
67
+    'registration',
68
+)
69
+
70
+TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
71
+
72
+AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
73
+MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
74
+
75
+SESSION_EXPIRE_AT_BROWSER_CLOSE = True
76
+TIME_ZONE = 'PST+08PDT,M3.2.0,M11.1.0'
77
+LANGUAGE_CODE = 'en-us'
78
+USE_I18N = False
79
+
80
+ACCOUNT_ACTIVATION_DAYS = 7
81
+
82
+try:
83
+    from local.local_settings import *
84
+except Exception, e:
85
+    logging.exception(e)
86
+
87
+if DEBUG:
88
+    logging.basicConfig(level=logging.DEBUG)

+ 35
- 0
dashboard/templates/403.html View File

@@ -0,0 +1,35 @@
1
+{% extends "base.html" %}
2
+
3
+{% block title %} - Forbidden{% endblock %}
4
+
5
+{% block content %}
6
+  <div id="right_content">
7
+    <div id="page_head">
8
+      <h2 id="page_heading">Forbidden</h2>
9
+      <p id="page_description">You do not have the required privileges to access this content.  If you believe this message to be in error,
10
+      please contact your project manager.</p>
11
+    </div>
12
+  </div>
13
+{% endblock %}
14
+
15
+{% block sidebar %}
16
+  <div id="sidebar">
17
+    <ul id="navigation">
18
+      {% block nav_home %}
19
+      <li><h3><a href="/">Home</a></h3></li>
20
+      {% endblock %}
21
+
22
+      {% block nav_projects %}
23
+      <li><h3><a href="/">Projects</a></h3></li>
24
+      {% endblock %}
25
+
26
+      {% block nav_forum %}
27
+      <li><h3><a href="/forum">Forums</a></h3></li>
28
+      {% endblock %}
29
+
30
+      {% block nav_kb %}
31
+      <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
32
+      {% endblock %}
33
+    </ul>
34
+  </div> <!-- end sidebar -->
35
+{% endblock %}

+ 34
- 0
dashboard/templates/404.html View File

@@ -0,0 +1,34 @@
1
+{% extends "base.html" %}
2
+
3
+{% block title %} - Page Not Found{% endblock %}
4
+
5
+{% block content %}
6
+  <div id="right_content">
7
+    <div id="page_head">
8
+      <h2 id="page_heading">The page you were looking for doesn't exist</h2>
9
+      <p id="page_description">You may have mistyped the address or the page may have moved.</p>
10
+    </div>
11
+  </div>
12
+{% endblock %}
13
+
14
+{% block sidebar %}
15
+  <div id="sidebar">
16
+    <ul id="navigation">
17
+      {% block nav_home %}
18
+      <li><h3><a href="/">Home</a></h3></li>
19
+      {% endblock %}
20
+
21
+      {% block nav_projects %}
22
+      <li><h3><a href="/">Projects</a></h3></li>
23
+      {% endblock %}
24
+
25
+      {% block nav_forum %}
26
+      <li><h3><a href="/forum">Forums</a></h3></li>
27
+      {% endblock %}
28
+
29
+      {% block nav_kb %}
30
+      <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
31
+      {% endblock %}
32
+    </ul>
33
+  </div> <!-- end sidebar -->
34
+{% endblock %}

+ 34
- 0
dashboard/templates/500.html View File

@@ -0,0 +1,34 @@
1
+{% extends "base.html" %}
2
+
3
+{% block title %} - Internal Server Error{% endblock %}
4
+
5
+{% block content %}
6
+  <div id="right_content">
7
+    <div id="page_head">
8
+      <h2 id="page_heading">Internal Server Error</h2>
9
+      <p id="page_description">An unexpected error occurred while processing your request.  Please try your request again.</p>
10
+    </div>
11
+  </div>
12
+{% endblock %}
13
+
14
+{% block sidebar %}
15
+  <div id="sidebar">
16
+    <ul id="navigation">
17
+      {% block nav_home %}
18
+      <li><h3><a href="/">Home</a></h3></li>
19
+      {% endblock %}
20
+
21
+      {% block nav_projects %}
22
+      <li><h3><a href="/">Projects</a></h3></li>
23
+      {% endblock %}
24
+
25
+      {% block nav_forum %}
26
+      <li><h3><a href="/forum">Forums</a></h3></li>
27
+      {% endblock %}
28
+
29
+      {% block nav_kb %}
30
+      <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
31
+      {% endblock %}
32
+    </ul>
33
+  </div> <!-- end sidebar -->
34
+{% endblock %}

+ 96
- 0
dashboard/templates/admin/index.html View File

@@ -0,0 +1,96 @@
1
+{% extends "admin/base_site.html" %}
2
+{% load i18n %}
3
+
4
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
5
+
6
+{% block coltype %}colMS{% endblock %}
7
+
8
+{% block bodyclass %}dashboard{% endblock %}
9
+
10
+{% block breadcrumbs %}{% endblock %}
11
+
12
+{% block content %}
13
+<div id="content-main">
14
+{% if app_list %}
15
+
16
+    <div class="module">
17
+      <table summary="Models available in the OpenStack application.">
18
+        <caption><a href="{% url admin_projects %}" class="section">OpenStack</a></caption>
19
+        <tbody>
20
+          <tr>
21
+            <th scope="row"><a href="{% url admin_projects %}">Projects</a></th>
22
+            <td><a href="{% url add_project %}" class="addlink">Add</a></td>
23
+          </tr>
24
+          <tr>
25
+            <th scope="row"><a href="{% url admin_users_list %}">Global Roles</a></th>
26
+          </tr>
27
+       </tbody>
28
+      </table>
29
+    </div>
30
+
31
+    {% for app in app_list %}
32
+        <div class="module">
33
+        <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
34
+        <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
35
+        {% for model in app.models %}
36
+            <tr>
37
+            {% if model.perms.change %}
38
+                <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
39
+            {% else %}
40
+                <th scope="row">{{ model.name }}</th>
41
+            {% endif %}
42
+
43
+            {% if model.perms.add %}
44
+                <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
45
+            {% else %}
46
+                <td>&nbsp;</td>
47
+            {% endif %}
48
+
49
+            {% if model.perms.change %}
50
+                <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
51
+            {% else %}
52
+                <td>&nbsp;</td>
53
+            {% endif %}
54
+            </tr>
55
+        {% endfor %}
56
+        </table>
57
+        </div>
58
+    {% endfor %}
59
+{% else %}
60
+    <p>{% trans "You don't have permission to edit anything." %}</p>
61
+{% endif %}
62
+</div>
63
+{% endblock %}
64
+
65
+{% block sidebar %}
66
+<div id="content-related">
67
+    <div class="module" id="recent-actions-module">
68
+        <h2>{% trans 'Recent Actions' %}</h2>
69
+        <h3>{% trans 'My Actions' %}</h3>
70
+            {% load log %}
71
+            {% get_admin_log 10 as admin_log for_user user %}
72
+            {% if not admin_log %}
73
+            <p>{% trans 'None available' %}</p>
74
+            {% else %}
75
+            <ul class="actionlist">
76
+            {% for entry in admin_log %}
77
+            <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
78
+                {% if entry.is_deletion %}
79
+                    {{ entry.object_repr }}
80
+                {% else %}
81
+                    <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
82
+                {% endif %}
83
+                <br/>
84
+                {% if entry.content_type %}
85
+                    <span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span>
86
+                {% else %}
87
+                    <span class="mini quiet">{% trans 'Unknown content' %}</span>
88
+                {% endif %}
89
+            </li>
90
+            {% endfor %}
91
+            </ul>
92
+            {% endif %}
93
+    </div>
94
+</div>
95
+{% endblock %}
96
+

+ 63
- 0
dashboard/templates/base-root.html View File

@@ -0,0 +1,63 @@
1
+<!DOCTYPE html>
2
+<html lang="en" xml:lang="en">
3
+  <head>
4
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
6
+    <title>OpenStack Dashboard{% block title %}{% endblock %}{% block subtitle %}{% endblock %}</title>
7
+    <link rel="stylesheet" type="text/css" href="/media/dashboard/css/new_dash.css"/>
8
+    <link rel="stylesheet" type="text/css" href="/media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css"/>
9
+    <link rel="stylesheet" type="text/css" href="/media/dashboard/css/openstack.css"/>
10
+    {% block headercss %}{% endblock %}
11
+    <!--[if IE 7]><link rel="stylesheet" href="/media/dashboard/css/ie7.css" type="text/css" media="screen, projection"><![endif]-->
12
+
13
+    <script type="text/javascript" src="/media/dashboard/js/jquery.min.js"></script>
14
+    <script type="text/javascript" src="/media/dashboard/js/jquery-ui.min.js"></script>
15
+    <script type="text/javascript" src="/media/dashboard/js/dashboard.js"></script>
16
+
17
+    {% block headerjs %}{% endblock %}
18
+  </head>
19
+  <body>
20
+    <div id="wrapper">
21
+      <div id="header">
22
+        <h1><a href="/">OpenStack<span> Cloud Computing</span></a></h1>
23
+        {% if user.is_authenticated %}
24
+          <div id="user_info">
25
+              <span class="user">Signed in as <strong>{{ request.user.username }}</strong>.</a></span>
26
+            <ul>
27
+                <li><a id="lnk_logout" href="{% url auth_logout %}">Sign Out</a></li>
28
+              <li><a id="lnk_change_password" href="{% url auth_password_change %}">Change Password</a></li>
29
+            </ul>
30
+          </div>
31
+        {% else %}
32
+          <div id="user_info">
33
+            <a id="lnk_login" href="/accounts/login">Sign In</a>
34
+          </div>
35
+        {% endif %}
36
+      </div>
37
+
38
+      <div id="content_wrap">
39
+        {% block sidebar %}{% endblock %}
40
+        {% block region %}{% endblock %}
41
+        {% block forum_breadcrumbs %}{% endblock %}
42
+        <div id="content" class="{% block pageclass %}{% endblock %}">
43
+          {% block rootcontent %}{% endblock %}
44
+        </div><!-- end content -->
45
+      </div>
46
+
47
+      <div id="footer">
48
+        <div id="foot">
49
+          <div class="c7">
50
+            <div class="ft_sitemap">
51
+              <div class="sub"><a href="{% url index %}">Dashboard</a>
52
+                <ul>
53
+                  <li><a href="{% url index %}">Home</a></li>
54
+                </ul>
55
+              </div>
56
+            </div>
57
+          </div>
58
+       <div class="clr"></div>
59
+      </div>
60
+      {% block footerjs %}{% endblock %}
61
+    </div>
62
+  </body>
63
+</html>

+ 15
- 0
dashboard/templates/base-sidebar.html View File

@@ -0,0 +1,15 @@
1
+{% extends "base.html" %}
2
+
3
+{% block sidebar %}
4
+  <div id="sidebar">
5
+    <ul id="navigation">
6
+      {% block nav_home %}
7
+      <li><h3><a href="/">Home</a></h3></li>
8
+      {% endblock %}
9
+
10
+      {% block nav_projects %}
11
+      <li><h3><a href="/">Projects</a></h3></li>
12
+      {% endblock %}
13
+   </ul>
14
+  </div> <!-- end sidebar -->
15
+{% endblock %}

+ 5
- 0
dashboard/templates/base.html View File

@@ -0,0 +1,5 @@
1
+{% extends "base-root.html" %}
2
+
3
+{% block rootcontent %}
4
+{% block content %}{% endblock %}
5
+{% endblock %}

+ 56
- 0
dashboard/templates/index.html View File

@@ -0,0 +1,56 @@
1
+{% extends "base.html" %}
2
+
3
+{% block headercss %}
4
+{% endblock %}
5
+{% block pageclass %}home{% endblock %}
6
+
7
+{% block title %} - Cloud Computing{% endblock %}
8
+
9
+{% block content %}
10
+  <div id="page_head">
11
+    <h2>Welcome to the Openstack Dashboard</h2>
12
+    <p>Lorem ipsum oblique praesent theophrastus ut eos. No altera eirmod
13
+       graecis ius. Pri mucius salutandi at, usu admodum neglegentur ad.
14
+       In qui propriae fabellas comprehensam.
15
+       {% if not request.user.is_authenticated %}
16
+       <a id="lnk_register" href="{% url registration_register %}">Register</a>
17
+       {% endif %}
18
+    </p>
19
+  </div>
20
+
21
+  {% if request.user.is_authenticated %}
22
+  <div id="projects" class="block">
23
+    <h3>Your Projects</h3>
24
+    <ul>
25
+      {% for project in projects %}
26
+      <li class="project {% cycle 'odd' 'even' %}">
27
+        <a id="lnk_project_{{ project.projectname }}" href="{% url nova_project project.projectname %}">
28
+          {{ project.projectname|capfirst }}
29
+          <span class="data">{{ project.description|capfirst }}</span>
30
+        </a>
31
+      </li>
32
+      {% endfor %}
33
+    </ul>
34
+  </div>
35
+  {% else %}
36
+  <div id="home_login" class="block">
37
+    <h3>Sign In</h3>
38
+    <form action="{% url auth_login %}" method="post">
39
+      {% csrf_token %}
40
+      <fieldset>
41
+        {% if form.errors %}
42
+        <p class="error">Your username and password didn't match. Please try again.</p>
43
+        {% endif %}
44
+        <label for="username">Username:</label><input id="username" type="text" name="username" />
45
+        <label for="password">Password:</label><input id="password" type="password" name="password" />
46
+        <input type="hidden" name="next" value="/" />
47
+        <div class="button">
48
+          <input id="home_login_btn" type="submit" value="Sign In">
49
+          <span id="forgot_password">or <a id="forgot_password_link" href="{% url auth_password_reset %}">Forgot Password?</a></span>
50
+        </div>
51
+      </fieldset>
52
+    </form>
53
+ </div>
54
+  {% endif %}
55
+{% endblock %}
56
+

+ 11
- 0
dashboard/templates/permission_denied.html View File

@@ -0,0 +1,11 @@
1
+{% extends "dashboard/base.html" %}
2
+
3
+{% block title %} - Permission Denied{% endblock %}
4
+{% block pageclass %}denied{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2 id="page_heading">Permission Denied</h2>
9
+    <p id="page_description">You do not have permission to view the requested page.</p>
10
+  </div>
11
+{% endblock %}

+ 34
- 0
dashboard/templates/registration/activate.html View File

@@ -0,0 +1,34 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Account Activation{% endblock %}
5
+
6
+{% block content %}
7
+{% if account %}
8
+  <div id="page_head">
9
+    <h2>Activation successful</h2>
10
+  </div>
11
+
12
+  <div class="ui-state-highlight ui-corner-all success">
13
+    <span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
14
+    <p>
15
+      <span class="ui-icon ui-icon-check"></span>
16
+      Your account has been successfully activated.
17
+    </p>
18
+  </div>
19
+  <p>
20
+    You may now <a id="lnk_login" href="{% url auth_login %}">log in</a> to your account.
21
+  </p>
22
+{% else %}
23
+  <div id="page_head">
24
+    <h2>Activation failed</h2>
25
+  </div>
26
+
27
+  <p>
28
+    We are unable to activate your account at this time. It is possible that the activation
29
+    period for your account has expired. Please register your account again, or contact the
30
+    site administrator for help resolving this issue.
31
+  </p>
32
+{% endif %}
33
+{% endblock %}
34
+

+ 21
- 0
dashboard/templates/registration/activation_email.txt View File

@@ -0,0 +1,21 @@
1
+{% autoescape off %}
2
+Welcome to the NASA Nebula Dashboard!
3
+
4
+
5
+This message contains information about how to activate your NASA Nebula Dashboard account.
6
+
7
+
8
+The NASA Nebula Dashboard is a web based management system that enables to easily manage your Nebula projects and instances.
9
+
10
+
11
+PLEASE NOTE: Before you can access your Dashboard account, you must first be connected to your Nebula OpenVPN account.  You should receive another message soon with instructions on how to connect to your VPN.
12
+
13
+
14
+When you're ready, connect to your Nebula OpenVPN and visit the following link to activate your account:
15
+
16
+    http://{{ site.domain }}/accounts/activate/{{ activation_key }}
17
+
18
+Please note that this invitation will expire in {{ expiration_days }} days.  After that time, you will need to contact your Nebula account manager for another invitation.
19
+
20
+The Nebula Team
21
+{% endautoescape %}

+ 1
- 0
dashboard/templates/registration/activation_email_subject.txt View File

@@ -0,0 +1 @@
1
+Welcome to the NASA Nebula Dashboard!

+ 36
- 0
dashboard/templates/registration/login.html View File

@@ -0,0 +1,36 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block headerjs %}
5
+{% endblock %}
6
+
7
+{% block sidebar %}
8
+{% endblock %}
9
+
10
+{% block pageclass %}login{% endblock %}
11
+
12
+{% block content %}
13
+<div id="page_head">
14
+  <h2>Sign in to your Nebula Dashboard</h2>
15
+</div>
16
+
17
+<div id="home_login" class="block">
18
+  <h3>Sign In</h3>
19
+
20
+  <form action="{% url auth_login %}" method="post">
21
+    {% csrf_token %}
22
+    <fieldset>
23
+      {% if form.errors %}
24
+      <p class="error">Your username and password didn't match. Please try again.</p>
25
+      {% endif %}
26
+      <input type="hidden" name="next" value="{{ next }}" />
27
+      {{ form.username.label_tag }}{{ form.username }}
28
+      {{ form.password.label_tag }}{{ form.password }}
29
+      <div class="button">
30
+        <input type="submit" value="Sign In">
31
+        <span id="forgot_password">or <a href="{% url auth_password_reset %}">Forgot Password?</a></span>
32
+      </div>
33
+    </fieldset>
34
+  </form>
35
+</div>
36
+{% endblock %}

+ 14
- 0
dashboard/templates/registration/logout.html View File

@@ -0,0 +1,14 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Signed Out{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Signed out</h2>
9
+  </div>
10
+
11
+  <p>
12
+    You have successfully signed out of your account.
13
+  </p>
14
+{% endblock %}

+ 18
- 0
dashboard/templates/registration/password_change_done.html View File

@@ -0,0 +1,18 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Change Password{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Change Password</h2>
9
+  </div>
10
+
11
+  <div class="ui-state-highlight ui-corner-all success">
12
+   <span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
13
+   <p>
14
+      <span class="ui-icon ui-icon-check"></span>
15
+      Your password has been successfully changed.
16
+    </p>
17
+  </div>
18
+{% endblock %}

+ 23
- 0
dashboard/templates/registration/password_change_form.html View File

@@ -0,0 +1,23 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Change Password{% endblock %}
5
+
6
+{% block content %}
7
+
8
+<div id="page_head">
9
+  <h1>Change Password</h1>
10
+  <p id="page_description">To change your password, complete the form below.</p>
11
+</div>
12
+
13
+<div id="home_login" class="block reset">
14
+  <h3>Change Password</h3>
15
+  <form action="" method="post">
16
+    <fieldset>
17
+      {% csrf_token %}
18
+      {{ form.as_p }}
19
+      <input id="bnt_set_password" type="submit" value="Set my password" />
20
+    </fieldset>
21
+  </form>
22
+</div>
23
+{% endblock %}

+ 19
- 0
dashboard/templates/registration/password_reset_complete.html View File

@@ -0,0 +1,19 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Reset Password{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Password reset complete</h2>
9
+  </div>
10
+
11
+  <div class="ui-state-highlight ui-corner-all success">
12
+   <span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
13
+   <p>
14
+      <span class="ui-icon ui-icon-check"></span>
15
+      Your password has been reset. You can now <a href="/accounts/login">login</a>.
16
+    </p>
17
+  </div>
18
+
19
+{% endblock %}

+ 26
- 0
dashboard/templates/registration/password_reset_confirm.html View File

@@ -0,0 +1,26 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Reset Password{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Change your password below.</h2>
9
+    <p id="page_description">To complete the reset of your password, fill out the form below.</p>
10
+  </div>
11
+
12
+  <div id="home_login" class="block reset">
13
+    <h3>Reset Password</h3>
14
+    <form action="" method="post">
15
+      <fieldset>
16
+        {% csrf_token %}
17
+        {{ form.new_password1.errors }}
18
+        <label for="id_new_password1">New Password:</label>{{form.new_password1 }}
19
+
20
+        {{ form.new_password2.errors }}
21
+        <label for="id_new_password2">Confirm Password:</label>{{ form.new_password2 }}
22
+        <input id="bnt_set_password" type="submit" value="Set my password" />
23
+      </fieldset>
24
+    </form>
25
+  </div>
26
+{% endblock %}

+ 17
- 0
dashboard/templates/registration/password_reset_done.html View File

@@ -0,0 +1,17 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Password Reset{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Password reset initiated</h2>
9
+  </div>
10
+  <div class="ui-state-highlight ui-corner-all success">
11
+   <span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
12
+   <p>
13
+      <span class="ui-icon ui-icon-check"></span>
14
+      We've emailed you instructions for resetting your password.
15
+    </p>
16
+  </div>
17
+{% endblock %}

+ 13
- 0
dashboard/templates/registration/password_reset_email.html View File

@@ -0,0 +1,13 @@
1
+{% load i18n %}{% autoescape off %}
2
+You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.
3
+
4
+Please sign in to your Nebula VPN and go to the following page and choose a new password:
5
+{% block reset_link %}
6
+{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid token=token %}
7
+{% endblock %}
8
+Your user name, in case you've forgotten: {{ user.username }}
9
+
10
+Thanks for using our site!
11
+
12
+The Nebula Team
13
+{% endautoescape %}

+ 23
- 0
dashboard/templates/registration/password_reset_form.html View File

@@ -0,0 +1,23 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Reset Password{% endblock %}
5
+
6
+{% block content %}
7
+
8
+<div id="page_head">
9
+  <h1>Reset Password</h1>
10
+  <p id="page_description">Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one.</p>
11
+</div>
12
+
13
+<div id="home_login" class="block reset">
14
+  <h3>Reset Password</h3>
15
+  <form action="" method="post">
16
+    <fieldset>
17
+      {% csrf_token %}
18
+      {{ form.email.errors }}
19
+      <p><label for="id_email">E-mail address:</label> {{ form.email }} <input id="btn_reset_password" type="submit" value="Reset Password" /></p>
20
+    </fieldset>
21
+  </form>
22
+</div>
23
+{% endblock %}

+ 22
- 0
dashboard/templates/registration/registration_complete.html View File

@@ -0,0 +1,22 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Registration Complete{% endblock %}
5
+
6
+{% block content %}
7
+  <div id="page_head">
8
+    <h2>Registration complete</h2>
9
+  </div>
10
+
11
+  <div class="ui-state-highlight ui-corner-all success">
12
+    <span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
13
+    <p>
14
+      <span class="ui-icon ui-icon-check"></span>
15
+      Your account has been created.
16
+    </p>
17
+  </div>
18
+  <p>
19
+    Soon you will receive instructions for activating your account in your inbox.
20
+    Please follow the activation link provided in the message to complete your registration.
21
+  </p>
22
+{% endblock %}

+ 29
- 0
dashboard/templates/registration/registration_form.html View File

@@ -0,0 +1,29 @@
1
+{% extends "base.html" %}
2
+{% block region %}{% endblock %}
3
+
4
+{% block title %}Register{% endblock %}
5
+
6
+{% block content %}
7
+<div id="page_head">
8
+  <h1>Create Your Account</h1>
9
+  <p id="page_description">Create your new account by providing the information blow.</p>
10
+</div>
11
+
12
+<div id="home_login" class="block reset">
13
+  <h3>Register</h3>
14
+  <form action="" method="post">
15
+    <fieldset>
16
+      {% csrf_token %}
17
+      {{ form.username.errors }}
18
+      <label for="id_username">Username:</label> {{ form.username }}
19
+      {{ form.email.errors }}
20
+      <label for="id_email">E-mail address:</label> {{ form.email }}
21
+      {{ form.password1.errors }}
22
+      <label for="id_password1">Password:</label> {{ form.password1 }}
23
+      {{ form.password2.errors }}
24
+      <label for="id_password2">Confirm Password:</label> {{ form.password2 }}
25
+      <input id="btn_reset_password" type="submit" value="Reset Password" />
26
+    </fieldset>
27
+  </form>
28
+</div>
29
+{% endblock %}

+ 57
- 0
dashboard/urls.py View File

@@ -0,0 +1,57 @@
1
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
+
3
+# Copyright 2010 United States Government as represented by the
4
+# Administrator of the National Aeronautics and Space Administration.
5
+# All Rights Reserved.
6
+#
7
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
8
+#    not use this file except in compliance with the License. You may obtain
9
+#    a copy of the License at
10
+#
11
+#         http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+#    Unless required by applicable law or agreed to in writing, software
14
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
+#    License for the specific language governing permissions and limitations
17
+#    under the License.
18
+
19
+"""
20
+URL patterns for the OpenStack Dashboard.
21
+"""
22
+
23
+from django.conf.urls.defaults import *
24
+from django.conf import settings
25
+from django.contrib import admin
26
+from registration import forms as reg_forms
27
+
28
+
29
+admin.autodiscover()
30
+
31
+urlpatterns = patterns('',
32
+    url(r'^$', 'dashboard.views.index', name='index'),
33
+    url(r'^accounts/register/$',
34
+        'registration.views.register',
35
+        { 'form_class': reg_forms.RegistrationFormUniqueEmail },
36
+        name='registration_register'),
37
+    url(r'^accounts/', include('registration.urls')),
38
+    url(r'^project/', include('django_nova.urls.project')),
39
+    url(r'^region/', include('django_nova.urls.region')),
40
+    url(r'^admin/project/', include('django_nova.urls.admin_project')),
41
+    url(r'^admin/roles/', include('django_nova.urls.admin_roles')),
42
+    url(r'^admin/', include(admin.site.urls)),
43
+)
44
+
45
+urlpatterns += patterns('django.views.generic.simple',
46
+   url(r'^denied/$',
47
+        'direct_to_template',
48
+        {'template': 'permission_denied.html'},
49
+        name='dashboard_permission_denied'),
50
+)
51
+
52
+urlpatterns += patterns('',
53
+     (r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
54
+      'django.views.static.serve',
55
+      {'document_root': settings.MEDIA_ROOT,
56
+       'show_indexes': True}),
57
+ )

+ 39
- 0
dashboard/views.py View File

@@ -0,0 +1,39 @@
1
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
+
3
+# Copyright 2010 United States Government as represented by the
4
+# Administrator of the National Aeronautics and Space Administration.
5
+# All Rights Reserved.
6
+#
7
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
8
+#    not use this file except in compliance with the License. You may obtain
9
+#    a copy of the License at
10
+#
11
+#         http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+#    Unless required by applicable law or agreed to in writing, software
14
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
+#    License for the specific language governing permissions and limitations
17
+#    under the License.
18
+
19
+"""
20
+Views for home page.
21
+"""
22
+
23
+from django import template
24
+from django.shortcuts import render_to_response
25
+from django.views.decorators.vary import vary_on_cookie
26
+from django_nova.shortcuts import get_projects
27
+
28
+
29
+@vary_on_cookie
30
+def index(request):
31
+    projects = None
32
+    page_type = "home"
33
+    if request.user.is_authenticated():
34
+        projects = get_projects(user=request.user)
35
+
36
+    return render_to_response('index.html', {
37
+        'projects': projects,
38
+        'page_type': page_type,
39
+    }, context_instance = template.RequestContext(request))

+ 29
- 0
dashboard/wsgi/django.wsgi View File

@@ -0,0 +1,29 @@
1
+import logging
2
+import os
3
+import sys
4
+import django.core.handlers.wsgi
5
+from django.conf import settings
6
+
7
+os.environ['DJANGO_SETTINGS_MODULE'] = 'dashboard.settings'
8
+sys.stdout = sys.stderr
9
+
10
+DEBUG = False
11
+
12
+class WSGIRequest(django.core.handlers.wsgi.WSGIRequest):
13
+    def is_secure(self):
14
+        value = self.META.get('wsgi.url_scheme', '').lower()
15
+        if value == 'https':
16
+            return True
17
+        return False
18
+
19
+class WSGIHandler(django.core.handlers.wsgi.WSGIHandler):
20
+    request_class = WSGIRequest
21
+
22
+_application = WSGIHandler()
23
+
24
+def application(environ, start_response):
25
+    environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
26
+    environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME', 'http')
27
+
28
+    return _application(environ, start_response)
29
+

+ 0
- 0
local/__init__.py View File


+ 22
- 0
local/local_settings.py.example View File

@@ -0,0 +1,22 @@
1
+import os
2
+
3
+DEBUG = True
4
+TEMPLATE_DEBUG = DEBUG
5
+PROD = False
6
+USE_SSL = False
7
+
8
+LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
9
+DATABASES = {
10
+    'default': {
11
+        'ENGINE': 'django.db.backends.sqlite3',
12
+        'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack'),
13
+    },
14
+}
15
+
16
+CACHE_BACKEND = 'dummy://'
17
+
18
+NOVA_DEFAULT_ENDPOINT = 'http://localhoat:8773/services/Cloud'
19
+NOVA_DEFAULT_REGION = 'nova'
20
+NOVA_ACCESS_KEY = 'admin'
21
+NOVA_SECRET_KEY = 'admin'
22
+

BIN
media/dashboard/css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png View File


BIN
media/dashboard/css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png View File


BIN
media/dashboard/css/cupertino/images/ui-icons_2694e8_256x240.png View File


BIN
media/dashboard/css/cupertino/images/ui-icons_2e83ff_256x240.png View File


BIN
media/dashboard/css/cupertino/images/ui-icons_3d80b3_256x240.png View File


BIN
media/dashboard/css/cupertino/images/ui-icons_72a7cf_256x240.png View File


BIN
media/dashboard/css/cupertino/images/ui-icons_ffffff_256x240.png View File


+ 406
- 0
media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css View File

@@ -0,0 +1,406 @@
1
+/*
2
+* jQuery UI CSS Framework
3
+* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
4
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
5
+*/
6
+
7
+/* Layout helpers
8
+----------------------------------*/
9
+.ui-helper-hidden { display: none; }
10
+.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
11
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
12
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
13
+.ui-helper-clearfix { display: inline-block; }
14
+/* required comment for clearfix to work in Opera \*/
15
+* html .ui-helper-clearfix { height:1%; }
16
+.ui-helper-clearfix { display:block; }
17
+/* end clearfix */
18
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
19
+
20
+
21
+/* Interaction Cues
22
+----------------------------------*/
23
+.ui-state-disabled { cursor: default !important; }
24
+
25
+
26
+/* Icons
27
+----------------------------------*/
28
+
29
+/* states and images */
30
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
31
+
32
+
33
+/* Misc visuals
34
+----------------------------------*/
35
+
36
+/* Overlays */
37
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
38
+
39
+
40
+
41
+/*
42
+* jQuery UI CSS Framework
43
+* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
44
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
45
+* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande,%20Lucida%20Sans,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=deedf7&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=100&borderColorHeader=aed0ea&fcHeader=222222&iconColorHeader=72a7cf&bgColorContent=f2f5f7&bgTextureContent=04_highlight_hard.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=362b36&iconColorContent=72a7cf&bgColorDefault=d7ebf9&bgTextureDefault=02_glass.png&bgImgOpacityDefault=80&borderColorDefault=aed0ea&fcDefault=2779aa&iconColorDefault=3d80b3&bgColorHover=e4f1fb&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=74b2e2&fcHover=0070a3&iconColorHover=2694e8&bgColorActive=3baae3&bgTextureActive=02_glass.png&bgImgOpacityActive=50&borderColorActive=2694e8&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=ffef8f&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=25&borderColorHighlight=f9dd34&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=cd0a0a&bgTextureError=01_flat.png&bgImgOpacityError=15&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffffff&bgColorOverlay=eeeeee&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=90&opacityOverlay=80&bgColorShadow=000000&bgTextureShadow=04_highlight_hard.png&bgImgOpacityShadow=70&opacityShadow=30&thicknessShadow=7px&offsetTopShadow=-7px&offsetLeftShadow=-7px&cornerRadiusShadow=8px
46
+*/
47
+
48
+
49
+/* Component containers
50
+----------------------------------*/
51
+.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em; }
52
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1em; }
53
+.ui-widget-content { border: 1px solid #dddddd; background: #f2f5f7 url(images/ui-bg_highlight-hard_100_f2f5f7_1x100.png) 50% top repeat-x; color: #362b36; }
54
+.ui-widget-content a { color: #362b36; }
55
+.ui-widget-header { border: 1px solid #aed0ea; background: #deedf7 url(images/ui-bg_highlight-soft_100_deedf7_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
56
+.ui-widget-header a { color: #222222; }
57
+
58
+/* Interaction states
59
+----------------------------------*/
60
+.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #aed0ea; background: #d7ebf9 url(images/ui-bg_glass_80_d7ebf9_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2779aa; outline: none; }
61
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2779aa; text-decoration: none; outline: none; }
62
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #74b2e2; background: #e4f1fb url(images/ui-bg_glass_100_e4f1fb_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #0070a3; outline: none; }
63
+.ui-state-hover a, .ui-state-hover a:hover { color: #0070a3; text-decoration: none; outline: none; }
64
+.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #2694e8; background: #3baae3 url(images/ui-bg_glass_50_3baae3_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; outline: none; }
65
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; outline: none; text-decoration: none; }
66
+
67
+/* Interaction Cues
68
+----------------------------------*/
69
+.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #f9dd34; background: #ffef8f url(images/ui-bg_highlight-soft_25_ffef8f_1x100.png) 50% top repeat-x; color: #363636; }
70
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
71
+.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #cd0a0a url(images/ui-bg_flat_15_cd0a0a_40x100.png) 50% 50% repeat-x; color: #ffffff; }
72
+.ui-state-error a, .ui-widget-content .ui-state-error a { color: #ffffff; }
73
+.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #ffffff; }
74
+.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
75
+.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
76
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
77
+
78
+/* Icons
79
+----------------------------------*/
80
+
81
+/* states and images */
82
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_72a7cf_256x240.png); }
83
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
84
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
85
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_3d80b3_256x240.png); }
86
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_2694e8_256x240.png); }
87
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
88
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
89
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
90
+
91
+/* positioning */
92
+.ui-icon-carat-1-n { background-position: 0 0; }
93
+.ui-icon-carat-1-ne { background-position: -16px 0; }
94
+.ui-icon-carat-1-e { background-position: -32px 0; }
95
+.ui-icon-carat-1-se { background-position: -48px 0; }
96
+.ui-icon-carat-1-s { background-position: -64px 0; }
97
+.ui-icon-carat-1-sw { background-position: -80px 0; }
98
+.ui-icon-carat-1-w { background-position: -96px 0; }
99
+.ui-icon-carat-1-nw { background-position: -112px 0; }
100
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
101
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
102
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
103
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
104
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
105
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
106
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
107
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
108
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
109
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
110
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
111
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
112
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
113
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
114
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
115
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
116
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
117
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
118
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
119
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
120
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
121
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
122
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
123
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
124
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
125
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
126
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
127
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
128
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
129
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
130
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
131
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
132
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
133
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
134
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
135
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
136
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
137
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
138
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
139
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
140
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
141
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
142
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
143
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
144
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
145
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
146
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
147
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
148
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
149
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
150
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
151
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
152
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
153
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
154
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
155
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
156
+.ui-icon-arrow-4 { background-position: 0 -80px; }
157
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
158
+.ui-icon-extlink { background-position: -32px -80px; }
159
+.ui-icon-newwin { background-position: -48px -80px; }
160
+.ui-icon-refresh { background-position: -64px -80px; }
161
+.ui-icon-shuffle { background-position: -80px -80px; }
162
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
163
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
164
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
165
+.ui-icon-folder-open { background-position: -16px -96px; }
166
+.ui-icon-document { background-position: -32px -96px; }
167
+.ui-icon-document-b { background-position: -48px -96px; }
168
+.ui-icon-note { background-position: -64px -96px; }
169
+.ui-icon-mail-closed { background-position: -80px -96px; }
170
+.ui-icon-mail-open { background-position: -96px -96px; }
171
+.ui-icon-suitcase { background-position: -112px -96px; }
172
+.ui-icon-comment { background-position: -128px -96px; }
173
+.ui-icon-person { background-position: -144px -96px; }
174
+.ui-icon-print { background-position: -160px -96px; }
175
+.ui-icon-trash { background-position: -176px -96px; }
176
+.ui-icon-locked { background-position: -192px -96px; }
177
+.ui-icon-unlocked { background-position: -208px -96px; }
178
+.ui-icon-bookmark { background-position: -224px -96px; }
179
+.ui-icon-tag { background-position: -240px -96px; }
180
+.ui-icon-home { background-position: 0 -112px; }
181
+.ui-icon-flag { background-position: -16px -112px; }
182
+.ui-icon-calendar { background-position: -32px -112px; }
183
+.ui-icon-cart { background-position: -48px -112px; }
184
+.ui-icon-pencil { background-position: -64px -112px; }
185
+.ui-icon-clock { background-position: -80px -112px; }
186
+.ui-icon-disk { background-position: -96px -112px; }
187
+.ui-icon-calculator { background-position: -112px -112px; }
188
+.ui-icon-zoomin { background-position: -128px -112px; }
189
+.ui-icon-zoomout { background-position: -144px -112px; }
190
+.ui-icon-search { background-position: -160px -112px; }
191
+.ui-icon-wrench { background-position: -176px -112px; }
192
+.ui-icon-gear { background-position: -192px -112px; }
193
+.ui-icon-heart { background-position: -208px -112px; }
194
+.ui-icon-star { background-position: -224px -112px; }
195
+.ui-icon-link { background-position: -240px -112px; }
196
+.ui-icon-cancel { background-position: 0 -128px; }
197
+.ui-icon-plus { background-position: -16px -128px; }
198
+.ui-icon-plusthick { background-position: -32px -128px; }
199
+.ui-icon-minus { background-position: -48px -128px; }
200
+.ui-icon-minusthick { background-position: -64px -128px; }
201
+.ui-icon-close { background-position: -80px -128px; }
202
+.ui-icon-closethick { background-position: -96px -128px; }
203
+.ui-icon-key { background-position: -112px -128px; }
204
+.ui-icon-lightbulb { background-position: -128px -128px; }
205
+.ui-icon-scissors { background-position: -144px -128px; }
206
+.ui-icon-clipboard { background-position: -160px -128px; }
207
+.ui-icon-copy { background-position: -176px -128px; }
208
+.ui-icon-contact { background-position: -192px -128px; }
209
+.ui-icon-image { background-position: -208px -128px; }
210
+.ui-icon-video { background-position: -224px -128px; }
211
+.ui-icon-script { background-position: -240px -128px; }
212
+.ui-icon-alert { background-position: 0 -144px; }
213
+.ui-icon-info { background-position: -16px -144px; }
214
+.ui-icon-notice { background-position: -32px -144px; }
215
+.ui-icon-help { background-position: -48px -144px; }
216
+.ui-icon-check { background-position: -64px -144px; }
217
+.ui-icon-bullet { background-position: -80px -144px; }
218
+.ui-icon-radio-off { background-position: -96px -144px; }
219
+.ui-icon-radio-on { background-position: -112px -144px; }
220
+.ui-icon-pin-w { background-position: -128px -144px; }
221
+.ui-icon-pin-s { background-position: -144px -144px; }
222
+.ui-icon-play { background-position: 0 -160px; }
223
+.ui-icon-pause { background-position: -16px -160px; }
224
+.ui-icon-seek-next { background-position: -32px -160px; }
225
+.ui-icon-seek-prev { background-position: -48px -160px; }
226
+.ui-icon-seek-end { background-position: -64px -160px; }
227
+.ui-icon-seek-first { background-position: -80px -160px; }
228
+.ui-icon-stop { background-position: -96px -160px; }
229
+.ui-icon-eject { background-position: -112px -160px; }
230
+.ui-icon-volume-off { background-position: -128px -160px; }
231
+.ui-icon-volume-on { background-position: -144px -160px; }
232
+.ui-icon-power { background-position: 0 -176px; }
233
+.ui-icon-signal-diag { background-position: -16px -176px; }
234
+.ui-icon-signal { background-position: -32px -176px; }
235
+.ui-icon-battery-0 { background-position: -48px -176px; }
236
+.ui-icon-battery-1 { background-position: -64px -176px; }
237
+.ui-icon-battery-2 { background-position: -80px -176px; }
238
+.ui-icon-battery-3 { background-position: -96px -176px; }
239
+.ui-icon-circle-plus { background-position: 0 -192px; }
240
+.ui-icon-circle-minus { background-position: -16px -192px; }
241
+.ui-icon-circle-close { background-position: -32px -192px; }
242
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
243
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
244
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
245
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
246
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
247
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
248
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
249
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
250
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
251
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
252
+.ui-icon-circle-check { background-position: -208px -192px; }
253
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
254
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
255
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
256
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
257
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
258
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
259
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
260
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
261
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
262
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
263
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
264
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
265
+
266
+
267
+/* Misc visuals
268
+----------------------------------*/
269
+
270
+/* Corner radius */
271
+.ui-corner-tl { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; }
272
+.ui-corner-tr { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; }
273
+.ui-corner-bl { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; }
274
+.ui-corner-br { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; }
275
+.ui-corner-top { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; }
276
+.ui-corner-bottom { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; }
277
+.ui-corner-right {  -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; }
278
+.ui-corner-left { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; }
279
+.ui-corner-all { -moz-border-radius: 6px; -webkit-border-radius: 6px; }
280
+
281
+/* Overlays */
282
+.ui-widget-overlay { background: #eeeeee url(images/ui-bg_diagonals-thick_90_eeeeee_40x40.png) 50% 50% repeat; opacity: .80;filter:Alpha(Opacity=80); }
283
+.ui-widget-shadow { margin: -7px 0 0 -7px; padding: 7px; background: #000000 url(images/ui-bg_highlight-hard_70_000000_1x100.png) 50% top repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Accordion
284
+----------------------------------*/
285
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
286
+.ui-accordion .ui-accordion-li-fix { display: inline; }
287
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
288
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; }
289
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
290
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; }
291
+.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker
292
+----------------------------------*/
293
+.ui-datepicker { width: 17em; padding: .2em .2em 0; }
294
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
295
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
296
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
297
+.ui-datepicker .ui-datepicker-prev { left:2px; }
298
+.ui-datepicker .ui-datepicker-next { right:2px; }
299
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
300
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
301
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
302
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
303
+.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; }
304
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
305
+.ui-datepicker select.ui-datepicker-month, 
306
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
307
+.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; }
308
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
309
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
310
+.ui-datepicker td { border: 0; padding: 1px; }
311
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
312
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
313
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
314
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
315
+
316
+/* with multiple calendars */
317
+.ui-datepicker.ui-datepicker-multi { width:auto; }
318
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
319
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
320
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
321
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
322
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
323
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
324
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
325
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
326
+.ui-datepicker-row-break { clear:both; width:100%; }
327
+
328
+/* RTL support */
329
+.ui-datepicker-rtl { direction: rtl; }
330
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
331
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
332
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
333
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
334
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
335
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
336
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
337
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
338
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
339
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
340
+
341
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
342
+.ui-datepicker-cover {
343
+    display: none; /*sorry for IE5*/
344
+    display/**/: block; /*sorry for IE5*/
345
+    position: absolute; /*must have*/
346
+    z-index: -1; /*must have*/
347
+    filter: mask(); /*must have*/
348
+    top: -4px; /*must have*/
349
+    left: -4px; /*must have*/
350
+    width: 200px; /*must have*/
351
+    height: 200px; /*must have*/
352
+}/* Dialog
353
+----------------------------------*/
354
+.ui-dialog { position: relative; padding: .2em; width: 300px; }
355
+.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative;  }
356
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; } 
357
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
358
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
359
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
360
+.ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
361
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
362
+.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; }
363
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
364
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
365
+/* Progressbar
366
+----------------------------------*/
367
+.ui-progressbar { height:2em; text-align: left; }
368
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable
369
+----------------------------------*/
370
+.ui-resizable { position: relative;}
371
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
372
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
373
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; }
374
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; }
375
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; }
376
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; }
377
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
378
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
379
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
380
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Slider
381
+----------------------------------*/
382
+.ui-slider { position: relative; text-align: left; }
383
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
384
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; }
385
+
386
+.ui-slider-horizontal { height: .8em; }
387
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
388
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
389
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
390
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
391
+
392
+.ui-slider-vertical { width: .8em; height: 100px; }
393
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
394
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
395
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
396
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs
397
+----------------------------------*/
398
+.ui-tabs { padding: .2em; zoom: 1; }
399
+.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; }
400
+.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; }
401
+.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; }
402
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
403
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
404
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
405
+.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; }
406
+.ui-tabs .ui-tabs-hide { display: none !important; }

+ 749
- 0
media/dashboard/css/dashboard.css View File

@@ -0,0 +1,749 @@
1
+#head{height:115px;margin-top:5px}.logo{background:url(/media/dashboard/img/home_head_logo.png) no-repeat left;float:left;height:85px;width:550px}.nav{float:right}.sub_nav {background:url(/media/dashboard/img/nav_highlight.png) no-repeat 6px bottom;float:right;height:30px;}.sub_nav a {display:block;float:left;height:20px;margin-top:4px;}
2
+.nav {
3
+    padding-top:1px;
4
+}
5
+.nav a {
6
+    background:url(/media/dashboard/img/home-head-nav.png) no-repeat 0 0;
7
+    display:block;
8
+    float:left;
9
+    height:84px;
10
+    width:78px
11
+}
12
+.account a, .nav a {
13
+    color:#fff;font-weight:normal;
14
+}
15
+.account {
16
+    float:right;height:62px;width:390px;
17
+}
18
+.account a {
19
+    display:block;float:right;font-size:.9em;margin:12px 0;padding:8px;
20
+}
21
+#content {
22
+    padding:15px 0 10px;
23
+}
24
+.page_title {
25
+    padding-bottom:5px;
26
+}
27
+
28
+table {
29
+    width: 100%; margin-bottom: 25px
30
+}
31
+th {
32
+    background: #333; color: white; padding: 4px 8px; font-size: 1.2em;
33
+}
34
+td {
35
+    padding: 4px 8px;
36
+}
37
+.odd {
38
+    background: #adf;
39
+}
40
+.section {
41
+    background: #333; color: white; padding: 4px 8px; font-size: 1.5em
42
+}
43
+
44
+/* __ */ 
45
+
46
+#bread_crumbs {
47
+	background: #2d2d2d;
48
+	float: left;
49
+	width: 920px;
50
+	color: #989898;
51
+	border-top: 1px solid #000;
52
+	margin-left: 10px;
53
+	padding: 0 5px 0 15px;
54
+}
55
+
56
+#bread_crumbs ul {
57
+	float: left;
58
+	margin: 0;
59
+	padding: 0;
60
+}
61
+#bread_crumbs ul li {
62
+	float: left;
63
+	margin-right: 10px;
64
+	list-style: none;
65
+}
66
+
67
+#bread_crumbs ul li a {
68
+	background: url(/media/dashboard/img/bread_crumb.gif) top right no-repeat;
69
+	display: block;
70
+	color: #ccc;
71
+	padding-top: 5px;
72
+	padding-bottom: 5px;
73
+	padding-right: 25px;
74
+}
75
+
76
+#bread_crumbs ul li a:hover {
77
+	color: #fff;
78
+}
79
+
80
+ul#links {
81
+	list-style: none;
82
+	margin: 0;
83
+	float: left;
84
+}
85
+
86
+#home_login {
87
+	width: 445px;
88
+}
89
+
90
+#home_login fieldset {
91
+	margin: 0;
92
+}
93
+
94
+#home_login #error {
95
+	color: #fff;
96
+	font-size: 14px;
97
+	background: rgba(255,0,0,0.51);
98
+	padding: 5px;
99
+	display: block;
100
+	text-align: center;
101
+	border-top: 1px solid rgba(255,0,0,0.47);
102
+	border-bottom: 1px solid rgba(255,0,0,0.47);
103
+}
104
+
105
+
106
+#home_login label {
107
+	display: block;
108
+	float: none;
109
+	padding: 0;
110
+	margin: 0 0 5px;
111
+	width: auto;
112
+	text-align: left;
113
+}
114
+
115
+#home_login fieldset {
116
+	background: 0;
117
+	padding: 20px;
118
+}
119
+
120
+#home_login input {
121
+	height: 25px;
122
+	font-size: 20px;
123
+	margin-bottom: 20px;
124
+	width: 100%;
125
+}
126
+#home_login input[type="submit"] {
127
+	height: 31px;
128
+	background: url(/media/dashboard/img/login_btn.png) top left repeat-x;
129
+	border: 1px solid #206cb5;
130
+	float: left;
131
+	margin: 0 10px 0 0;
132
+	-webkit-border-radius: 3px;
133
+	-moz-border-radius: 3px;
134
+	-border-radius: 3px;
135
+	color: #fff;
136
+	font-weight: bold;
137
+	width: 121px;
138
+	font-size: 18px;
139
+	text-shadow: #06416e -1px -1px 2px;
140
+	cursor: pointer;
141
+	clear: both;
142
+}
143
+
144
+#home_login input[type="submit"]:hover {
145
+	background-position: center left;
146
+}
147
+
148
+#home_login input[type="submit"]:active {
149
+	background-position: bottom left;
150
+}
151
+
152
+#home_login div {
153
+	float: right;
154
+	width: 125px;
155
+	margin-right: 0;
156
+	margin-left: 0;
157
+	margin-bottom: 0;
158
+}
159
+
160
+#home_login div a {
161
+	margin: 0;
162
+	padding: 0;
163
+	color: rgba(255,0,4,0.75) !important;
164
+	display: inline;
165
+}
166
+#home_login div a:hover {
167
+	color: rgba(255,0,4,1) !important;
168
+
169
+}
170
+
171
+#tab_content {
172
+	float: left;
173
+	margin-left: 25px;
174
+	width: 538px;
175
+}
176
+
177
+.block {
178
+	float: left;
179
+	width: 254px;
180
+	margin-right: 30px;
181
+	background-color: #dff2ff;
182
+	border: 1px solid #b1e7ff;
183
+}
184
+
185
+#last.block {
186
+	margin-right: 0;
187
+}
188
+
189
+.block ul {
190
+	list-style: none;
191
+	padding: 0;
192
+	margin: 0;
193
+}
194
+
195
+.block ul li.odd {
196
+	background: #d2edff;
197
+}
198
+.block ul li {
199
+	border-bottom: 1px solid #ccc;
200
+}
201
+
202
+.block ul li.last {
203
+	border: navajowhite;
204
+}
205
+
206
+.block a {
207
+	font-size: 12px;
208
+	display: block;
209
+	padding-bottom: 10px;
210
+	padding-top: 10px;
211
+	padding-left: 10px;
212
+	color: #0a4a7a !important;
213
+}
214
+
215
+#tab_content.home {
216
+	margin-left: 0;
217
+	width: 888px;
218
+	float: left;
219
+}
220
+#projects {
221
+	float: left;
222
+	margin: 0 20px 0 0;
223
+	width: 456px;
224
+	
225
+}
226
+#projects li {
227
+	border-bottom: 1px solid #bce3ff;
228
+}
229
+
230
+#projects a	{
231
+	display: block;
232
+	background: url(/media/dashboard/img/server_icon.png) no-repeat 13px 9px;
233
+	font-size: 14px;
234
+	padding-left: 58px;
235
+	height: 35px;
236
+	padding-top: 5px;
237
+	padding-bottom: 5px;
238
+	z-index: 100;
239
+	text-shadow: #000000 0 0 0;
240
+}
241
+
242
+#projects a:hover {
243
+	color: #fff;
244
+	background-color: #b8e1ff;
245
+	text-decoration: none;
246
+}
247
+
248
+#projects a:active {
249
+	background-color: #30a9ff;
250
+}
251
+
252
+span.data {
253
+	color: #0d66a9;
254
+	font-size: 11px;
255
+	display: block;
256
+}
257
+
258
+#dashboard_nav {
259
+	float: left;
260
+	list-style: none;
261
+	margin: 0;
262
+	width: 154px;
263
+	height: 400px;
264
+}
265
+
266
+#dashboard_nav a {
267
+	background: url(/media/dashboard/img/nav_bg.png) top left repeat-x;
268
+	display: block;
269
+	height: 16px;
270
+	color: #666;
271
+	padding: 7px;
272
+	width: 140px;
273
+	margin-bottom: 0;
274
+}
275
+
276
+#dashboard_nav li.active {
277
+	width: 155px;
278
+}
279
+
280
+#dashboard_nav li.active a {
281
+	background: #f2f5f7;
282
+	width: 141px;
283
+	border-bottom: 1px solid #333;
284
+}
285
+
286
+#dashboard_nav a:hover{
287
+	background-position: bottom left;
288
+}
289
+
290
+#right_content {
291
+	float: left;
292
+	width: 743px;
293
+	padding: 20px;
294
+}
295
+
296
+#welcome {
297
+	float: left;
298
+	width: 350px;
299
+	margin-right: 20px;
300
+}
301
+
302
+ul#content_nav {
303
+	margin: 0 0 20px;
304
+	list-style: none;
305
+	float: left;
306
+}
307
+
308
+ul#content_nav li {
309
+	background: #444 ;
310
+	float: left;
311
+	margin-right: 10px;
312
+	-webkit-border-radius: 5px;
313
+	-moz-border-radius: 3px;
314
+	-border-radius: 3px;
315
+	margin-bottom: 15px;
316
+	width: 847px;
317
+	padding: 1px 20px 0;
318
+}
319
+
320
+ul#content_nav li:hover {
321
+	opacity: 0.9;
322
+}
323
+
324
+ul#content_nav a {
325
+	font-weight: normal;
326
+	height: 50px;
327
+}
328
+
329
+ul#content_nav a:hover {
330
+	color: #fff;
331
+}
332
+
333
+ul#content_nav li a span {
334
+	font-size: 24px;
335
+	font-weight: bold;
336
+	display: block;
337
+}
338
+
339
+a#lnk_board {
340
+	background: url(/media/dashboard/img/chat_icon.png) no-repeat 0 12px;
341
+	display: block;
342
+	height: 18px;
343
+	color: #e5e5e5;
344
+	text-shadow: #595959 0 1px 2px;
345
+	padding: 7px 7px 7px 51px;
346
+	text-decoration: none;
347
+	float: left;
348
+	width: 809px;
349
+}
350
+
351
+a#lnk_wiki {
352
+	background: url(/media/dashboard/img/book_icon.png) no-repeat 0 12px;
353
+	display: block;
354
+	height: 18px;
355
+	width: 809px;
356
+	color: #e5e5e5;
357
+	padding: 7px 7px 7px 50px;
358
+	text-decoration: none;
359
+	text-shadow: #595959 0 1px 2px;
360
+	float: left;
361
+
362
+}
363
+
364
+#home_resources {
365
+	float: left;
366
+	width: 408px;
367
+	margin: 0;
368
+}
369
+
370
+#right_content form {
371
+	float: left;
372
+}
373
+
374
+#right_content .block {
375
+	width: 341px;
376
+}
377
+
378
+#right_content label {
379
+	text-align: left;
380
+	margin: 10px 0 5px;
381
+	font-size: 14px;
382
+	text-shadow: #fff 0 1px 2px;
383
+}
384
+
385
+#right_content fieldset {
386
+	padding: 20px;
387
+	margin: 0;
388
+}
389
+
390
+#right_content .block h2 {
391
+	margin: 0 0 5px;
392
+}
393
+
394
+#right_content form input {
395
+	width: 90%;
396
+	padding: 7px;
397
+	height: 15px;
398
+	margin-bottom: 10px;
399
+}
400
+
401
+
402
+.block.last {
403
+	margin-right: 0;
404
+}
405
+
406
+.ui-widget-content{
407
+	background-image: none !important;
408
+}
409
+
410
+.dash-wrap {
411
+	background: url(/media/dashboard/img/content_bg.gif) repeat-y 0 0 !important;	
412
+}
413
+
414
+#right_content th, #radar th, fieldset h3, .block h3 {
415
+	background: #1b1b1b url(/media/dashboard/img/table_header_bg.png) repeat-x top left;
416
+	border: 1px solid #6e6e6e;
417
+	text-shadow: #4f4f4f 0 1px 2px;
418
+	color: #ebebeb;
419
+	font-size: 14px;
420
+	height: 22px;
421
+}
422
+
423
+#tab_content.home .block h3 {
424
+	margin: 0;
425
+	height: 22px;
426
+}
427
+
428
+.block h3 {
429
+	margin: 0;
430
+	padding-left: 10px;
431
+	padding-top: 5px;
432
+}
433
+
434
+.block fieldset h3 {
435
+	padding-top: 5px;
436
+	padding-left: 10px;
437
+	margin: -20px -20px 10px;
438
+	height: 17px;
439
+}
440
+
441
+fieldset h3 {
442
+	margin-top: -20px;
443
+	margin-left: -20px;
444
+	padding: 7px 0 5px 8px;
445
+	height: 17px;
446
+	margin-right: -20px;
447
+}
448
+
449
+
450
+#right_content tr.odd, #radar tr.odd {
451
+	background: #dff2ff;
452
+}
453
+
454
+#right_content tr.even, #radar tr.even {
455
+	background: #f1f9ff;
456
+}
457
+
458
+#right_content tr.even td.odd, #radar tr.even td.odd {
459
+	background: #e9f5ff;
460
+}
461
+
462
+#right_content tr.odd td.odd, #radar tr.odd td.odd {
463
+	background: #cceaff;
464
+}
465
+
466
+#right_content table form#instances {
467
+	margin-right: -27px;
468
+}
469
+
470
+#right_content table form.volume {
471
+	margin-right: -50px;
472
+}
473
+
474
+#right_content table form {
475
+	margin-right: -18px;
476
+}
477
+
478
+#right_content input[type="submit"], a.ui-state-default {
479
+	height: 35px;
480
+	width: auto;
481
+	float: right;
482
+	cursor: pointer;
483
+	margin: 0 4px 0 0;
484
+}
485
+
486
+#right_content input[type="submit"]:hover, a.ui-state-default:hover {
487
+	background: url(/media/dashboard/css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png);
488
+	text-decoration: none;
489
+}
490
+
491
+#right_content input[type="submit"]:active, a.ui-state-default:active {
492
+	background-color: #c2ecff;
493
+}
494
+
495
+#right_content fieldset input {
496
+	margin-bottom: 10px;
497
+	margin-right: 0;
498
+	width: 279px;
499
+}
500
+
501
+a.ui-state-default {
502
+	padding: 8px;
503
+	height: 18px;
504
+	margin-left: -23px;
505
+}
506
+
507
+#page_head h2, .page_title h2{
508
+	background: url(/media/dashboard/img/page_header.png) repeat-x top left;
509
+	color: #fff;
510
+	font-size: 24px;
511
+	padding: 8px 20px;
512
+	text-shadow: #00294d -1px 0 2px;
513
+	margin-top: -10px;
514
+	-webkit-border-radius: 5px;
515
+	-moz-border-radius: 5px;
516
+	-border-radius: 5px;
517
+}
518
+
519
+#page_head p{
520
+	color: #636363;
521
+}
522
+
523
+.home #page_head h2{
524
+	margin-top: 0px !important;
525
+}
526
+
527
+#spinner {
528
+	background: url(/media/dashboard/img/spinner.gif) no-repeat;
529
+	float: right;
530
+	width: 24px;
531
+	height: 24px;
532
+	margin-top: 1px;
533
+	display: none;
534
+}
535
+.home #page_head p {
536
+	padding-left: 20px;
537
+	padding-right: 20px;
538
+}
539
+
540
+#resources {
541
+	float: right;
542
+	margin-right: 0;
543
+}
544
+
545
+#frm_launch label{
546
+	display: block;
547
+	float: left;
548
+	margin-top: 10px;
549
+	margin-bottom: 5px;
550
+	text-shadow: none;
551
+}
552
+
553
+#frm_launch select, #authorize select {
554
+	width: 150px;
555
+	float: left;
556
+	margin-top: 8px;
557
+}
558
+
559
+#authorize label {
560
+	width: 100%;
561
+}
562
+
563
+#frm_launch .odd, #frm_launch .even {
564
+	float: left;
565
+	width: 326px;
566
+	margin: 0 -20px;
567
+	padding: 10px;
568
+}
569
+
570
+#frm_launch .odd {
571
+	background: #def5ff}
572
+
573
+#frm_launch .even {
574
+	background: #c0e5ff;
575
+}
576
+
577
+#frm_launch textarea {
578
+	width: 98%;
579
+	margin-bottom: 5px;
580
+}
581
+
582
+#frm_launch h3 {
583
+	margin-bottom: 0;
584
+}
585
+
586
+span.image_location {
587
+	clear: both;
588
+	display: block;
589
+}
590
+
591
+.volumes form label {
592
+	width: 100%;
593
+}
594
+
595
+.volumes form select {
596
+	float: left;
597
+	width: 160px;
598
+}
599
+
600
+#right_content .errorlist {
601
+	padding: 5px;
602
+	margin-top: 0;
603
+	height: 15px;
604
+	float: left;
605
+	width: 283px;
606
+	margin-bottom: 10px;
607
+}
608
+
609
+#right_content .errorlist li {
610
+	display: block;
611
+	float: left;
612
+}
613
+
614
+#frm_launch .errorlist {
615
+	margin: 0;
616
+}
617
+
618
+.block fieldset li {
619
+	border: none;
620
+}
621
+
622
+.ui-state-highlight.success {
623
+	background: #baffd4 !important;
624
+	border: 1px solid #72df9b !important;
625
+}
626
+
627
+.ui-state-error {
628
+	background: #f99 !important;
629
+}
630
+
631
+.ft_info {
632
+	margin-top: 0 !important;
633
+}
634
+
635
+.c7 {
636
+	width: 650px;
637
+}
638
+
639
+em {
640
+	font-style: italic;
641
+	font-size: 12px;
642
+}
643
+
644
+#radar_service td{
645
+	padding: 0 !important;
646
+	margin: 0 !important;
647
+}
648
+
649
+
650
+#dlg_launch {
651
+	padding: 0;
652
+}
653
+
654
+#dlg_launch #frm_launch div {
655
+	width: 385px;
656
+}
657
+
658
+#dlg_launch #frm_launch textarea {
659
+	width: 280px;
660
+	margin-left: 95px;
661
+}
662
+
663
+#frm_launch input.ui-state-default {
664
+	margin-top: 20px !important;
665
+	margin-right: -5px !important;
666
+}
667
+
668
+.ui-widget-header {
669
+	background: #1b1b1b url(/media/dashboard/img/table_header_bg.png) top left repeat-x!important;
670
+	border: none !important;
671
+	font-weight: bold !important;
672
+	color: #fff !important;
673
+}
674
+
675
+.ui-dialog-buttonpane {
676
+	background: #c0e5ff !important;
677
+	margin: 0 !important;
678
+}
679
+
680
+form.form-terminate input {
681
+	margin-right: 15px !important;
682
+}
683
+
684
+form.form-key-delete input {
685
+	position: relative;
686
+	margin-left: 30px !important;
687
+}
688
+
689
+#image_launch a {
690
+	margin-left: -38px;
691
+}
692
+
693
+.ui-widget .close {
694
+	float: right;
695
+}
696
+
697
+p.error {
698
+	background-color: #f99;
699
+	color: white;
700
+	border: 1px solid #ff7676;
701
+	font-size: 13px;
702
+	padding: 5px;
703
+	margin-bottom: 20px;
704
+}
705
+
706
+#radar_service {
707
+	float: left;
708
+}
709
+
710
+td.radar_name a{
711
+	display: block;
712
+	height: 20px;
713
+	padding: 10px;
714
+}
715
+
716
+
717
+tr#heading {
718
+	margin-top: -20px !Important;
719
+}
720
+
721
+#service_head {
722
+	margin-top: 10px ;
723
+}
724
+#service_stats tr td{
725
+	height: 40px;
726
+}
727
+
728
+
729
+#radar_service th, #service_head th {
730
+	height: 20px !important;
731
+}
732
+
733
+#id_community_advprofile_avatar {
734
+	width: 300px;
735
+}
736
+
737
+code, pre {
738
+	background: #e1e1e1;
739
+	padding: 5px;
740
+	font-family: monospace;
741
+	font-size: 12px;
742
+	display: block;
743
+	margin-bottom: 20px;
744
+}
745
+
746
+pre code {
747
+	background: 0;
748
+	margin: 0;
749
+}

+ 217
- 0
media/dashboard/css/dashboard_sub.css View File

@@ -0,0 +1,217 @@
1
+#content {background:url(/media/dashboard/img/content_shadow.png) no-repeat center top;}
2
+.sphboard_categories  {
3
+border-collapse:collapse;
4
+width:100%;
5
+}
6
+.sphboard_categories td, .sphboard_categories th {
7
+border:1px solid gray;
8
+padding:5px;
9
+}
10
+.sphboard_categories th {
11
+white-space:nowrap;
12
+}
13
+.sphboard_threadcount, .sphboard_postcount, .sphboard_threadcount, .sphboard_viewcount {
14
+text-align:right;
15
+width:5%;
16
+}
17
+.sphboard_latestpost {
18
+width:40%;
19
+}
20
+.sphboard_postform {
21
+border:1px solid black;
22
+border-collapse:collapse;
23
+width:80%;
24
+}
25
+.sphboard_postform td, .sphboard_postform th {
26
+padding:3px;
27
+}
28
+.sphboard_postform input[type="text"], .sphboard_postform textarea {
29
+width:80%;
30
+}
31
+.sph_captcha input[type="text"] {
32
+width:100px;
33
+}
34
+.sphboard_post_list {
35
+border-collapse:collapse;
36
+width:100%;
37
+}
38
+.sphboard_post_list td, .sphboard_post_list th {
39
+border:1px solid gray;
40
+padding:5px;
41
+}
42
+.sphboard_post_list td.sphboard_post_subject {
43
+height:10px;
44
+}
45
+.sphboard_post_list td.sphboard_post_body {
46
+min-height:100px;
47
+vertical-align:top;
48
+}
49
+.sphboard_post_list td.sphboard_post_authorinfo {
50
+padding-top:2em;
51
+vertical-align:top;
52
+width:150px;
53
+}
54
+dl.sphboard_post_authorinfo_details dt {
55
+font-weight:bold;
56
+margin:0;
57
+padding:0;
58
+}
59
+dl.sphboard_post_authorinfo_details dt:after {
60
+content:": ";
61
+}
62
+dl.sphboard_post_authorinfo_details dd {
63
+margin:0 0 0 1em;
64
+padding:0;
65
+}
66
+.sphboard_thread_list {
67
+border-collapse:collapse;
68
+width:100%;
69
+}
70
+.sphboard_mainhead {
71
+background-color:#0066CC;
72
+color:white;
73
+}
74
+.sphboard_thread_list td, .sphboard_thread_list th {
75
+border:1px solid gray;
76
+padding:5px;
77
+}
78
+.sphboard_post_body .signature {
79
+border-top:1px solid gray;
80
+color:gray;
81
+display:block;
82
+font-size:smaller;
83
+margin-top:20px;
84
+padding-left:10px;
85
+}
86
+.sphboard_post_body .annotation_not_hidden {
87
+border-bottom:1px solid gray;
88
+font-size:smaller;
89
+}
90
+.sphboard_post_body .attachments {
91
+border-top:1px solid black;
92
+font-size:smaller;
93
+margin-top:20px;
94
+padding-left:10px;
95
+}
96
+.sphboard_post_body .attachments:before {
97
+content:attr(title);
98
+}
99
+.sphboard {
100
+width:100%;
101
+}
102
+.sphboard textarea {
103
+width:100%;
104
+}
105
+
106
+.sphboard label {
107
+margin-left:20px;
108
+width:auto;
109
+float:none;
110
+}
111
+
112
+.sphboard input {
113
+width:100%;
114
+}
115
+
116
+.board_previewarea {
117
+border:2px solid gray;
118
+display:none;
119
+max-height:500px;
120
+overflow:scroll;
121
+padding:5px;
122
+visibility:hidden;
123
+}
124
+.board_threadcount {
125
+float:left;
126
+}
127
+.board_pagination {
128
+display:block;
129
+float:right;
130
+}
131
+.board_postdate {
132
+float:left;
133
+}
134
+.board_controls {
135
+float:right;
136
+}
137
+.polls_percent {
138
+white-space:nowrap;
139
+}
140
+.polls_percentbar {
141
+background-color:#CCCCCC;
142
+font-size:5px;
143
+height:10px;
144
+}
145
+.polls_choices {
146
+list-style:none outside none;
147
+}
148
+ul.sphboard_post_summary {
149
+display:block;
150
+list-style-type:none;
151
+margin:0;
152
+padding:0;
153
+}
154
+.sphboard_post_summary li {
155
+border-bottom:1px dotted gray;
156
+display:block;
157
+margin:0;
158
+padding:1em;
159
+}
160
+.sphboard_post_summary li:hover {
161
+background-color:#DDDDFF;
162
+}
163
+.sphboard_post_summary dt {
164
+padding:0;
165
+}
166
+.sphboard_post_summary dd.category {
167
+display:none;
168
+}
169
+.sphboard_post_summary .postdate {
170
+font-size:x-small;
171
+font-weight:bold;
172
+margin-bottom:1em;
173
+}
174
+.sphboard_post_summary .subject {
175
+}
176
+.sphboard_post_summary .body {
177
+max-height:4em;
178
+overflow:hidden;
179
+}
180
+.sphboard_post_summary li:hover .body {
181
+max-height:20em;
182
+}
183
+table.sphlist_threadlist {
184
+border-collapse:collapse;
185
+width:100%;
186
+}
187
+table.sphlist_threadlist th {
188
+font-size:smaller;
189
+}
190
+table.sphlist_threadlist td, table.sphlist_threadlist th {
191
+border:1px solid gray;
192