Browse Source

Initial commit

changes/99/1199/1
Devin Carlen 11 years ago
commit
d3965a9f0a
  1. 176
      LICENSE
  2. 0
      dashboard/__init__.py
  3. 11
      dashboard/manage.py
  4. 88
      dashboard/settings.py
  5. 35
      dashboard/templates/403.html
  6. 34
      dashboard/templates/404.html
  7. 34
      dashboard/templates/500.html
  8. 96
      dashboard/templates/admin/index.html
  9. 63
      dashboard/templates/base-root.html
  10. 15
      dashboard/templates/base-sidebar.html
  11. 5
      dashboard/templates/base.html
  12. 56
      dashboard/templates/index.html
  13. 11
      dashboard/templates/permission_denied.html
  14. 34
      dashboard/templates/registration/activate.html
  15. 21
      dashboard/templates/registration/activation_email.txt
  16. 1
      dashboard/templates/registration/activation_email_subject.txt
  17. 36
      dashboard/templates/registration/login.html
  18. 14
      dashboard/templates/registration/logout.html
  19. 18
      dashboard/templates/registration/password_change_done.html
  20. 23
      dashboard/templates/registration/password_change_form.html
  21. 19
      dashboard/templates/registration/password_reset_complete.html
  22. 26
      dashboard/templates/registration/password_reset_confirm.html
  23. 17
      dashboard/templates/registration/password_reset_done.html
  24. 13
      dashboard/templates/registration/password_reset_email.html
  25. 23
      dashboard/templates/registration/password_reset_form.html
  26. 22
      dashboard/templates/registration/registration_complete.html
  27. 29
      dashboard/templates/registration/registration_form.html
  28. 57
      dashboard/urls.py
  29. 39
      dashboard/views.py
  30. 29
      dashboard/wsgi/django.wsgi
  31. 0
      local/__init__.py
  32. 22
      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
      media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css
  48. 749
      media/dashboard/css/dashboard.css
  49. 217
      media/dashboard/css/dashboard_sub.css
  50. 541
      media/dashboard/css/django-admin-widgets.css
  51. 18
      media/dashboard/css/global.css
  52. 745
      media/dashboard/css/home.css
  53. 85
      media/dashboard/css/ie7.css
  54. 9
      media/dashboard/css/jquery.tooltip.css
  55. 1145
      media/dashboard/css/new_dash.css
  56. 63
      media/dashboard/css/openstack.css
  57. 50
      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
      media/dashboard/js/dashboard.js
  89. 564
      media/dashboard/js/django-admin.multiselect.js
  90. 9
      media/dashboard/js/jquery-ui.min.js
  91. 675
      media/dashboard/js/jquery.form.js
  92. 154
      media/dashboard/js/jquery.min.js
  93. 139
      tools/install_venv.py
  94. 6
      tools/pip-requires
  95. 5
      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.

0
dashboard/__init__.py

11
dashboard/manage.py

@ -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)

88
dashboard/settings.py

@ -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)

35
dashboard/templates/403.html

@ -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 %}

34
dashboard/templates/404.html

@ -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 %}

34
dashboard/templates/500.html

@ -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 %}

96
dashboard/templates/admin/index.html

