Repository: brooklyn-ui
Updated Branches:
  refs/heads/0.4.0 [created] 91c389142


added back in gsp files which had been excluded, removed .gitignore
(there is some overlap between haml and gsp, while non-optimal
the bigger risk is to exclude a gsp which isn't haml based!)


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/e24d3417
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/e24d3417
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/e24d3417

Branch: refs/heads/0.4.0
Commit: e24d3417f462df86c21e697c7cfc138f3a0d0bf4
Parents: 561eb46
Author: Alex Heneveld <[email protected]>
Authored: Fri Mar 16 11:29:08 2012 +0000
Committer: Alex Heneveld <[email protected]>
Committed: Fri Mar 16 11:29:08 2012 +0000

----------------------------------------------------------------------
 usage/web-console/grails-app/views/.gitignore   |  1 -
 .../grails-app/views/dashboard/_dashboard.gsp   | 24 +++++
 .../grails-app/views/dashboard/circles.gsp      | 15 ++++
 .../grails-app/views/dashboard/index.gsp        | 34 +++++++
 .../grails-app/views/detail/_main.gsp           | 49 ++++++++++
 .../views/detail/_tree-components.gsp           |  7 ++
 .../views/detail/detail-tabs/_activity.gsp      | 15 ++++
 .../views/detail/detail-tabs/_effectors.gsp     | 15 ++++
 .../views/detail/detail-tabs/_location.gsp      |  7 ++
 .../views/detail/detail-tabs/_policies.gsp      | 42 +++++++++
 .../grails-app/views/detail/index.gsp           | 46 ++++++++++
 .../grails-app/views/entity/index.gsp           | 94 ++++++++++++++++++++
 usage/web-console/grails-app/views/error.gsp    | 54 +++++++++++
 .../grails-app/views/layouts/basic.gsp          | 23 +++++
 .../grails-app/views/layouts/brooklyn.gsp       | 25 ++++++
 .../web-console/grails-app/views/login/auth.gsp | 79 ++++++++++++++++
 .../grails-app/views/login/denied.gsp           | 10 +++
 .../grails-app/views/shared/_banner.gsp         |  4 +
 .../grails-app/views/shared/_footer.gsp         |  2 +
 .../grails-app/views/tabs/_activity.gsp         | 13 +++
 .../grails-app/views/tabs/_effectors.gsp        | 15 ++++
 .../grails-app/views/tabs/_location.gsp         |  8 ++
 .../grails-app/views/widgets/_circles.gsp       | 11 +++
 .../grails-app/views/widgets/_logger.gsp        | 18 ++++
 .../views/widgets/_recent-activity.gsp          | 18 ++++
 25 files changed, 628 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/.gitignore
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/.gitignore 
b/usage/web-console/grails-app/views/.gitignore
deleted file mode 100644
index bee7eba..0000000
--- a/usage/web-console/grails-app/views/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.gsp
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/dashboard/_dashboard.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/dashboard/_dashboard.gsp 
b/usage/web-console/grails-app/views/dashboard/_dashboard.gsp
new file mode 100644
index 0000000..39bb2ff
--- /dev/null
+++ b/usage/web-console/grails-app/views/dashboard/_dashboard.gsp
@@ -0,0 +1,24 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_dashboard.haml --%>
+<div id='dashboard-container'>
+  <div class='master-column-wrapper'>
+    <div class='widget-container'>
+      <div class='big-widget-column column'>
+        <g:render template='/widgets/circles'></g:render>
+      </div>
+    </div>
+    <div class='widget-container'>
+      <div class='big-widget-column column'>
+        <g:render template='/widgets/recent-activity'></g:render>
+      </div>
+    </div>
+    <div class='widget-container'>
+      <div class='medium-widget-column column'></div>
+      <div class='medium-widget-column column'></div>
+    </div>
+    <div class='widget-container'>
+      <div class='small-widget-column column'></div>
+      <div class='small-widget-column column'></div>
+      <div class='small-widget-column column'></div>
+    </div>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/dashboard/circles.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/dashboard/circles.gsp 
b/usage/web-console/grails-app/views/dashboard/circles.gsp
new file mode 100644
index 0000000..84d0111
--- /dev/null
+++ b/usage/web-console/grails-app/views/dashboard/circles.gsp
@@ -0,0 +1,15 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
circles.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Brooklyn Web Console - Circles</title>
+    <meta content='brooklyn' name='layout' />
+    <script src='http://maps.google.com/maps/api/js?sensor=false' 
type='text/javascript'></script>
+    <g:javascript src='console/main.js'></g:javascript>
+    <g:javascript src='console/circles.js'></g:javascript>
+  </head>
+  <body>
+    <h1>Circles</h1>
+    <div id='circles-map'></div>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/dashboard/index.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/dashboard/index.gsp 
b/usage/web-console/grails-app/views/dashboard/index.gsp
new file mode 100644
index 0000000..a9c9a0e
--- /dev/null
+++ b/usage/web-console/grails-app/views/dashboard/index.gsp
@@ -0,0 +1,34 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
index.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Brooklyn Web Console - Dashboard</title>
+    <meta content='brooklyn' name='layout' />
+    <script src='http://maps.google.com/maps/api/js?sensor=false' 
type='text/javascript'></script>
+    <g:javascript src='console/main.js'></g:javascript>
+    <g:javascript src='console/util/brooklyn-util.js'></g:javascript>
+    <g:javascript src='console/util/gmaps.js'></g:javascript>
+    <g:javascript src='console/util/datatable-pagination.js'></g:javascript>
+    <g:javascript src='console/dashboard/widget-dashboard.js'></g:javascript>
+  </head>
+  <body style='height:100%;width:100%;'>
+    <div class='ui-tabs ui-widget ui-widget-content ui-corner-all'>
+      <div class='brooklyn-header'></div>
+      <div>
+        <ul class='ui-tabs-nav ui-helper-reset ui-helper-clearfix 
ui-widget-header ui-corner-all' style='padding:1.2em 0em 0em 0em'>
+          <li class='ui-state-default ui-corner-top ui-tabs-selected 
ui-state-active'>
+            <a href='../dashboard/'>Dashboard</a>
+          </li>
+          <li class='ui-state-default ui-corner-top'>
+            <a href='../detail/'>Detail</a>
+          </li>
+        </ul>
+      </div>
+    </div>
+    <div id='dashboard'>
+      <div class='ui-layout-center'>
+        <g:render template='dashboard'></g:render>
+      </div>
+    </div>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/_main.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/detail/_main.gsp 
b/usage/web-console/grails-app/views/detail/_main.gsp
new file mode 100644
index 0000000..9b687af
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/_main.gsp
@@ -0,0 +1,49 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_main.haml --%>
+<div align='left' id='navigation'></div>
+<div id='subtabs'>
+  <ul>
+    <li>
+      <a href='#summary'>Summary</a>
+    </li>
+    <li>
+      <a href='#sensors'>Sensors</a>
+    </li>
+    <li>
+      <a href='#effectors'>Effectors</a>
+    </li>
+    <li>
+      <a href='#activity'>Activity</a>
+    </li>
+    <li>
+      <a href='#location'>Location</a>
+    </li>
+    <li>
+      <a href='#policies'>Policies</a>
+    </li>
+  </ul>
+  <div id='summary'>
+    <div id='summary-basic-info'></div>
+    <div id='summary-status'></div>
+    <div id='summary-groups'></div>
+    <div id='summary-activity'></div>
+  </div>
+  <div id='sensors' tabindex='1'>
+    <div class='sensor-table'>
+      <table class='tab-content-table' id='sensor-data'></table>
+    </div>
+  </div>
+  <div id='effectors' tabindex='2'>
+    <g:render template='detail-tabs/effectors'></g:render>
+  </div>
+  <div id='location' tabindex='3'>
+    <g:render template='detail-tabs/location'></g:render>
+  </div>
+  <div id='activity' tabindex='4'>
+    <g:render template='detail-tabs/activity'></g:render>
+  </div>
+  <div id='policies' tabindex='5'>
+    <g:render template='detail-tabs/policies'></g:render>
+  </div>
+  <p class='bottom-filler'>&nbsp;</p>
+</div>
+<div id='status'>Last update: <span id="status-message">No data 
yet.</span></div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/_tree-components.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/detail/_tree-components.gsp 
b/usage/web-console/grails-app/views/detail/_tree-components.gsp
new file mode 100644
index 0000000..b32f17e
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/_tree-components.gsp
@@ -0,0 +1,7 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_tree-components.haml --%>
+<div class='debug-tree-components'>
+  <div class='debug-search-box'>
+    <input autosave='brooklynEntity' class='search-input' id='search-input' 
name='name' placeholder='Search' results='5' type='search' />
+  </div>
+  <div class='jstree' id='jstree'></div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/detail-tabs/_activity.gsp
----------------------------------------------------------------------
diff --git 
a/usage/web-console/grails-app/views/detail/detail-tabs/_activity.gsp 
b/usage/web-console/grails-app/views/detail/detail-tabs/_activity.gsp
new file mode 100644
index 0000000..25fc65c
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/detail-tabs/_activity.gsp
@@ -0,0 +1,15 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_activity.haml --%>
+<div class='activity'>
+  <div class='tab-content-left-column'>
+    <div class='activity-table'>
+      <table class='tab-content-table' id='activity-data'></table>
+    </div>
+    <div id='activityStatus'>
+      <fieldset id='activityFieldset'>
+        <legend>Activity Status</legend>
+        <!-- /just put a large text box in here -->
+        <textarea id='logbox' readonly='true' wrap='hard'></textarea>
+      </fieldset>
+    </div>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/detail-tabs/_effectors.gsp
----------------------------------------------------------------------
diff --git 
a/usage/web-console/grails-app/views/detail/detail-tabs/_effectors.gsp 
b/usage/web-console/grails-app/views/detail/detail-tabs/_effectors.gsp
new file mode 100644
index 0000000..fb86837
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/detail-tabs/_effectors.gsp
@@ -0,0 +1,15 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_effectors.haml --%>
+<div class='effector'>
+  <div class='tab-content-mini-column'>
+    <table class='tab-content-table' id='effector-data'></table>
+  </div>
+</div>
+<div class='effector-args'>
+  <form id='effector-invoke'>
+    <fieldset class='tab-content-right-column' id='effector-fieldset'>
+      <legend>Parameters</legend>
+      <div class='effector-args' id='effector-args'></div>
+      <input id='effectors-invoke-button' type='button' value='Invoke' />
+    </fieldset>
+  </form>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/detail-tabs/_location.gsp
----------------------------------------------------------------------
diff --git 
a/usage/web-console/grails-app/views/detail/detail-tabs/_location.gsp 
b/usage/web-console/grails-app/views/detail/detail-tabs/_location.gsp
new file mode 100644
index 0000000..88d2030
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/detail-tabs/_location.gsp
@@ -0,0 +1,7 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_location.haml --%>
+<div class='tab-content-mini-column'>
+  <table class='tab-content-table' id='location-data'></table>
+</div>
+<div class='map-container'>
+  <div id='map-canvas'></div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/detail-tabs/_policies.gsp
----------------------------------------------------------------------
diff --git 
a/usage/web-console/grails-app/views/detail/detail-tabs/_policies.gsp 
b/usage/web-console/grails-app/views/detail/detail-tabs/_policies.gsp
new file mode 100644
index 0000000..b5bf9bf
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/detail-tabs/_policies.gsp
@@ -0,0 +1,42 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_policies.haml --%>
+<table class='tab-content-table' id='policies-data'></table>
+<div class='policy-action-container'>
+  <fieldset class='policy-details-container'>
+    <legend id='chopol'>
+      Chosen Policy
+    </legend>
+    <div id='policyNameHeader'>
+      <label class='policy-header-label'>
+        <b>
+          Policy Name
+        </b>
+      </label>
+    </div>
+    <div class='policy-data-container' id='policyName'></div>
+    <div id='policyDescriptionHeader'>
+      <label class='policy-header-label'>
+        <b>
+          Policy Description
+        </b>
+      </label>
+    </div>
+    <div class='policy-data-container' id='policyDescription'></div>
+    <div align='left' id='policyControls'>
+      <select disabled='true' id='policyAction'>
+        <option value='default'>
+          Choose Action
+        </option>
+        <option value='suspend'>
+          Suspend
+        </option>
+        <option value='resume'>
+          Resume
+        </option>
+        <option value='destroy'>
+          Destroy
+        </option>
+      </select>
+      <input disabled='true' id='policy-action-execution-button' type='button' 
value='Execute' />
+    </div>
+  </fieldset>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/detail/index.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/detail/index.gsp 
b/usage/web-console/grails-app/views/detail/index.gsp
new file mode 100644
index 0000000..7f4177d
--- /dev/null
+++ b/usage/web-console/grails-app/views/detail/index.gsp
@@ -0,0 +1,46 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
index.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Brooklyn Web Console - Detail</title>
+    <meta content='brooklyn' name='layout' />
+    <script src='http://maps.google.com/maps/api/js?sensor=false' 
type='text/javascript'></script>
+    <g:javascript src='jquery/jquery.jstree.js'></g:javascript>
+    <g:javascript src='console/main.js'></g:javascript>
+    <g:javascript src='console/util/brooklyn-util.js'></g:javascript>
+    <g:javascript src='console/util/gmaps.js'></g:javascript>
+    <g:javascript src='console/util/datatable-pagination.js'></g:javascript>
+    <g:javascript src='console/detail-tab/jsTree.js'></g:javascript>
+    <g:javascript src='console/detail-tab/tabs.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/summary.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/effectors.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/activity.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/sensors.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/location.js'></g:javascript>
+    <g:javascript 
src='console/detail-tab/detail-tabs/policies.js'></g:javascript>
+    <g:javascript 
src='console/layout/brooklyn-console-layout.js'></g:javascript>
+  </head>
+  <body style='height:100%;width:100%;'>
+    <div class='ui-tabs ui-widget ui-widget-content ui-corner-all'>
+      <div class='brooklyn-header'></div>
+      <div>
+        <ul class='ui-tabs-nav ui-helper-reset ui-helper-clearfix 
ui-widget-header ui-corner-all' style='padding:1.2em 0em 0em 0em'>
+          <li class='ui-state-default ui-corner-top'>
+            <a href='../dashboard/'>Dashboard</a>
+          </li>
+          <li class='ui-state-default ui-corner-top ui-tabs-selected 
ui-state-active'>
+            <a href='../detail/'>Detail</a>
+          </li>
+        </ul>
+      </div>
+    </div>
+    <div class='master-tab' id='detail'>
+      <div class='ui-layout-west'>
+        <g:render template='tree-components'></g:render>
+      </div>
+      <div class='ui-layout-center'>
+        <g:render template='main'></g:render>
+      </div>
+    </div>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/entity/index.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/entity/index.gsp 
b/usage/web-console/grails-app/views/entity/index.gsp
new file mode 100644
index 0000000..11d0007
--- /dev/null
+++ b/usage/web-console/grails-app/views/entity/index.gsp
@@ -0,0 +1,94 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
index.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Brooklyn Web Console - Dashboard</title>
+    <meta content='basic' name='layout' />
+    <script src='http://maps.google.com/maps/api/js?sensor=false' 
type='text/javascript'></script>
+    <g:javascript src='console/main.js'></g:javascript>
+    <g:javascript src='console/jsTree.js'></g:javascript>
+    <g:javascript src='console/tabs.js'></g:javascript>
+    <g:javascript src='console/summary.js'></g:javascript>
+    <g:javascript src='console/effectors.js'></g:javascript>
+    <g:javascript src='console/activity.js'></g:javascript>
+    <g:javascript src='console/sensors.js'></g:javascript>
+    <g:javascript src='console/location.js'></g:javascript>
+    <g:javascript src='jquery/jquery.corner.js'></g:javascript>
+    <g:javascript src='jquery/jquery.jstree.js'></g:javascript>
+  </head>
+  <body>
+    <div id='layout-middle-content'>
+      <div class='layout-left-column'>
+        <div id='brooklyn-logo'>
+          <h1 id='brooklyn-header'></h1>
+        </div>
+        <div class='tree-components'>
+          <div class='search-box'>
+            <input autosave='brooklynEntity' class='search-input' 
id='search-input' name='name' placeholder='Search' results='5' type='search' />
+          </div>
+          <div class='jstree' id='jstree'></div>
+        </div>
+      </div>
+      <div class='layout-main-content'>
+        <div align='left' id='navigation'></div>
+        <div id='tabs'>
+          <ul>
+            <li>
+              <a href='#summary'>Summary</a>
+            </li>
+            <li>
+              <a href='#sensors'>Sensors</a>
+            </li>
+            <li>
+              <a href='#effectors'>Effectors</a>
+            </li>
+            <li>
+              <a href='#activity'>Activity</a>
+            </li>
+            <li>
+              <a href='#location'>Location</a>
+            </li>
+            <li>
+              <a href='#health'>Health</a>
+            </li>
+            <li>
+              <a href='#structure'>Structure</a>
+            </li>
+          </ul>
+          <div id='summary'>
+            <div id='summary-basic-info'></div>
+            <div id='summary-status'></div>
+            <div id='summary-groups'></div>
+            <div id='summary-activity'></div>
+          </div>
+          <div id='sensors'>
+            <h2>Sensors</h2>
+            <div class='tab-content-full-size'>
+              <table class='tab-content-table' id='sensor-data'></table>
+            </div>
+          </div>
+          <div id='effectors'>
+            <h2>Effectors</h2>
+            <g:render template='/tabs/effectors'></g:render>
+          </div>
+          <div id='location'>
+            <h2>Location</h2>
+            <g:render template='/tabs/location'></g:render>
+          </div>
+          <div id='activity'>
+            <h2>Activity</h2>
+            <g:render template='/tabs/activity'></g:render>
+          </div>
+          <div id='health'>
+            <h2>Health</h2>
+          </div>
+          <div id='structure'>
+            <h2>Structure</h2>
+          </div>
+          <p class='bottom-filler'>&nbsp;</p>
+        </div>
+        <div id='status'>Last Update: <span id="status-message">No data 
yet.</span></div>
+      </div>
+    </div>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/error.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/error.gsp 
b/usage/web-console/grails-app/views/error.gsp
new file mode 100644
index 0000000..cfc512a
--- /dev/null
+++ b/usage/web-console/grails-app/views/error.gsp
@@ -0,0 +1,54 @@
+<html>
+  <head>
+         <title>Grails Runtime Exception</title>
+         <style type="text/css">
+                       .message {
+                               border: 1px solid black;
+                               padding: 5px;
+                               background-color:#E9E9E9;
+                       }
+                       .stack {
+                               border: 1px solid black;
+                               padding: 5px;
+                               overflow:auto;
+                               height: 300px;
+                       }
+                       .snippet {
+                               padding: 5px;
+                               background-color:white;
+                               border:1px solid black;
+                               margin:3px;
+                               font-family:courier;
+                       }
+         </style>
+  </head>
+
+  <body>
+    <h1>Grails Runtime Exception</h1>
+    <h2>Error Details</h2>
+
+       <div class="message">
+               <strong>Error 
${request.'javax.servlet.error.status_code'}:</strong> 
${request.'javax.servlet.error.message'.encodeAsHTML()}<br/>
+               <strong>Servlet:</strong> 
${request.'javax.servlet.error.servlet_name'}<br/>
+               <strong>URI:</strong> 
${request.'javax.servlet.error.request_uri'}<br/>
+               <g:if test="${exception}">
+                       <strong>Exception Message:</strong> 
${exception.message?.encodeAsHTML()} <br />
+                       <strong>Caused by:</strong> 
${exception.cause?.message?.encodeAsHTML()} <br />
+                       <strong>Class:</strong> ${exception.className} <br />
+                       <strong>At Line:</strong> [${exception.lineNumber}] <br 
/>
+                       <strong>Code Snippet:</strong><br />
+                       <div class="snippet">
+                               <g:each var="cs" in="${exception.codeSnippet}">
+                                       ${cs?.encodeAsHTML()}<br />
+                               </g:each>
+                       </div>
+               </g:if>
+       </div>
+       <g:if test="${exception}">
+           <h2>Stack Trace</h2>
+           <div class="stack">
+             <pre><g:each 
in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre>
+           </div>
+       </g:if>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/layouts/basic.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/layouts/basic.gsp 
b/usage/web-console/grails-app/views/layouts/basic.gsp
new file mode 100644
index 0000000..b8edba9
--- /dev/null
+++ b/usage/web-console/grails-app/views/layouts/basic.gsp
@@ -0,0 +1,23 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
basic.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>
+      <g:layoutTitle default='Brooklyn Web Console'></g:layoutTitle>
+    </title>
+    <g:javascript library='jquery/jquery'></g:javascript>
+    <g:javascript library='jquery/jquery.jqGrid.min'></g:javascript>
+    <g:javascript library='jquery/jquery-ui-1.8.14.min'></g:javascript>
+    <g:javascript library='jquery/jquery.datatables.1.8.1'></g:javascript>
+    <g:layoutHead></g:layoutHead>
+    <link href="${resource(dir:'images',file:'favicon.ico')}" rel='shortcut 
icon' type='image/x-icon' />
+    <link href="${resource(dir:'css',file:'reset.css')}" rel='stylesheet' 
type='text/css' />
+    <link href="${resource(dir:'css',file:'ui.jqgrid.css')}" rel='stylesheet' 
type='text/css' />
+    <link href="${resource(dir:'css/smoothness',file:'jquery-ui-1.8.14.css')}" 
rel='stylesheet' type='text/css' />
+    <link href="${resource(dir:'css/console',file:'console-layout.css')}" 
rel='stylesheet' type='text/css' />
+  </head>
+  <body>
+    <g:layoutBody />
+    <g:render template='/shared/footer'></g:render>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/layouts/brooklyn.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/layouts/brooklyn.gsp 
b/usage/web-console/grails-app/views/layouts/brooklyn.gsp
new file mode 100644
index 0000000..e63e045
--- /dev/null
+++ b/usage/web-console/grails-app/views/layouts/brooklyn.gsp
@@ -0,0 +1,25 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
brooklyn.haml --%>
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>
+      <g:layoutTitle default='Brooklyn Web Console'></g:layoutTitle>
+    </title>
+    <g:javascript library='jquery/jquery-1.6.2'></g:javascript>
+    <g:javascript library='jquery/ui/jquery-ui-1.8.14'></g:javascript>
+    <g:javascript library='jquery/jquery.datatables.1.8.1'></g:javascript>
+    <g:javascript library='jquery/jquery.layout-latest'></g:javascript>
+    <g:javascript library='jquery/jquery.corner'></g:javascript>
+    <g:layoutHead></g:layoutHead>
+    <link href="${resource(dir:'images',file:'favicon.ico')}" rel='shortcut 
icon' type='image/x-icon' />
+    <link href="${resource(dir:'css',file:'reset.css')}" rel='stylesheet' 
type='text/css' />
+    <link href="${resource(dir:'css/cupertino',file:'jquery-ui-1.8.14.css')}" 
rel='stylesheet' type='text/css' />
+    <link href="${resource(dir:'css/console',file:'brooklyn-console.css')}" 
rel='stylesheet' type='text/css' />
+    <link href="${resource(dir:'css/console',file:'widget-dashboard.css')}" 
rel='stylesheet' type='text/css' />
+  </head>
+  <body>
+    <div class='outer-layout-container ui-layout-center' style='padding:0px 
!important;'>
+      <g:layoutBody />
+    </div>
+  </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/login/auth.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/login/auth.gsp 
b/usage/web-console/grails-app/views/login/auth.gsp
new file mode 100644
index 0000000..854d606
--- /dev/null
+++ b/usage/web-console/grails-app/views/login/auth.gsp
@@ -0,0 +1,79 @@
+<head>
+<meta name='layout' content='test' />
+<title>Login</title>
+<style type='text/css' media='screen'>
+#login {
+       margin:15px 0px; padding:0px;
+       text-align:center;
+}
+#login .inner {
+       width:260px;
+       margin:0px auto;
+       text-align:left;
+       padding:10px;
+       border-top:1px dashed #499ede;
+       border-bottom:1px dashed #499ede;
+       background-color:#EEF;
+}
+#login .inner .fheader {
+       padding:4px;margin:3px 0px 3px 
0;color:#2e3741;font-size:14px;font-weight:bold;
+}
+#login .inner .cssform p {
+       clear: left;
+       margin: 0;
+       padding: 5px 0 8px 0;
+       padding-left: 105px;
+       border-top: 1px dashed gray;
+       margin-bottom: 10px;
+       height: 1%;
+}
+#login .inner .cssform input[type='text'] {
+       width: 120px;
+}
+#login .inner .cssform label {
+       font-weight: bold;
+       float: left;
+       margin-left: -105px;
+       width: 100px;
+}
+#login .inner .login_message {color:red;}
+#login .inner .text_ {width:120px;}
+#login .inner .chk {height:12px;}
+</style>
+</head>
+
+<body>
+       <div id='login'>
+               <div class='inner'>
+                       <g:if test='${flash.message}'>
+                       <div class='login_message'>${flash.message}</div>
+                       </g:if>
+                       <div class='fheader'>Please Login..</div>
+                       <form action='${postUrl}' method='POST' id='loginForm' 
class='cssform' autocomplete='off'>
+                               <p>
+                                       <label for='username'>Login ID</label>
+                                       <input type='text' class='text_' 
name='j_username' id='username' />
+                               </p>
+                               <p>
+                                       <label for='password'>Password</label>
+                                       <input type='password' class='text_' 
name='j_password' id='password' />
+                               </p>
+                               <p>
+                                       <label for='remember_me'>Remember 
me</label>
+                                       <input type='checkbox' class='chk' 
name='${rememberMeParameter}' id='remember_me'
+                                       <g:if 
test='${hasCookie}'>checked='checked'</g:if> />
+                               </p>
+                               <p>
+                                       <input type='submit' value='Login' />
+                               </p>
+                       </form>
+               </div>
+       </div>
+<script type='text/javascript'>
+<!--
+(function(){
+       document.forms['loginForm'].elements['j_username'].focus();
+})();
+// -->
+</script>
+</body>

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/login/denied.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/login/denied.gsp 
b/usage/web-console/grails-app/views/login/denied.gsp
new file mode 100644
index 0000000..0d268b2
--- /dev/null
+++ b/usage/web-console/grails-app/views/login/denied.gsp
@@ -0,0 +1,10 @@
+<head>
+<meta name='layout' content='main' />
+<title>Denied</title>
+</head>
+
+<body>
+<div class='body'>
+       <div class='errors'>Sorry, you're not authorized to view this 
page.</div>
+</div>
+</body>

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/shared/_banner.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/shared/_banner.gsp 
b/usage/web-console/grails-app/views/shared/_banner.gsp
new file mode 100644
index 0000000..6dce778
--- /dev/null
+++ b/usage/web-console/grails-app/views/shared/_banner.gsp
@@ -0,0 +1,4 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_banner.haml --%>
+<div align='right' class='layout-header' id='console-header'>
+  <h1 id='brooklyn-header'></h1>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/shared/_footer.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/shared/_footer.gsp 
b/usage/web-console/grails-app/views/shared/_footer.gsp
new file mode 100644
index 0000000..8184a4b
--- /dev/null
+++ b/usage/web-console/grails-app/views/shared/_footer.gsp
@@ -0,0 +1,2 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_footer.haml --%>
+<div align='center' class='layout-footer' id='console-footer'>Contact --- 
Donate --- Forum --- About</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/tabs/_activity.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/tabs/_activity.gsp 
b/usage/web-console/grails-app/views/tabs/_activity.gsp
new file mode 100644
index 0000000..c00b444
--- /dev/null
+++ b/usage/web-console/grails-app/views/tabs/_activity.gsp
@@ -0,0 +1,13 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_activity.haml --%>
+<div class='activity'>
+  <div class='tab-content-left-column'>
+    <table id='activity-data'></table>
+    <div id='activityStatus'>
+      <fieldset id='activityFieldset'>
+        <legend>Activity Status</legend>
+        <!-- /just put a large text box in here -->
+        <textarea id='logbox' readonly='true' wrap='hard'></textarea>
+      </fieldset>
+    </div>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/tabs/_effectors.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/tabs/_effectors.gsp 
b/usage/web-console/grails-app/views/tabs/_effectors.gsp
new file mode 100644
index 0000000..7778260
--- /dev/null
+++ b/usage/web-console/grails-app/views/tabs/_effectors.gsp
@@ -0,0 +1,15 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_effectors.haml --%>
+<div class='effector'>
+  <div class='tab-content-left-column'>
+    <table class='tab-content-table' id='effector-data'></table>
+  </div>
+  <div id='args'>
+    <form id='effector-invoke'>
+      <fieldset class='tab-content-right-column' id='effector-fieldset'>
+        <legend>Parameters</legend>
+        <div class='effector-args' id='effector-args'></div>
+        <input id='effectors-invoke-button' type='submit' value='Invoke' />
+      </fieldset>
+    </form>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/tabs/_location.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/tabs/_location.gsp 
b/usage/web-console/grails-app/views/tabs/_location.gsp
new file mode 100644
index 0000000..5f04d6b
--- /dev/null
+++ b/usage/web-console/grails-app/views/tabs/_location.gsp
@@ -0,0 +1,8 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_location.haml --%>
+<div class='map-container'>
+  <div id='map-canvas'></div>
+</div>
+<div class='tab-content-mini-column'>
+  <table id='location-data' style='width:100%;'></table>
+  <input id='toggle-location' type='button' value='Toggle Location' />
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/widgets/_circles.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/widgets/_circles.gsp 
b/usage/web-console/grails-app/views/widgets/_circles.gsp
new file mode 100644
index 0000000..865b603
--- /dev/null
+++ b/usage/web-console/grails-app/views/widgets/_circles.gsp
@@ -0,0 +1,11 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_circles.haml --%>
+<div class='portlet'>
+  <div class='portlet-header'>
+    Locations Map
+  </div>
+  <div class='portlet-content'>
+    <script src='http://maps.google.com/maps/api/js?sensor=false' 
type='text/javascript'></script>
+    <g:javascript src='console/dashboard/widgets/circles.js'></g:javascript>
+    <div id='circles-map'></div>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/widgets/_logger.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/widgets/_logger.gsp 
b/usage/web-console/grails-app/views/widgets/_logger.gsp
new file mode 100644
index 0000000..a00e470
--- /dev/null
+++ b/usage/web-console/grails-app/views/widgets/_logger.gsp
@@ -0,0 +1,18 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_logger.haml --%>
+<div class='portlet'>
+  <div class='portlet-header'>
+    Recent Logs
+  </div>
+  <div class='portlet-content'>
+    <textarea id='log-widget-textbox' readonly='true' wrap='hard'>
+      Waiting (timed) on unknown (sleep)
+      At: java.lang.Thread.sleep(Native Method)
+      sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)
+      
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+      java.lang.reflect.Method.invoke(Method.java:597)
+      org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
+      groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
+      
org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:130)
+    </textarea>
+  </div>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e24d3417/usage/web-console/grails-app/views/widgets/_recent-activity.gsp
----------------------------------------------------------------------
diff --git a/usage/web-console/grails-app/views/widgets/_recent-activity.gsp 
b/usage/web-console/grails-app/views/widgets/_recent-activity.gsp
new file mode 100644
index 0000000..0e7caa1
--- /dev/null
+++ b/usage/web-console/grails-app/views/widgets/_recent-activity.gsp
@@ -0,0 +1,18 @@
+<%-- DO NOT MODIFY THIS FILE, IT IS AUTOMATICALLY GENERATED. INSTEAD MODIFY 
_recent-activity.haml --%>
+<div class='portlet'>
+  <div class='portlet-header'>
+    Recent Activity
+  </div>
+  <div class='portlet-content' style='overflow:hidden !important;'>
+    <g:javascript 
src='console/dashboard/widgets/recent-activity.js'></g:javascript>
+    <!-- * Paginate code needs to go somewhere. Remote Pagination with JSON. 
*/ -->
+    <g:paginate controller="entity" action="allActivity" total="5" 
update="#recent-activity-table" />
+    <div id='activity-table-container'>
+      <table id='recent-activity-table'></table>
+      <div align='right' id='auto-refesh-container'>
+        Auto Update:
+        <input checked='checked' id='updateCheck' type='checkbox' />
+      </div>
+    </div>
+  </div>
+</div>
\ No newline at end of file

Reply via email to