Permalink
Browse files

Initial commit

  • Loading branch information...
devcamcar committed Jan 12, 2011
0 parents commit d3965a9f0ae6d6c648d772a9518ca85aeed9c13b
Showing with 6,651 additions and 0 deletions.
  1. +176 −0 LICENSE
  2. 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 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. +1,145 −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 LICENSE
@@ -0,0 +1,176 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
No changes.
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+ import settings # Assumed to be in the same directory.
+except ImportError:
+ import sys
+ 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__)
+ sys.exit(1)
+
+if __name__ == "__main__":
+ execute_manager(settings)
@@ -0,0 +1,88 @@
+import datetime
+import logging
+import os
+import sys
+
+ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
+
+sys.path.append(ROOT_PATH)
+
+DEBUG = False
+TEMPLATE_DEBUG = DEBUG
+
+SITE_ID = 1
+SITE_NAME = 'openstack-dashboard'
+
+LOGIN_URL = '/accounts/login'
+LOGIN_REDIRECT_URL = '/'
+
+MEDIA_ROOT = os.path.join(ROOT_PATH, '..', 'media')
+MEDIA_URL = '/media/'
+ADMIN_MEDIA_PREFIX = '/media/admin/'
+
+CREDENTIAL_AUTHORIZATION_DAYS = '5'
+
+ROOT_URLCONF = 'dashboard.urls'
+
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.middleware.doc.XViewMiddleware',
+)
+
+TEMPLATE_CONTEXT_PROCESSORS = (
+ 'django.core.context_processors.auth',
+ 'django.core.context_processors.debug',
+ 'django.core.context_processors.i18n',
+ 'django.core.context_processors.request',
+ 'django.core.context_processors.media',
+ 'django.contrib.messages.context_processors.messages',
+)
+
+TEMPLATE_LOADERS = (
+ 'django.template.loaders.filesystem.load_template_source',
+ 'django.template.loaders.app_directories.load_template_source',
+)
+
+TEMPLATE_DIRS = (
+ os.path.join(ROOT_PATH, 'templates'),
+)
+
+INSTALLED_APPS = (
+ 'dashboard',
+ 'django.contrib.auth',
+ 'django.contrib.admin',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.messages',
+ 'django.contrib.comments',
+ 'django.contrib.sites',
+ 'django.contrib.markup',
+ 'django.contrib.syndication',
+ 'django_nose',
+ 'django_nova',
+ 'registration',
+)
+
+TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
+
+AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
+MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
+
+SESSION_EXPIRE_AT_BROWSER_CLOSE = True
+TIME_ZONE = 'PST+08PDT,M3.2.0,M11.1.0'
+LANGUAGE_CODE = 'en-us'
+USE_I18N = False
+
+ACCOUNT_ACTIVATION_DAYS = 7
+
+try:
+ from local.local_settings import *
+except Exception, e:
+ logging.exception(e)
+
+if DEBUG:
+ logging.basicConfig(level=logging.DEBUG)
@@ -0,0 +1,35 @@
+{% extends "base.html" %}
+
+{% block title %} - Forbidden{% endblock %}
+
+{% block content %}
+ <div id="right_content">
+ <div id="page_head">
+ <h2 id="page_heading">Forbidden</h2>
+ <p id="page_description">You do not have the required privileges to access this content. If you believe this message to be in error,
+ please contact your project manager.</p>
+ </div>
+ </div>
+{% endblock %}
+
+{% block sidebar %}
+ <div id="sidebar">
+ <ul id="navigation">
+ {% block nav_home %}
+ <li><h3><a href="/">Home</a></h3></li>
+ {% endblock %}
+
+ {% block nav_projects %}
+ <li><h3><a href="/">Projects</a></h3></li>
+ {% endblock %}
+
+ {% block nav_forum %}
+ <li><h3><a href="/forum">Forums</a></h3></li>
+ {% endblock %}
+
+ {% block nav_kb %}
+ <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
+ {% endblock %}
+ </ul>
+ </div> <!-- end sidebar -->
+{% endblock %}
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+
+{% block title %} - Page Not Found{% endblock %}
+
+{% block content %}
+ <div id="right_content">
+ <div id="page_head">
+ <h2 id="page_heading">The page you were looking for doesn't exist</h2>
+ <p id="page_description">You may have mistyped the address or the page may have moved.</p>
+ </div>
+ </div>
+{% endblock %}
+
+{% block sidebar %}
+ <div id="sidebar">
+ <ul id="navigation">
+ {% block nav_home %}
+ <li><h3><a href="/">Home</a></h3></li>
+ {% endblock %}
+
+ {% block nav_projects %}
+ <li><h3><a href="/">Projects</a></h3></li>
+ {% endblock %}
+
+ {% block nav_forum %}
+ <li><h3><a href="/forum">Forums</a></h3></li>
+ {% endblock %}
+
+ {% block nav_kb %}
+ <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
+ {% endblock %}
+ </ul>
+ </div> <!-- end sidebar -->
+{% endblock %}
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+
+{% block title %} - Internal Server Error{% endblock %}
+
+{% block content %}
+ <div id="right_content">
+ <div id="page_head">
+ <h2 id="page_heading">Internal Server Error</h2>
+ <p id="page_description">An unexpected error occurred while processing your request. Please try your request again.</p>
+ </div>
+ </div>
+{% endblock %}
+
+{% block sidebar %}
+ <div id="sidebar">
+ <ul id="navigation">
+ {% block nav_home %}
+ <li><h3><a href="/">Home</a></h3></li>
+ {% endblock %}
+
+ {% block nav_projects %}
+ <li><h3><a href="/">Projects</a></h3></li>
+ {% endblock %}
+
+ {% block nav_forum %}
+ <li><h3><a href="/forum">Forums</a></h3></li>
+ {% endblock %}
+
+ {% block nav_kb %}
+ <li><h3><a href="/kb/show/Start/">Knowledge Base</a></h3></li>
+ {% endblock %}
+ </ul>
+ </div> <!-- end sidebar -->
+{% endblock %}
Oops, something went wrong.

0 comments on commit d3965a9

Please sign in to comment.