@ -0,0 +1,96 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}dashboard{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
<div id="content-main">
{% if app_list %}
<div class="module">
<table summary="Models available in the OpenStack application.">
<caption><a href="{% url admin_projects %}" class="section">OpenStack</a></caption>
<tbody>
<tr>
<th scope="row"><a href="{% url admin_projects %}">Projects</a></th>
<td><a href="{% url add_project %}" class="addlink">Add</a></td>
</tr>
<tr>
<th scope="row"><a href="{% url admin_users_list %}">Global Roles</a></th>
</tr>
</tbody>
</table>
</div>
{% for app in app_list %}
<div class="module">
<table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
<caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
{% for model in app.models %}
<tr>
{% if model.perms.change %}
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}
<th scope="row">{{ model.name }}</th>
{% endif %}
{% if model.perms.add %}
<td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
{% if model.perms.change %}
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
{% endfor %}
{% else %}
<p>{% trans "You don't have permission to edit anything." %}</p>
{% endif %}
</div>
{% endblock %}
{% block sidebar %}
<div id="content-related">
<div class="module" id="recent-actions-module">
<h2>{% trans 'Recent Actions' %}</h2>
<h3>{% trans 'My Actions' %}</h3>
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}
{% if not admin_log %}
<p>{% trans 'None available' %}</p>
{% else %}
<ul class="actionlist">
{% for entry in admin_log %}
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
{% if entry.is_deletion %}
{{ entry.object_repr }}
{% else %}
<a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
{% endif %}
<br/>
{% if entry.content_type %}
<span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span>
{% else %}
<span class="mini quiet">{% trans 'Unknown content' %}</span>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endblock %}

