http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/change-name-modal.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/change-name-modal.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/change-name-modal.html deleted file mode 100644 index 49cec81..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/change-name-modal.html +++ /dev/null @@ -1,29 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - - <h4 style="margin-bottom: 9px;">New Name</h4> - <p>Change the display name of an entity</p> - - <input type="text" id="new-name" style="width: 100%;" value="<%= name %>"></input> - - <div class="hide alert alert-error change-name-error-container" style="margin-top: 9px;"> - <strong>Error</strong> - <span class="change-name-error-message"></span> - </div>
http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/config-name.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/config-name.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/config-name.html deleted file mode 100644 index 2c44974..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/config-name.html +++ /dev/null @@ -1,34 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<% if (description || type) { %> -<span class="config-name" rel="tooltip" data-placement="left" - title="<% - if (description) { %><b><%- description %></b><br/><% } - if (type) { %>(<% - if (type.startsWith("java.lang.") || type.startsWith("java.util.")) type = type.substring(10); - %><%- type %>)<% } %>"> - <%- name %> -</span> -<% } else { %> -<span class="config-name"> - <%- name %> -</span> -<% } %> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/config.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/config.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/config.html deleted file mode 100644 index 82ca6c6..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/config.html +++ /dev/null @@ -1,33 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="table-scroll-wrapper" style="overflow: visible;"> -<table id="config-table" width="100%"> - <thead> - <tr> - <th>ID</th> - <th>Name</th> - <th>Value</th> - </tr> - </thead> - <tbody></tbody> -</table> -<div style="height: 30px;"></div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/details.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/details.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/details.html deleted file mode 100644 index 549f7e8..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/details.html +++ /dev/null @@ -1,38 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="tabbable"> - <ul class="nav nav-tabs entity-tabs"> - <li><a data-target="#summary" data-toggle="tab">Summary</a></li> - <li><a data-target="#sensors" data-toggle="tab">Sensors</a></li> - <li><a data-target="#effectors" data-toggle="tab">Effectors</a></li> - <li><a data-target="#policies" data-toggle="tab">Policies</a></li> - <li><a data-target="#activities" data-toggle="tab">Activity</a></li> - <li><a data-target="#advanced" data-toggle="tab">Advanced</a></li> - </ul> - <div class="tab-content"> - <div class="tab-pane" id="summary"><i>Nothing selected</i></div> - <div class="tab-pane" id="sensors"><i>Nothing selected</i></div> - <div class="tab-pane" id="effectors"><i>Nothing selected</i></div> - <div class="tab-pane" id="policies"><i>Nothing selected</i></div> - <div class="tab-pane" id="activities"><i>Nothing selected</i></div> - <div class="tab-pane" id="advanced"><i>Nothing selected</i></div> - </div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-modal.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-modal.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-modal.html deleted file mode 100644 index 97aafc7..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-modal.html +++ /dev/null @@ -1,37 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- modal to render effector--> - -<div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h3><%= entityName %> <%= name %></h3> - - <p><%= description %></p> -</div> - -<div class="modal-body"> - <p><i>No arguments required</i></p> -</div> - -<div class="modal-footer"> - <button type="button" class="btn btn-info btn-mini" data-dismiss="modal">Cancel</button> - <button type="button" class="btn btn-danger btn-mini invoke-effector">Invoke</button> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-row.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-row.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-row.html deleted file mode 100644 index c6b1a7c..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector-row.html +++ /dev/null @@ -1,27 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<tr> - <td class="effector-name"><%= name %></td> - <td><%= description %></td> - <td class="effector-action"> - <button class="btn btn-info btn-mini show-effector-modal" id="<%=cid%>">Invoke</button> - </td> -</tr> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector.html deleted file mode 100644 index d1a0aee..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/effector.html +++ /dev/null @@ -1,34 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<table id="effectors-table" class="table table-striped table-condensed nonDatatables" style="width: 100%;"> - <thead> - <tr> - <th>Name</th> - <th>Description</th> - <th>Action</th> - </tr> - </thead> - <tbody></tbody> -</table> -<div class="has-no-effectors for-empty-table hide"> - <i>No effectors available on this entity</i> -</div> -<div id="effector-modal" class="modal hide fade"></div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/entity-not-found.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/entity-not-found.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/entity-not-found.html deleted file mode 100644 index 9c705ed..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/entity-not-found.html +++ /dev/null @@ -1,24 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="padded-div"> - <p>Failed to load entity <strong><%= id %></strong>. Does it exist?</p> - <p>Try <a class="handy application-tree-refresh">reloading the applications list</a> or refreshing the page.</p> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/page.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/page.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/page.html deleted file mode 100644 index dbe89ec..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/page.html +++ /dev/null @@ -1,38 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="row row-fluid"> - <div class="span4" id="tree"> - <div class="navbar_top"> - <h3>Applications</h3> - <div class="apps-tree-toolbar"> - <i id="add-new-application" class="icon-br-plus-sign handy" /> - - <i class="icon-br-refresh application-tree-refresh handy" /> - </div> - </div> - <div id="app-tree"></div> - </div> - - <div class="span8" id="details"></div> -</div> -<div class="add-app"> - <div id="modal-container"></div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/param-list.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/param-list.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/param-list.html deleted file mode 100644 index 177e1c3..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/param-list.html +++ /dev/null @@ -1,30 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- effector param list template --> -<table id="params" class="table table-striped table-condensed"> - <thead> - <tr> - <th>Name</th> - <th>Value</th> - </tr> - </thead> - <tbody></tbody> -</table> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/param.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/param.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/param.html deleted file mode 100644 index b292012..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/param.html +++ /dev/null @@ -1,42 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!--effector param template --> -<tr class="effector-param" rel="tooltip" title="<%= description %></b><br><br><%= type %>" data-placement="left"> - <td class="param-name"><%= name %></td> - <!-- TODO: for now this just looks at the name of the parameter which is poor (and @Beta !). - Better will be to use a strongly-typed LocationCollection or (significantly better) supply a generic - server-side mechanism for populating options in some situations. --> - <% if (name == 'locations' || name == 'location') { %> - <td><div id="selector-container" class="input-medium param-value"></div></td> - <% } else if (type == 'java.lang.Boolean') { %> - <td> - <% if (defaultValue) { %> - <input type="checkbox" class="param-value" checked> - <% } else { %> - <input type="checkbox" class="param-value"> - <% } %> - </td> - <% } else { %> - <td><!-- use 1 line textarea so it can be resized --> - <textarea class="input-medium param-value"><%- defaultValue %></textarea> - </td> - <% } %> -</tr> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-config-row.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-config-row.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-config-row.html deleted file mode 100644 index cb2cdce..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-config-row.html +++ /dev/null @@ -1,31 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<tr class="policy-config-row"> - <td class="policy-config-name"><span - rel="tooltip" title="<b><%= description %></b><br/>(<%= type %>)" data-placement="left" - ><%= name %></span></td> - <td class="policy-config-value"><%= value %></td> - <td class="policy-config-action"> - <% if (reconfigurable) { %> - <button class="btn btn-info btn-mini show-policy-config-modal" id="<%= cid %>">Edit</button> - <% } %> - </td> -</tr> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-new.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-new.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-new.html deleted file mode 100644 index 49116d2..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-new.html +++ /dev/null @@ -1,37 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<form style="margin-bottom: 0;"> - <h4 style="margin-bottom: 9px;">Policy Type</h4> - <input id="policy-add-type" class="input-xlarge" type="text" name="policy-type" placeholder="Type"/> - <p>Enter the full type of the policy</p> - - <h4 style="margin-bottom: 9px; margin-top: 5px">Config Keys</h4> - <div class="policy-add-config-keys"></div> - <p> - Enter the full name of the config key and its value. Values will be coerced to the - appropriate type automatically. Blank keys and values will cause the property - to be ignored. Last key wins if any key is duplicated. - </p> - - <div class="hide alert alert-error policy-add-error-container" style="margin-top: 9px;"> - <strong>Error</strong> - <span class="policy-add-error-message"></span> - </div> - -</form> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-parameter-config.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-parameter-config.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-parameter-config.html deleted file mode 100644 index fa52331..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-parameter-config.html +++ /dev/null @@ -1,30 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<p> - <strong>Update the value for <%= name %></strong> -</p> -<p> - <%= description %> -</p> -<input id="policy-config-value" type="text" class="input-xlarge" name="value" value="<%= value %>" autofocus /> - -<div class="hide alert alert-error policy-add-error-container" style="margin-top: 9px; margin-bottom: 0;"> - <strong>Error</strong> - <span class="policy-add-error-message"></span> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-row.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-row.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-row.html deleted file mode 100644 index 0799ac0..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy-row.html +++ /dev/null @@ -1,32 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<tr class="policy-row" id="<%= cid %>"> - <td class="policy-name"><%= name %></td> - <td><%= state %></td> - <td class="policy-action"> - <% if (state == "RUNNING") { %> - <button class="btn btn-info btn-mini policy-stop" link="<%= summary.getLinkByName('stop') %>">Suspend</button> - <% } else if (state == "STOPPED") { %> - <button class="btn btn-info btn-mini policy-start" link="<%= summary.getLinkByName('start') %>">Resume</button> - <button class="btn btn-info btn-mini policy-destroy" link="<%= summary.getLinkByName('destroy') %>">Destroy</button> - <% } %> - </td> -</tr> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy.html deleted file mode 100644 index 33748b5..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/policy.html +++ /dev/null @@ -1,57 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<table id="policies-table" class="table table-striped table-condensed nonDatatables"> - <thead> - <tr> - <th width="50%">Name</th> - <th width="25%">State</th> - <th width="25%">Action</th> - </tr> - </thead> - <tbody></tbody> -</table> - -<div class="has-no-policies for-empty-table hide"> - <i>No policies are attached to this entity</i> -</div> - -<div id="policy-config" class="hide"> - <div class="table-scroll-wrapper"> - <table id="policy-config-table" style="width: 554px;"> - <thead> - <tr> - <th width="35%">Name</th> - <th width="55%">Value</th> - <th width="10%">Edit</th> - </tr> - </thead> - <tbody></tbody> - </table> - <div class="has-no-policy-config for-empty-table hide"> - <i>No configuration is available on this policy</i> - </div> - </div> -</div> - -<div id="policy-config-none-selected"> - <i>Select a policy above to view or edit configuration.</i> -</div> - -<button class="btn add-new-policy pull-right">Attach New Policy</button> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensor-name.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensor-name.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensor-name.html deleted file mode 100644 index 619aa32..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensor-name.html +++ /dev/null @@ -1,34 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<% if (description || type) { %> -<span class="sensor-name" rel="tooltip" data-placement="left" - title="<% - if (description) { %><b><%- description %></b><br/><% } - if (type) { %>(<% - if (type.startsWith("java.lang.") || type.startsWith("java.util.")) type = type.substring(10); - %><%- type %>)<% } %>"> - <%- name %> -</span> -<% } else { %> -<span class="sensor-name"> - <%- name %> -</span> -<% } %> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensors.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensors.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensors.html deleted file mode 100644 index cf992c4..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/sensors.html +++ /dev/null @@ -1,33 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="table-scroll-wrapper" style="overflow: visible;"> -<table id="sensors-table" width="100%"> - <thead> - <tr> - <th>ID</th> - <th>Name</th> - <th>Value</th> - </tr> - </thead> - <tbody></tbody> -</table> -<div style="height: 30px;"></div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/summary.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/summary.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/summary.html deleted file mode 100644 index ed90c75..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/summary.html +++ /dev/null @@ -1,107 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="app-summary"> - - <div id="title-and-info-row" style="white-space: nowrap;"> - <% if (entity.getLinkByName('iconUrl')) { %> - <div style="display: inline-block; vertical-align: bottom; padding-top: 12px; padding-bottom: 18px;"> - <img src="<%= entity.getLinkByName('iconUrl') %>" - style="max-width: 128px; max-height: 128px;"/> - </div> - <% } %> - - <div style="display: inline-block; vertical-align: bottom;"> - - <div class="name" style="margin-bottom: 12px; padding-right: 12px;"> - <h2><%= entity.get('name') %></h2> - </div> - - </div> - </div> - - <div class="toggler-region"> - <div class="toggler-header"> - <div class="toggler-icon icon-chevron-down"></div> - <div><b>Status</b></div> - </div> - <div class="inforow" style="position: relative;"> - - <div style="display: inline-block; padding-left: 8px; padding-right: 24px; padding-top: 6px;"> - <div class="info-name-value status hide"> - <div class="name">Status</div> - <div class="value"><i>Loading...</i></div> - </div> - <div class="info-name-value serviceUp hide"> - <div class="name">Service Up</div> - <div class="value"><i>Loading...</i></div> - </div> - <div class="info-name-value url hide" style="margin-top: 12px;"> - <div class="name">URL</div> - <div class="value"><i>Loading...</i></div> - </div> - - <div class="info-name-value type" style="margin-top: 12px;"> - <div class="name">Type</div> - <div class="value"><%= entity.get('type') %></div> - </div> - <div class="info-name-value id"> - <div class="name">ID</div> - <div class="value"><%= entity.get('id') %></div> - </div> - <div class="info-name-value catalogItemId hide"> - <div class="name">Catalog Item</div> - <div class="value"><a href="#v1/catalog/<%= (isApp ? "applications" : "entities") %>/<%= entity.get('catalogItemId') %>"><%= entity.get('catalogItemId') %></a></div> - </div> - - <div class="additional-info-on-problem hide" style="margin-top: 12px;"> - </div> - - <div id="status-icon" style="display: inline-block; padding-top: 12px; padding-bottom: 18px; padding-right: 8px; position: absolute; right: 0; top: 0;"></div> - - </div> - </div> - </div> - - <div id="entity-spec-yaml-toggler" class="toggler-region region-config hide" style="margin-top: 18px;"> - <div class="toggler-header user-hidden"> - <div class="toggler-icon icon-chevron-left"></div> - <div><b>Blueprint</b></div> - </div> - <div id="entity-spec-yaml" class="for-textarea hide"> - <textarea readonly="readonly" class="code-textarea"/> - </div> - </div> - - <div class="toggler-region region-config" style="margin-top: 18px;"> - <div class="toggler-header user-hidden"> - <div class="toggler-icon icon-chevron-left"></div> - <div><b>Config</b></div> - </div> - <div id="advanced-config" class="hide"/> - </div> - - <!-- TODO would like to show more info here, nicely; e.g. - children, members (above? new section here ?) - active tasks (new section here) - locations / map (new section here ?) - --> - -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-empty.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-empty.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-empty.html deleted file mode 100644 index 300ec8f..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-empty.html +++ /dev/null @@ -1,27 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="navbar_main_wrapper"> - <div class="navbar_main"> - <div style="padding-left: 12px; padding-top: 12px; padding-bottom: 300px;"> - <i>No applications</i> - </div> - </div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-item.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-item.html b/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-item.html deleted file mode 100644 index f13107a..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/apps/tree-item.html +++ /dev/null @@ -1,83 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<% - var isLoaded = (model ? true : false); - var isApp = (parentId ? false : true); - - // Only emphasise applications at the top level, not as indirect references. - isApp &= !indirect; - - if (!isLoaded) { -%> - <i>Loading... (<%= id %>)</i> -<% } else { - var hasChildren = model.hasChildren() || model.hasMembers(); - var iconUrl = model.get('iconUrl'); - - var entityIconSize = isApp ? 40 : 30; - var statusIconSize = isApp ? 24 : 16; - - var chevronLeft = (isApp ? 5.5 : 1.5); - var minHeight = hasChildren && statusIconUrl ? entityIconSize : 24; - var statusColumnWidth = hasChildren || statusIconUrl || (!isApp && !iconUrl /* for children, insert space so things line up */) ? statusIconSize : 0; -%> - - <span class="entity_tree_node name entity" id="span-<%= id %>" - data-entity-id="<%= id %>" data-entity-type="<%= model.get('type') %>" data-parent-id="<%= parentId %>" data-app-id="<%= model.get('applicationId') %>"> - <a href="#v1/applications/<%= model.get('applicationId') %>/entities/<%= id %>"> - - <div style="min-width: <%= statusColumnWidth + (iconUrl ? entityIconSize : 6)%>px; min-height: <%= minHeight %>px; max-height: 40px; display: inline-block; margin-right: 4px; vertical-align: middle;"> - <% if (statusIconUrl) { %> - <div style="position: absolute; left: 0px; margin: auto; top: <%= isApp && hasChildren ? 3 : 2 %>px;<% if (!hasChildren) { %> bottom: 0px;<% } %>"> - <img src="<%= statusIconUrl %>" style="max-width: <%= statusIconSize %>px; max-height: <%= statusIconSize %>px; margin: auto; position: absolute; top: -1px;<% if (!hasChildren) { %> bottom: 0px;<% } %>"> - </div> - <% } %> - - <% if (hasChildren) { %> - <div style="position: absolute; left: <%= chevronLeft %>px; margin: auto; <%= statusIconUrl ? "bottom: -1px;" : isApp ? "top: 6px;" : "top: 6px;" %>"> - <div class="toggler-icon icon-chevron-right tree-node-state tree-change"> - <div class="light-popup"> - <div class="light-popup-body"> - <div class="light-popup-menu-item tree-change tr-toggle tr-default">Toggle Children</div> - <div class="light-popup-menu-item tree-change tr-expand">Expand</div> - <div class="light-popup-menu-item tree-change tr-expand-all">Expand All</div> - <div class="light-popup-menu-item tree-change tr-collapse">Collapse</div> - <div class="light-popup-menu-item tree-change tr-collapse-all">Collapse All</div> - </div> - </div> - </div> - </div> - <% } %> - - <% if (iconUrl) { %> - <img src="<%= iconUrl %>" style="max-width: <%= entityIconSize %>px; max-height: <%= entityIconSize %>px; position: absolute; padding-left: 5px; left: <%= statusColumnWidth %>px; top: 0; bottom: 0; margin: auto;"> - <% } %> - </div> - - <% if (indirect) { %> - <i class="indirection-icon icon-share-alt"></i> - <% } %> - <span style="max-height: 18px; padding-right: 6px; position: relative; margin: auto; top: 2px; bottom: 0;"><%= model.get('name') %></span> - - </a> - </span> - -<% } %> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-catalog-entry.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-catalog-entry.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-catalog-entry.html deleted file mode 100644 index 238dd77..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-catalog-entry.html +++ /dev/null @@ -1,34 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<div class="catalog-details"> - - <h2>Add to Catalog</h2> - <br/> - - <div data-toggle="buttons-radio"> - <button class="btn btn-large show-context" data-context="yaml">YAML</button> - <button class="btn btn-large show-context" data-context="location">Location</button> - </div> - - <hr/> - - <div id="catalog-add-form"> - <div class="context">Select the type you wish to add</div> - </div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-location.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-location.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-location.html deleted file mode 100644 index 4748617..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-location.html +++ /dev/null @@ -1,36 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<form> - <label for="name" class="control-label">Name</label> - <input id="name" name="name" type="text" placeholder="e.g. My Cloud Region #3" class="input-xlarge"> - - <label for="spec" class="control-label">Spec</label> - <input id="spec" name="spec" type="text" placeholder="e.g. jclouds:cloud:region" class="input-xlarge"> - - <h4>Configuration</h4> - <div id="new-location-config"></div> - - <button class='catalog-submit-button btn' data-loading-text='Saving...'>Submit</button> - - <p class="catalog-save-error hide"> - <span class="alert-error"> - <span class="catalog-error-message"><strong>Error</strong></span> - </span> - </p> -</form> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-yaml.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-yaml.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-yaml.html deleted file mode 100644 index bcd2d17..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/add-yaml.html +++ /dev/null @@ -1,29 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<form> - <label for="new-blueprint">Enter blueprint:</label> - <textarea id='new-blueprint' name='yaml' rows='5' cols='15'></textarea> - - <button class='catalog-submit-button btn' data-loading-text='Saving...'>Submit</button> - <p class="catalog-save-error hide"> - <span class="alert-error"> - <span class="catalog-error-message"><strong>Error</strong></span> - </span> - </p> -</form> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-entity.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-entity.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-entity.html deleted file mode 100644 index 2e43fe5..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-entity.html +++ /dev/null @@ -1,178 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="catalog-details"> - - <div class="float-right"> - <button data-name="<%= model.id %>" class="btn btn-danger delete">Delete</button> - </div> - - <% if (model.get("name") != model.get("symbolicName")) { %> - <h2><%- model.get("name") %></h2> - <p><%- model.getVersionedAttr("symbolicName") %></p> - <% } else { %> - <h2><%- model.getVersionedAttr("symbolicName") %></h2> - <% } %> - <% if (model.get("description")) { %> - <p><%- model.get("description") %></p> - <% } %> - - <div id="catalog-details-accordion" class="accordion"> - <% if (model.get("planYaml")) { %> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#catalog-details-accordion" href="#collapseYaml"> - Plan - </a> - </div> - <div id="collapseYaml" class="accordion-body collapse"> - <div class="accordion-inner"> - <textarea rows="15" readonly><%- model.get("planYaml") %></textarea> - </div> - </div> - </div> - <% } %> - <% if (viewName != "policies") { %> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#catalog-details-accordion" href="#collapseConfiguration"> - Configuration - </a> - </div> - <div id="collapseConfiguration" class="accordion-body collapse"> - <div class="accordion-inner"> - <% if (model.error) { %> - <p><i class="icon-exclamation-sign"></i> Could not load configuration</p> - <% } else if (!model.get("config")) { %> - <p>Loading...</p> - <% } else if (_.isEmpty(model.get("config"))) { %> - <p>No configuration</p> - <% } else { %> - <% var skip = [ - 'name', - 'description', - 'label', - 'priority', - 'reconfigurable' - ]; %> - <% _.each(model.get("config"), function(object, index) { %> - <div style="padding-bottom: 12px;"> - <p><strong><%- object.name %></strong>: <%- object.description %></p> - <div style="margin-left: 24px;"> - <table class="table table-striped table-condensed nonDatatables"> - <tbody> - <% _.each(object, function(value, key) { %> - <% if (!_.contains(skip, key)) { %> - <tr> - <td><%- key %></td> - <td><%- typeof value === "string" ? value : JSON.stringify(value) %></td> - </tr> - <% } %> - <% }); %> - </tbody> - </table></div> - </div> - <% }); %> - <% } %> - </div> - </div> - </div> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#catalog-details-accordion" href="#collapseSensors"> - Sensors - </a> - </div> - <div id="collapseSensors" class="accordion-body collapse"> - <div class="accordion-inner"> - <% if (model.error) { %> - <p><i class="icon-exclamation-sign"></i> Could not load sensors</p> - <% } else if (!model.get("sensors")) { %> - <p>Loading...</p> - <% } else if (_.isEmpty(model.get("sensors"))) { %> - <p>No sensors</p> - <% } else { %> - <table class="table table-striped table-condensed nonDatatables"> - <thead> - <tr> - <th>Name</th> - <th>Type</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <% _.each(model.get("sensors"), function(object, index) { %> - <tr> - <td><%- object.name %></td> - <td><%- object.type %></td> - <td><%- object.description %></td> - </tr> - <% }); %> - </tbody> - </table> - <% } %> - </div> - </div> - </div> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#catalog-details-accordion" href="#collapseEffectors"> - Effectors - </a> - </div> - <div id="collapseEffectors" class="accordion-body collapse"> - <div class="accordion-inner"> - <% if (model.error) { %> - <p><i class="icon-exclamation-sign"></i> Could not load effectors</p> - <% } else if (!model.get("effectors")) { %> - <p>Loading...</p> - <% } else if (_.isEmpty(model.get("effectors"))) { %> - <p>No effectors</p> - <% } else { %> - <% _.each(model.get("effectors"), function(object, index) { %> - <div style="padding-bottom: 12px;"> - <p><strong><%- object.name %></strong>: <%- object.description %></p> - <% if (!object.parameters || _.isEmpty(object.parameters)) { %> - <p>No parameters</p> - <% } else { %> - <div style="margin-left: 24px;"> - <table class="table table-striped table-condensed nonDatatables"> - <tbody> - <% _.each(object.parameters, function(parameter, index) { %> - <% _.each(parameter, function(value, key) { %> - <tr> - <td><%- key %></td> - <td><%- value %></td> - </tr> - <% }); %> - <% }); %> - </tbody> - </table> - </div> - <% } %> - </div> - <% }); %> - <% } %> - </div> - </div> - </div> - <% } %> - </div> - -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-generic.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-generic.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-generic.html deleted file mode 100644 index 49a29a0..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-generic.html +++ /dev/null @@ -1,45 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="catalog-details"> - - <div class="float-right"> - <button data-name="<%= model.id %>" class="btn btn-danger delete">Delete</button> - </div> - - <% if (model.get("name") !== undefined) { %> - <h2><%= model.get("name") %></h2> - <% } else if (model.get("type") !== undefined) { %> - <h2><%= model.get("type") %></h2> - <% } %> - - <dl> - <% _.each(model.attributes, function(value, key) { %> - <% if (value) { %> - <dt><%= key %></dt> - <% if (_.isObject(value)) { %> - <dd>Not shown: is a complex object</dd> - <% } else { %> - <dd><%= value %></dd> - <% } %> - <% } %> - <% }) %> - </dl> - -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-location.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-location.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-location.html deleted file mode 100644 index 03dd596..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/details-location.html +++ /dev/null @@ -1,59 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="catalog-details"> - - <h3><%- model.getIdentifierName() %></h3> - - <div class="float-right"> - <button data-name="<%= model.getIdentifierName() %>" class="btn btn-danger delete">Delete</button> - </div> - - <br/> - <table> - <tr><td><strong>Display Name:</strong> </td><td><%- model.getPrettyName() || "" %></td></tr> - <tr><td><strong>Reference Name:</strong> </td><td><%- model.get("name") || "" %></td></tr> - <tr><td><strong>Internal ID:</strong> </td><td><%- model.get("id") || "" %></td></tr> - <tr><td><strong>Implementation Spec:</strong> </td><td><%- model.get("spec") || "" %></td></tr> - </table> - - <br/> - -<% if (!model.get("config") || _.isEmpty(model.get("config"))) { %> - <!-- either no config or it comes from a yaml plan and config not yet available; - TODO need to use the /v1/catalog/location API not the /v1/locations/ API --> -<% } else { %> - - <table class="table table-striped table-condensed nonDatatables"> - <thead><tr> - <th>Configuration Key</th> - <th>Value</th> - </tr></thead> - <tbody> - <% _.each(model.get("config"), function(value, key) { %> - <tr> - <td style="border-left:none; width:50%;"><%- key%></td> - <td><%- value%></td> - </tr> - <% }); %> - </tbody> - </table> -<% } %> - -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/nav-entry.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/nav-entry.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/nav-entry.html deleted file mode 100644 index e739704..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/nav-entry.html +++ /dev/null @@ -1,19 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<div data-cid="<%= cid %>" class="accordion-nav-row <%= extraClasses %> <%= isChild ? 'accordion-nav-child' : '' %>"><%- type %></div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/catalog/page.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/page.html b/brooklyn-ui/src/main/webapp/assets/tpl/catalog/page.html deleted file mode 100644 index dc1b102..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/catalog/page.html +++ /dev/null @@ -1,37 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> -<div id="catalog-resource"> - <div class="row row-fluid"> - <div class="span4" id="accord"> - <div class="navbar_top"> - <h3>Catalog</h3> - <div class="apps-tree-toolbar"> - <i id="add-new-thing" class="icon-br-plus-sign handy"></i> - - <i class="icon-br-refresh refresh handy"></i> - </div> - </div> - <div class="navbar_main_wrapper"> - <div class="catalog-accordion-parent catalog-accordion-wrapper"></div> - </div> - </div> - - <div class="span8" id="details"></div> - </div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/help/page.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/help/page.html b/brooklyn-ui/src/main/webapp/assets/tpl/help/page.html deleted file mode 100644 index c8e5c8a..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/help/page.html +++ /dev/null @@ -1,77 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- Help page --> -<div class="container container-fluid single-main-container brooklyn-help-page"> -<div id="help-page"> - <div class="help-logo-right"><img width="450" src="/assets/img/bridge.png"/></div> - <h3>Brooklyn Help</h3> - - <p>This is the Brooklyn JavaScript web client for the REST API.<br/> - Brooklyn is an Apache-licensed open-source project for deployment and management. - </p> - - <p>You are currently using Brooklyn Version 0.9.0-SNAPSHOT.</p> <!-- BROOKLYN_VERSION --> - - <hr/> - Some useful references include: - <ul> - <li><a href="http://brooklyn.io">Brooklyn Project web page</a></li> - <li><a href="http://github.com/brooklyncentral/brooklyn">Code at Github</a></li> - </ul> - <p> - Note you can observe the REST requests made by the Javascript GUI - through the developers console in many browsers. - <hr/> - Some miscellaneous Brooklyn control options are: - <ul> - <li><a href="/logout">Log out</a></li> - <li>Shutdown Brooklyn Server: <a href="javascript:postShutdown(true)">stop all apps</a> or <a href="javascript:postShutdown(false)">leave apps running</a></li> - <script type="text/javascript"> - function postShutdown(stopAppsFirst) { - if (window.confirm("Really shutdown the Brooklyn server?")) { - $.ajax({ - type:"POST", - url:"/v1/server/shutdown", - data: { stopAppsFirst: stopAppsFirst, shutdownTimeout: 0, requestTimeout: 0 }, - success:function (data) { - // unfaded if server restarted, in router.js ServerCautionOverlay - $('#application-content').fadeTo(500,0.1); - }, - error: function(data) { - $('#application-content') - .fadeTo(200,0.2) - .delay(200).fadeTo(200,1) - .delay(200).fadeTo(100,0.2) - .delay(200).fadeTo(200,1) -// .delay(200).fadeTo(100,0.2) -// .delay(200).fadeTo(200,1) - // TODO render the error better than poor-man's flashing - - console.error("ERROR shutting down") - console.debug(data) - }}) - } - } - </script> - </ul> - (These are living here until a more appropriate home for them is built.) -</div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/home/app-entry.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/home/app-entry.html b/brooklyn-ui/src/main/webapp/assets/tpl/home/app-entry.html deleted file mode 100644 index 13e7ab3..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/home/app-entry.html +++ /dev/null @@ -1,23 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- Application entry template inside the main application page --> -<td><a href="#<%= link && link[0]=='/' ? link.substring(1) : link %>"><%= name %></a></td> -<td><%= status %></td> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/home/applications.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/home/applications.html b/brooklyn-ui/src/main/webapp/assets/tpl/home/applications.html deleted file mode 100644 index 3c38989..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/home/applications.html +++ /dev/null @@ -1,84 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- Applications page template --> -<div class="home-first-row container container-fluid"> - - <div class="row home-summaries-row"><!-- inserted by JS (templated by summaries.html) --></div> - -</div> - -<div class="home-second-row"><div class="container container-fluid"> - - <div class="row home-widgets-row"> - - <div class="map-container"> - <div id="circles-map" class="circles-map"> - <div id="circles-map-message" class="circles-map-message">(map loading)</div> - </div> - </div> - - <div class="apps-summary-container"> - - <div id="applications"> - <table class="table table-striped table-bordered table-condensed"> - <thead> - <th>Application</th> - <th>Status</th> - </thead> - <tbody id="applications-table-body"> - </tbody> - </table> - </div> - - <div id="ha-summary"></div> - - <dl class="dl-horizontal"></dl> - <div id="new-application-resource"> - <button id="add-new-application" type="button" class="btn btn-info"> - Add Application</button> - </div> - - <dl class="dl-horizontal"></dl> - <div id="reload-brooklyn-properties-resource"> - <button id="reload-brooklyn-properties" type="button" class="btn btn-info"> - Reload Properties</button> - </div> - <div id="reload-brooklyn-properties-indicator" class="throbber hide" style="float: right;"> - <img src="/assets/images/throbber.gif"/> - </div> - - <dl class="dl-horizontal"></dl> - <div id="clear-ha-node-records-resource"> - <button id="clear-ha-node-records" type="button" class="btn btn-info"> - Clear HA Node Records</button> - </div> - <div id="clear-ha-node-records-indicator" class="throbber hide" style="float: right;"> - <img src="/assets/images/throbber.gif"/> - </div> - - </div> - - </div> -</div></div> - -<div class="add-app"> - <div id="modal-container"></div> -</div> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/home/ha-summary.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/home/ha-summary.html b/brooklyn-ui/src/main/webapp/assets/tpl/home/ha-summary.html deleted file mode 100644 index b109303..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/home/ha-summary.html +++ /dev/null @@ -1,32 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<table class="table table-striped table-bordered table-condensed"> - <thead> - <tr> - <th>Server</th> - <th>Status</th> - <th>Last seen</th> - </tr> - </thead> - <tbody class="ha-summary-table-body"> - <tr><td colspan="3"><i>Loading...</i></td></tr> - </tbody> -</table> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/home/server-caution.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/home/server-caution.html b/brooklyn-ui/src/main/webapp/assets/tpl/home/server-caution.html deleted file mode 100644 index 94bd622..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/home/server-caution.html +++ /dev/null @@ -1,106 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<div class="server-caution-overlay overlay-with-opacity"></div> -<div class="server-caution-overlay"> - <div class="overlay-content"> - <h1 class="lead">Warning!</h1> - -<% if (!loaded) { %> - <p><strong> - Connecting to server...</strong></p> - - <p> - No response from server (yet). - Please check your network connection and the URL, or if you are on a slow connection simply be patient! - This dialog will disappear if and when the server responds.</p> - - <p><i> - If you understand the risks, that information may be unavailable and operations may fail, - and wish to proceed regardless, click <a id="dismiss-standby-warning">here</a>.</i></p> - -<% } else if (shuttingDown) { %> - <p><strong> - Server shutting down...</strong></p> - - <p> - The Brooklyn server is shutting down. - This dialog will disappear if and when the server is restarted at this address. - If in doubt, contact your system administrator.</p> - - <p><i> - If you understand the risks, that information may be unavailable and operations may fail, - and wish to proceed regardless, click <a id="dismiss-standby-warning">here</a>.</i></p> - -<% } else if (!up) { %> - <div style="float: right; position: relative; top: -45px; height: 0; overflow: visible;"> - <img src="/assets/img/icon-status-starting.gif" width="60"/></div> - - <p><strong> - Starting up...</strong></p> - - <p> - The Brooklyn server is starting. - It is recommended to wait before proceeding. - This dialog will disappear when the server is ready.</p> - - <p><i> - If you understand the risks, that information may be incomplete and operations may fail, - and wish to proceed regardless, click <a id="dismiss-standby-warning">here</a>.</i></p> - -<% } else if (healthy && !master) { %> - <p><strong> - This Brooklyn server is not the high availability master.</strong></p> - - <p> - It is recommended not to use this server directly.</p> - - <% if (masterUri) { %> - <p>Redirecting to the master server at <a href="<%= masterUri %>"><%= masterUri %></a> shortly.</p> - <% } else { %> - <p>The address of the master Brooklyn server is not currently known.</p> - <% } %> - - <p><i> - If you understand the risks, that write operations will likely fail, - and wish to proceed regardless, click <a id="dismiss-standby-warning">here</a>.</i></p> - -<% } else { %> - <p><strong> - This Brooklyn server has errors.</strong></p> - - <p> - Please check with your system administrator.</p> - - <% if (healthy) { /* this page should not be displayed in this case */ %> - <p> - The misconfiguration may be in Javascript as the server is reporting it is healthy.</p><% } %> - - <p><i> - If you would like to debug the server, click <a id="dismiss-standby-warning">here</a> - to dismiss this warning until you reload this page. - (You should reload the page once you believe the errors are fixed - to confirm that this dialog does not return.) - </i></p> - -<% } %> - - </div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/home/summaries.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/home/summaries.html b/brooklyn-ui/src/main/webapp/assets/tpl/home/summaries.html deleted file mode 100644 index 8562513..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/home/summaries.html +++ /dev/null @@ -1,38 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - - <div class="roundedSummary"><div class="roundedSummaryText"> - <span class="big" id="numApps"><%- apps.size() %></span> - app<%- apps.size()==1 ? "" : "s" %> running<br/> - <!-- in <span class="big">3</span> locations<br/> - with <span class="big">8</span> machines --> - </div></div> - <!-- - <div class="roundedSummary"><div class="roundedSummaryText"> - <span class="big">6</span> app and <span class="big">44</span> entity<br/> - templates available - </div></div> - --> - <div class="roundedSummary"><div class="roundedSummaryText"> - <span class="big"><%- locations.size() %></span> location<%- locations.size()==1 ? "" : "s" %> configured<br/> - <!-- with <span class="big">14</span> active machines --> - </div></div> - - <button class="roundedSummary addApplication" type="button">add application</button> http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/18b073a9/brooklyn-ui/src/main/webapp/assets/tpl/labs/page.html ---------------------------------------------------------------------- diff --git a/brooklyn-ui/src/main/webapp/assets/tpl/labs/page.html b/brooklyn-ui/src/main/webapp/assets/tpl/labs/page.html deleted file mode 100644 index a0097b6..0000000 --- a/brooklyn-ui/src/main/webapp/assets/tpl/labs/page.html +++ /dev/null @@ -1,195 +0,0 @@ - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you 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. ---> - -<!-- labs page : this is not included in the menu, but by entering the url - http://localhost:8081/#/labs - this page will load, showing colours and doing other experiments --> -<div class="container container-fluid single-main-container brooklyn-labs-page"> -<div id="labs-page"> - -<!-- --> -<!-- demo the colour themese we use --> - -<h1>Colours</h1><br/> - -<style media="screen" type="text/css"> -.swatch { - padding: 10px 10px 10px 5px; - margin: 10px 5px; - display: inline-block; - border: 2px solid #A0A0A0; -} -</style> - -<script> -var swatch = function(bg, fg, bo) { - var bgR = bg ? bg : '#808080'; - var fgR = fg ? fg : '#202020'; - var boR = bo ? bo : '#A0A0A0'; - $('#swatches').append('<div class="swatch" style="background-color: '+bgR+'; color: '+fgR+'; border: 2px solid '+boR+';">' - +'<div>'+(bg ? 'bg:'+bg : ' ')+'</div>' - +'<div>'+(fg ? 'fg:'+fg : ' ')+'</div>' - +'<div>'+(bo ? 'bo:'+bo : ' ')+'</div>' - +'</div>'); -} - -$(document).ready(function() { - // display standard color themese we use for easy reference - var colors = [ - // border colors - //'#EEE', '#CCC', '#793', - // text colors - //'#F0F4E8' - // background colors - //'#A8B8B0', '#e0f0e0', '#e0e8e0', - ]; - - swatch('#492') - swatch('#58AA33') - swatch('#77AA3E') - swatch('#98B890') // selected alt - swatch('#A8B8B0') // paging numbers - swatch('#A8B8B0', null, '#CCC') - swatch('#A8B8B0', null, '#EEE') - swatch('#B8C8B0') // selected - swatch('#d0d8d0') // app content - swatch('#D8E0D4') // opened row - swatch('#d8e4d0') // table body - swatch('#E0E4E0') // table row hover, table header - swatch('#e8e8e8') // app content - swatch('#f0f4f0') // app content - swatch('#F9F9F9') // table odd - swatch('#FFFFFF') // table even - swatch('#261', '#F0F4E8', null) - swatch(null, '#182018') // tree node - swatch(null, '#382') // links - swatch(null, '#65AA34') // hover for above - swatch(null, '#273') - swatch('#f9f9f9', null, '#d4d4d4') // tabs - swatch('#f9f9f9', '#505050', '#a1cb8c') // add app - swatch('#f9f9f9', '#58a82e', '#58a82e') // add app hover - - - - for (c in colors) { -// $('#swatches').append('<div class="swatch" style="background-color: '+colors[c]+';">'+colors[c]+'</div>'); - } -}) -</script> - -<div id="swatches"> -</div> - - -<br/><br/> -<h1>Icons</h1><br/> - -<div><b>Glyphs</b></div><br/> -<img src="/assets/img/glyphicons-halflings.png"/> - - -<br/><br/> -<h1>Experimental Config</h1><br/> - -<br/><br/> -<div><b>Refresh pages (globally in JS)</b></div><br/> - -<script> -var updateGlobalRefreshDisplay = function() { - require(["brooklyn"], function(b) { - $('#globalRefresh').html(''+b.refresh) - }) -} - -var toggleGlobalRefresh = function() { - require(["brooklyn"], function(b) { - b.toggleRefresh(); - updateGlobalRefreshDisplay(); - }) -} - -$(document).ready(function() { - updateGlobalRefreshDisplay() -}) -</script> - -Brooklyn Global Auto Refresh is: <b><span id="globalRefresh">?</span> -<span onclick="javascript:toggleGlobalRefresh()"><i>[change]</i></span></b> -<br/><span><i>(this setting controls whether things do auto refresh; -disabling globally can be helpful when testing)</i></span> - - - - -<br/><br/> -<h1>Debug</h1><br/> - - -<br/><br/> -<div><b>Fade Practice</b></div><br/> - -<script> -var fadeHello = function() { - require(["view/viewutils"], function(v) { - log('fading') - v.fadeToIndicateInitialLoad($('#hello')) - }) -} -var showHello = function() { - require(["view/viewutils"], function(v) { - log('unfading') - v.cancelFadeOnceLoaded($('#hello')) - }) -} -</script> -<div id="hello">I'm a region which fades.</div> -<div><span onclick="javascript:fadeHello()">fade</span> <span onclick="javascript:showHello()">show</span></div> - - - -<br/><br/> -<div><b>Ajax Practice</b></div><br/> - - <script type="text/javascript"> - function fetchSummat() { - log("fetching") - $.ajax({ - type:"GET", - url:"/v1/applications/dI6fIDvw/entities/dI6fIDvw/sensors/service.state", - success:function (data) { - log("fetch success - "+data) - var a = data; - log(typeof a) - log(a) - }, - error: function(data) { - log("fetch fail") - }}) - } - </script> - -<div> - <span onclick="javascript:fetchSummat()">fetch</span> -</div> - - - -</div> -</div>