63
dashboard/templates/base-root.html

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>OpenStack Dashboard{% block title %}{% endblock %}{% block subtitle %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/media/dashboard/css/new_dash.css"/>
<link rel="stylesheet" type="text/css" href="/media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css"/>
<link rel="stylesheet" type="text/css" href="/media/dashboard/css/openstack.css"/>
{% block headercss %}{% endblock %}
<!--[if IE 7]><link rel="stylesheet" href="/media/dashboard/css/ie7.css" type="text/css" media="screen, projection"><![endif]-->
<script type="text/javascript" src="/media/dashboard/js/jquery.min.js"></script>
<script type="text/javascript" src="/media/dashboard/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/media/dashboard/js/dashboard.js"></script>
{% block headerjs %}{% endblock %}
</head>
<body>
<div id="wrapper">
<div id="header">
<h1><a href="/">OpenStack<span> Cloud Computing</span></a></h1>
{% if user.is_authenticated %}
<div id="user_info">
<span class="user">Signed in as <strong>{{ request.user.username }}</strong>.</a></span>
<ul>
<li><a id="lnk_logout" href="{% url auth_logout %}">Sign Out</a></li>
<li><a id="lnk_change_password" href="{% url auth_password_change %}">Change Password</a></li>
</ul>
</div>
{% else %}
<div id="user_info">
<a id="lnk_login" href="/accounts/login">Sign In</a>
</div>
{% endif %}
</div>
<div id="content_wrap">
{% block sidebar %}{% endblock %}
{% block region %}{% endblock %}
{% block forum_breadcrumbs %}{% endblock %}
<div id="content" class="{% block pageclass %}{% endblock %}">
{% block rootcontent %}{% endblock %}
</div><!-- end content -->
</div>
<div id="footer">
<div id="foot">
<div class="c7">
<div class="ft_sitemap">
<div class="sub"><a href="{% url index %}">Dashboard</a>
<ul>
<li><a href="{% url index %}">Home</a></li>
</ul>
</div>
</div>
</div>
<div class="clr"></div>
</div>
{% block footerjs %}{% endblock %}
</div>
</body>
</html>

15
dashboard/templates/base-sidebar.html

@ -0,0 +1,15 @@
{% extends "base.html" %}
{% 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 %}
</ul>
</div> <!-- end sidebar -->
{% endblock %}

5
dashboard/templates/base.html

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

56
dashboard/templates/index.html

@ -0,0 +1,56 @@
{% extends "base.html" %}
{% block headercss %}
{% endblock %}
{% block pageclass %}home{% endblock %}
{% block title %} - Cloud Computing{% endblock %}
{% block content %}
<div id="page_head">
<h2>Welcome to the Openstack Dashboard</h2>
<p>Lorem ipsum oblique praesent theophrastus ut eos. No altera eirmod
graecis ius. Pri mucius salutandi at, usu admodum neglegentur ad.
In qui propriae fabellas comprehensam.
{% if not request.user.is_authenticated %}
<a id="lnk_register" href="{% url registration_register %}">Register</a>
{% endif %}
</p>
</div>
{% if request.user.is_authenticated %}
<div id="projects" class="block">
<h3>Your Projects</h3>
<ul>
{% for project in projects %}
<li class="project {% cycle 'odd' 'even' %}">
<a id="lnk_project_{{ project.projectname }}" href="{% url nova_project project.projectname %}">
{{ project.projectname|capfirst }}
<span class="data">{{ project.description|capfirst }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div id="home_login" class="block">
<h3>Sign In</h3>
<form action="{% url auth_login %}" method="post">
{% csrf_token %}
<fieldset>
{% if form.errors %}
<p class="error">Your username and password didn't match. Please try again.</p>
{% endif %}
<label for="username">Username:</label><input id="username" type="text" name="username" />
<label for="password">Password:</label><input id="password" type="password" name="password" />
<input type="hidden" name="next" value="/" />
<div class="button">
<input id="home_login_btn" type="submit" value="Sign In">
<span id="forgot_password">or <a id="forgot_password_link" href="{% url auth_password_reset %}">Forgot Password?</a></span>
</div>
</fieldset>
</form>
</div>
{% endif %}
{% endblock %}

11
dashboard/templates/permission_denied.html

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

34
dashboard/templates/registration/activate.html

@ -0,0 +1,34 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Account Activation{% endblock %}
{% block content %}
{% if account %}
<div id="page_head">
<h2>Activation successful</h2>
</div>
<div class="ui-state-highlight ui-corner-all success">
<span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
<p>
<span class="ui-icon ui-icon-check"></span>
Your account has been successfully activated.
</p>
</div>
<p>
You may now <a id="lnk_login" href="{% url auth_login %}">log in</a> to your account.
</p>
{% else %}
<div id="page_head">
<h2>Activation failed</h2>
</div>
<p>
We are unable to activate your account at this time. It is possible that the activation
period for your account has expired. Please register your account again, or contact the
site administrator for help resolving this issue.
</p>
{% endif %}
{% endblock %}

21
dashboard/templates/registration/activation_email.txt

@ -0,0 +1,21 @@
{% autoescape off %}
Welcome to the NASA Nebula Dashboard!
This message contains information about how to activate your NASA Nebula Dashboard account.
The NASA Nebula Dashboard is a web based management system that enables to easily manage your Nebula projects and instances.
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.
When you're ready, connect to your Nebula OpenVPN and visit the following link to activate your account:
http://{{ site.domain }}/accounts/activate/{{ activation_key }}
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.
The Nebula Team
{% endautoescape %}

1
dashboard/templates/registration/activation_email_subject.txt

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

36
dashboard/templates/registration/login.html

@ -0,0 +1,36 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block headerjs %}
{% endblock %}
{% block sidebar %}
{% endblock %}
{% block pageclass %}login{% endblock %}
{% block content %}
<div id="page_head">
<h2>Sign in to your Nebula Dashboard</h2>
</div>
<div id="home_login" class="block">
<h3>Sign In</h3>
<form action="{% url auth_login %}" method="post">
{% csrf_token %}
<fieldset>
{% if form.errors %}
<p class="error">Your username and password didn't match. Please try again.</p>
{% endif %}
<input type="hidden" name="next" value="{{ next }}" />
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
<div class="button">
<input type="submit" value="Sign In">
<span id="forgot_password">or <a href="{% url auth_password_reset %}">Forgot Password?</a></span>
</div>
</fieldset>
</form>
</div>
{% endblock %}

14
dashboard/templates/registration/logout.html

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Signed Out{% endblock %}
{% block content %}
<div id="page_head">
<h2>Signed out</h2>
</div>
<p>
You have successfully signed out of your account.
</p>
{% endblock %}

18
dashboard/templates/registration/password_change_done.html

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Change Password{% endblock %}
{% block content %}
<div id="page_head">
<h2>Change Password</h2>
</div>
<div class="ui-state-highlight ui-corner-all success">
<span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
<p>
<span class="ui-icon ui-icon-check"></span>
Your password has been successfully changed.
</p>
</div>
{% endblock %}

23
dashboard/templates/registration/password_change_form.html

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Change Password{% endblock %}
{% block content %}
<div id="page_head">
<h1>Change Password</h1>
<p id="page_description">To change your password, complete the form below.</p>
</div>
<div id="home_login" class="block reset">
<h3>Change Password</h3>
<form action="" method="post">
<fieldset>
{% csrf_token %}
{{ form.as_p }}
<input id="bnt_set_password" type="submit" value="Set my password" />
</fieldset>
</form>
</div>
{% endblock %}

19
dashboard/templates/registration/password_reset_complete.html

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Reset Password{% endblock %}
{% block content %}
<div id="page_head">
<h2>Password reset complete</h2>
</div>
<div class="ui-state-highlight ui-corner-all success">
<span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
<p>
<span class="ui-icon ui-icon-check"></span>
Your password has been reset. You can now <a href="/accounts/login">login</a>.
</p>
</div>
{% endblock %}

26
dashboard/templates/registration/password_reset_confirm.html

@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Reset Password{% endblock %}
{% block content %}
<div id="page_head">
<h2>Change your password below.</h2>
<p id="page_description">To complete the reset of your password, fill out the form below.</p>
</div>
<div id="home_login" class="block reset">
<h3>Reset Password</h3>
<form action="" method="post">
<fieldset>
{% csrf_token %}
{{ form.new_password1.errors }}
<label for="id_new_password1">New Password:</label>{{form.new_password1 }}
{{ form.new_password2.errors }}
<label for="id_new_password2">Confirm Password:</label>{{ form.new_password2 }}
<input id="bnt_set_password" type="submit" value="Set my password" />
</fieldset>
</form>
</div>
{% endblock %}

17
dashboard/templates/registration/password_reset_done.html

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

13
dashboard/templates/registration/password_reset_email.html

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

23
dashboard/templates/registration/password_reset_form.html

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Reset Password{% endblock %}
{% block content %}
<div id="page_head">
<h1>Reset Password</h1>
<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>
</div>
<div id="home_login" class="block reset">
<h3>Reset Password</h3>
<form action="" method="post">
<fieldset>
{% csrf_token %}
{{ form.email.errors }}
<p><label for="id_email">E-mail address:</label> {{ form.email }} <input id="btn_reset_password" type="submit" value="Reset Password" /></p>
</fieldset>
</form>
</div>
{% endblock %}

22
dashboard/templates/registration/registration_complete.html

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Registration Complete{% endblock %}
{% block content %}
<div id="page_head">
<h2>Registration complete</h2>
</div>
<div class="ui-state-highlight ui-corner-all success">
<span class="close ui-icon ui-icon-circle-close" style="display:none;"></span>
<p>
<span class="ui-icon ui-icon-check"></span>
Your account has been created.
</p>
</div>
<p>
Soon you will receive instructions for activating your account in your inbox.
Please follow the activation link provided in the message to complete your registration.
</p>
{% endblock %}

29
dashboard/templates/registration/registration_form.html

@ -0,0 +1,29 @@
{% extends "base.html" %}
{% block region %}{% endblock %}
{% block title %}Register{% endblock %}
{% block content %}
<div id="page_head">
<h1>Create Your Account</h1>
<p id="page_description">Create your new account by providing the information blow.</p>
</div>
<div id="home_login" class="block reset">
<h3>Register</h3>
<form action="" method="post">
<fieldset>
{% csrf_token %}
{{ form.username.errors }}
<label for="id_username">Username:</label> {{ form.username }}
{{ form.email.errors }}
<label for="id_email">E-mail address:</label> {{ form.email }}
{{ form.password1.errors }}
<label for="id_password1">Password:</label> {{ form.password1 }}
{{ form.password2.errors }}
<label for="id_password2">Confirm Password:</label> {{ form.password2 }}
<input id="btn_reset_password" type="submit" value="Reset Password" />
</fieldset>
</form>
</div>
{% endblock %}

57
dashboard/urls.py

@ -0,0 +1,57 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
URL patterns for the OpenStack Dashboard.
"""
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
from registration import forms as reg_forms
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'dashboard.views.index', name='index'),
url(r'^accounts/register/$',
'registration.views.register',
{ 'form_class': reg_forms.RegistrationFormUniqueEmail },
name='registration_register'),
url(r'^accounts/', include('registration.urls')),
url(r'^project/', include('django_nova.urls.project')),
url(r'^region/', include('django_nova.urls.region')),
url(r'^admin/project/', include('django_nova.urls.admin_project')),
url(r'^admin/roles/', include('django_nova.urls.admin_roles')),
url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += patterns('django.views.generic.simple',
url(r'^denied/$',
'direct_to_template',
{'template': 'permission_denied.html'},
name='dashboard_permission_denied'),
)
urlpatterns += patterns('',
(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT,
'show_indexes': True}),
)

39
dashboard/views.py

@ -0,0 +1,39 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
Views for home page.
"""
from django import template
from django.shortcuts import render_to_response
from django.views.decorators.vary import vary_on_cookie
from django_nova.shortcuts import get_projects
@vary_on_cookie
def index(request):
projects = None
page_type = "home"
if request.user.is_authenticated():
projects = get_projects(user=request.user)
return render_to_response('index.html', {
'projects': projects,
'page_type': page_type,
}, context_instance = template.RequestContext(request))

29
dashboard/wsgi/django.wsgi

@ -0,0 +1,29 @@
import logging
import os
import sys
import django.core.handlers.wsgi
from django.conf import settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'dashboard.settings'
sys.stdout = sys.stderr
DEBUG = False
class WSGIRequest(django.core.handlers.wsgi.WSGIRequest):
def is_secure(self):
value = self.META.get('wsgi.url_scheme', '').lower()
if value == 'https':
return True
return False
class WSGIHandler(django.core.handlers.wsgi.WSGIHandler):
request_class = WSGIRequest
_application = WSGIHandler()
def application(environ, start_response):
environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME', 'http')
return _application(environ, start_response)

0
local/__init__.py

22
local/local_settings.py.example

@ -0,0 +1,22 @@
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack'),
},
}
CACHE_BACKEND = 'dummy://'
NOVA_DEFAULT_ENDPOINT = 'http://localhoat:8773/services/Cloud'
NOVA_DEFAULT_REGION = 'nova'
NOVA_ACCESS_KEY = 'admin'
NOVA_SECRET_KEY = 'admin'

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

406
media/dashboard/css/cupertino/jquery-ui-1.7.2.custom.css

@ -0,0 +1,406 @@
/*
* jQuery UI CSS Framework
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* 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
*/
/* Component containers
----------------------------------*/
.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1em; }
.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; }
.ui-widget-content a { color: #362b36; }
.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; }
.ui-widget-header a { color: #222222; }
/* Interaction states
----------------------------------*/
.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; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2779aa; text-decoration: none; outline: none; }
.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; }
.ui-state-hover a, .ui-state-hover a:hover { color: #0070a3; text-decoration: none; outline: none; }
.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; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; outline: none; text-decoration: none; }
/* Interaction Cues
----------------------------------*/
.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; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
.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; }
.ui-state-error a, .ui-widget-content .ui-state-error a { color: #ffffff; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #ffffff; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_72a7cf_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
.ui-state-default .ui-icon { background-image: url(images/ui-icons_3d80b3_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_2694e8_256x240.png); }
.ui-state-active .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-tl { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; }
.ui-corner-tr { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; }
.ui-corner-bl { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; }
.ui-corner-br { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; }
.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; }
.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; }
.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; }
.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; }
.ui-corner-all { -moz-border-radius: 6px; -webkit-border-radius: 6px; }
/* Overlays */
.ui-widget-overlay { background: #eeeeee url(images/ui-bg_diagonals-thick_90_eeeeee_40x40.png) 50% 50% repeat; opacity: .80;filter:Alpha(Opacity=80); }