ソースを参照

HUE-359. Allow JFrame Gallery to read from multiple directories

* Moving Hue specific gallery pages into a Hue directory.
* Linking to the JFrame repo's test pages
* Removing the tests from Hue that are now in that JFrame repo
* Cleaning up some jframe gallery demos
* Moving the jframegallery button bar to the footer.
Aaron Newton 15 年 前
コミット
6f5af09f77
84 ファイル変更311 行追加4850 行削除
  1. 0 33
      apps/jframegallery/src/jframegallery/templates/gallery/Hide.parent.linker.html
  2. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.Paginator.html
  3. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.html
  4. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Button.html
  5. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Grid.html
  6. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Icon.html
  7. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/app-launcher.html
  8. 8 7
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/chooser.linker.html
  9. 39 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/errors.html
  10. 4 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/flash.html
  11. 49 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/forms_with_dependencies.mako
  12. 7 3
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/forwarding.html
  13. 0 0
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/frame.tips.html
  14. 2 2
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/redirect.html
  15. 1 0
      apps/jframegallery/src/jframegallery/templates/gallery/JFrame_Demos
  16. 0 44
      apps/jframegallery/src/jframegallery/templates/gallery/Load_without_scrolling.html
  17. 0 36
      apps/jframegallery/src/jframegallery/templates/gallery/Refresh.with.params.mako
  18. 0 36
      apps/jframegallery/src/jframegallery/templates/gallery/accordion.html
  19. 0 73
      apps/jframegallery/src/jframegallery/templates/gallery/ajax-target.html
  20. 0 28
      apps/jframegallery/src/jframegallery/templates/gallery/ajax.spinner.target.html
  21. 0 142
      apps/jframegallery/src/jframegallery/templates/gallery/anchor_tags_that_scroll.html
  22. 0 49
      apps/jframegallery/src/jframegallery/templates/gallery/art-button.html
  23. 0 18
      apps/jframegallery/src/jframegallery/templates/gallery/art-button.yml
  24. 0 34
      apps/jframegallery/src/jframegallery/templates/gallery/art-inputs.html
  25. 0 27
      apps/jframegallery/src/jframegallery/templates/gallery/autocomplete.html
  26. 0 35
      apps/jframegallery/src/jframegallery/templates/gallery/check.all.or.none.html
  27. 0 33
      apps/jframegallery/src/jframegallery/templates/gallery/collapser.html
  28. 0 33
      apps/jframegallery/src/jframegallery/templates/gallery/context-menu.html
  29. 0 83
      apps/jframegallery/src/jframegallery/templates/gallery/css.widget.graph.html
  30. 0 37
      apps/jframegallery/src/jframegallery/templates/gallery/data.group.toggle.html
  31. 0 45
      apps/jframegallery/src/jframegallery/templates/gallery/double.click-delegator.html
  32. 0 37
      apps/jframegallery/src/jframegallery/templates/gallery/errors.html
  33. 0 700
      apps/jframegallery/src/jframegallery/templates/gallery/filter.input.html
  34. 0 108
      apps/jframegallery/src/jframegallery/templates/gallery/fit.text.(table).html
  35. 0 29
      apps/jframegallery/src/jframegallery/templates/gallery/fit.text.html
  36. 0 35
      apps/jframegallery/src/jframegallery/templates/gallery/form.validation.html
  37. 0 23
      apps/jframegallery/src/jframegallery/templates/gallery/form_popup_interaction.html
  38. 0 45
      apps/jframegallery/src/jframegallery/templates/gallery/forms_with_dependencies.mako
  39. 0 31
      apps/jframegallery/src/jframegallery/templates/gallery/forwarding.html
  40. 0 28
      apps/jframegallery/src/jframegallery/templates/gallery/growl.redirect.html
  41. 0 68
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.check.selected.html
  42. 0 20
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.check.selected.yml
  43. 0 116
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.configurable.columns.mako
  44. 0 19
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.configurable.columns.yml
  45. 0 697
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.html
  46. 0 64
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.keyboard.kids.html
  47. 0 126
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.multi-select.menu.html
  48. 0 68
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.resizable.columns.html
  49. 0 100
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.treeview.ajax.mako
  50. 0 260
      apps/jframegallery/src/jframegallery/templates/gallery/html-table.treeview.html
  51. 0 28
      apps/jframegallery/src/jframegallery/templates/gallery/ignored-links.html
  52. 0 58
      apps/jframegallery/src/jframegallery/templates/gallery/jframe.sizeTo.html
  53. 0 36
      apps/jframegallery/src/jframegallery/templates/gallery/multi-checks.html
  54. 0 32
      apps/jframegallery/src/jframegallery/templates/gallery/overtext.html
  55. 0 112
      apps/jframegallery/src/jframegallery/templates/gallery/partial_refresh.mako
  56. 0 28
      apps/jframegallery/src/jframegallery/templates/gallery/post-load.alert.popup.html
  57. 0 29
      apps/jframegallery/src/jframegallery/templates/gallery/post-load.alert.popup.jframe.renders.html
  58. 0 43
      apps/jframegallery/src/jframegallery/templates/gallery/post-load.prompt.popup.html
  59. 0 28
      apps/jframegallery/src/jframegallery/templates/gallery/posteditor.html
  60. 0 44
      apps/jframegallery/src/jframegallery/templates/gallery/resizables.html
  61. 0 44
      apps/jframegallery/src/jframegallery/templates/gallery/select_with_other.mako
  62. 0 29
      apps/jframegallery/src/jframegallery/templates/gallery/show.and.hide.history.html
  63. 0 60
      apps/jframegallery/src/jframegallery/templates/gallery/side.by.side.select.html
  64. 0 96
      apps/jframegallery/src/jframegallery/templates/gallery/sortables.html
  65. 0 51
      apps/jframegallery/src/jframegallery/templates/gallery/split-view-with-header.html
  66. 0 35
      apps/jframegallery/src/jframegallery/templates/gallery/splitview.(explicit.size).html
  67. 0 40
      apps/jframegallery/src/jframegallery/templates/gallery/splitview.(vertical).html
  68. 0 38
      apps/jframegallery/src/jframegallery/templates/gallery/splitview.html
  69. 0 19
      apps/jframegallery/src/jframegallery/templates/gallery/splitview.yml
  70. 0 33
      apps/jframegallery/src/jframegallery/templates/gallery/stand-alone.nav.buttons.html
  71. 0 63
      apps/jframegallery/src/jframegallery/templates/gallery/submit.form.on.change.html
  72. 0 62
      apps/jframegallery/src/jframegallery/templates/gallery/submit.link.html
  73. 0 46
      apps/jframegallery/src/jframegallery/templates/gallery/tabs-toolbar.html
  74. 0 49
      apps/jframegallery/src/jframegallery/templates/gallery/tabs.html
  75. 0 18
      apps/jframegallery/src/jframegallery/templates/gallery/tabs.yml
  76. 0 37
      apps/jframegallery/src/jframegallery/templates/gallery/timer.html
  77. 0 45
      apps/jframegallery/src/jframegallery/templates/gallery/tips.html
  78. 21 5
      apps/jframegallery/src/jframegallery/templates/index.html
  79. 33 33
      apps/jframegallery/src/jframegallery/templates/source.mako
  80. 3 5
      apps/jframegallery/src/jframegallery/urls.py
  81. 83 194
      apps/jframegallery/src/jframegallery/views.py
  82. 25 3
      apps/jframegallery/static/css/jframegallery.css
  83. 21 35
      apps/jframegallery/static/js/Source/JFrameGallery/Hue.JFrameGallery.js
  84. 15 0
      desktop/core/ext-py/depender/src/depender/core.py

+ 0 - 33
apps/jframegallery/src/jframegallery/templates/gallery/Hide.parent.linker.html

@@ -1,33 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Hide Parent Linker</title>
-  </head>
-  <body>
-  <div class="jframe_padded">
-		<p>Clicking the link below will hide the box that contains it.</p>
-		<div class="foo" style="width: 200px; height: 200px; border: 1px solid #000; padding: 8px;">
-			<p>
-				<a data-hide-parent="div.foo">Hide this box</a>
-			</p>
-		</div>
-  </div>
-</body>
-</html>

+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/OOCSS.Bar.Paginator.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.Paginator.html


+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/OOCSS.Bar.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.html


+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/OOCSS.Button.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Button.html


+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/OOCSS.Grid.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Grid.html


+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/OOCSS.Icon.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Icon.html


+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/app-launcher.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/app-launcher.html


+ 8 - 7
apps/jframegallery/src/jframegallery/templates/gallery/chooser.linker.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/chooser.linker.html

@@ -20,12 +20,13 @@ limitations under the License.
   <title>File Chooser Filter</title>
 </head>
 <body>
-  <p>Choose a File (Can't Choose Directory)
-  <input type="text" name="file"/><a class="hue-choose_file" data-filters="ArtButton" data-chooseFor="file">Save As</a>
-  <p>Choose a Directory (Can't Choose Path)
-  <input type="text" name="dir"/><a class="hue-choose_dir" data-filters="ArtButton" data-chooseFor="dir">Save As</a>
-  <p>Choose a Path (Can Choose Either Directory or Path)
-  <input type="text" name="path"/><a class="hue-choose_path" data-filters="ArtButton" data-chooseFor="path">Save As</a>
-
+  <div class="jframe_padded">
+    <p>Choose a File (Can't Choose Directory)
+    <input type="text" name="file"/><a class="hue-choose_file" data-filters="ArtButton" data-chooseFor="file">Save As</a>
+    <p>Choose a Directory (Can't Choose Path)
+    <input type="text" name="dir"/><a class="hue-choose_dir" data-filters="ArtButton" data-chooseFor="dir">Save As</a>
+    <p>Choose a Path (Can Choose Either Directory or Path)
+    <input type="text" name="path"/><a class="hue-choose_path" data-filters="ArtButton" data-chooseFor="path">Save As</a>
+  </div>
 </body>
 </html>

+ 39 - 0
apps/jframegallery/src/jframegallery/templates/gallery/Hue/errors.html

@@ -0,0 +1,39 @@
+{% comment %}
+Licensed to Cloudera, Inc. under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  Cloudera, Inc. 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.
+{% endcomment %}
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+  <head>
+    <title>Errors</title>
+  </head>
+  <body>
+    <div class="jframe_padded">
+      <p>Clicking on any of these should trigger an error popup.</p>
+      <ul>
+        <li><a id=e_1 href="/">A request for /</a> </li>
+        <li><a id=e_1 href="/jframegallery/gallery/error_404">Explicit 404</a> </li>
+        <li><a id=e_2 href="/jframegallery/gallery/error_message_exception">Explict message exception</a> </li>
+        <li><a id=e_3 href="/jframegallery/gallery/error_popup_exception">Explict popup exception</a> </li>
+        <li><a id=e_4 href="/jframegallery/gallery/error_500">500 (trapped by middleware)</a></li>
+        <li><a id=e_5 href="/jframegallery/gallery/error_real_500">500 (not trapped by middleware)</a></li>
+        <li><a id=e_6 href="/test/does_not_exist/404">404 because link doesn't exist</a> </li>
+        <li><a id=e_7 href="/jframegallery/gallery/error_python">Code doesn't work</a> </li>
+        <li><a id=e_8 href="/jframegallery/gallery/error_redirect">Redirect to bad location</a> </li>
+      </ul>
+    </divt>
+  </body>
+</html>

+ 4 - 0
apps/jframegallery/src/jframegallery/templates/gallery/flash.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/flash.html

@@ -23,6 +23,10 @@ limitations under the License.
 	<body>
 		<div class="jframe_padded">
 			<h1>Flash Messaging Testing.</h1>
+			<p>You should see some messages on the desktop. They zoom away after about 2 seconds. These were set in the controller (views.py) using the following syntax:</p>
+			<code><pre>request.flash.put('just a test')
+request.flash.put('another growl test')
+request.flash.put('yet another message to bubble up.')</pre></code>
 		</div>
 	</body>
 </html>

+ 49 - 0
apps/jframegallery/src/jframegallery/templates/gallery/Hue/forms_with_dependencies.mako

@@ -0,0 +1,49 @@
+## Licensed to Cloudera, Inc. under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  Cloudera, Inc. 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.
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+  <head>
+    <title>Forms with Dependencies</title>
+  </head>
+  <body>
+    <p>
+     The form below conditionally uses different inputs given the state of the select input. If you choose alpha, the "A" section is used.
+     This is using the <i>DependencyAwareForm</i> Django form in the view. There's no UI component here; this test is verifying that Django form extension.
+    </p>
+    <form action="${url("jframegallery.views.forms_with_dependencies")}" method="post" class="dependency_form jframe_padded {'deps':${form.render_dep_metadata()|n}}">
+      % if len(form.non_field_errors()):
+        ${str(form.non_field_errors()) | n}
+      % endif
+      % for field in form:
+        <dt>${field.label_tag() | n}</dt>
+        <dd>${str(field) | n}
+          % if len(field.errors):
+            ${str(field.errors) | n}
+          % endif
+        </dd>
+      % endfor
+    <input type="submit">
+    </form>
+
+    <div class="jframe_padded">
+      % if data:
+        Succesful submission: ${data}
+      % else:
+        No submission.
+      % endif
+    </div>
+  </body>
+</html>

+ 7 - 3
apps/jframegallery/src/jframegallery/templates/gallery/meta-refresh.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/forwarding.html

@@ -18,12 +18,16 @@ limitations under the License.
 <!DOCTYPE html>
 <html>
   <head>
-    <title>Meta Refresh</title>
-		<meta http-equiv="refresh" content="5;{{request_path}}?sleep=2" />
+    <title>Errors</title>
   </head>
   <body>
     <div class="jframe_padded">
-      <p>note: this view will auto refresh in <span class="sec_to_autorefresh"></span> seconds</p>
+      <p>
+      The first time you visit this page, you should see X.  If you click
+      on refresh, you should see Y.</p>
+      <p><big><big><div id="test_letter">{{ letter }}</div></big></big></p>
+      <p>(The backend is simulating a forward by updating
+      the path.)</p>
     </div>
   </body>
 </html>

+ 0 - 0
apps/jframegallery/src/jframegallery/templates/gallery/frame.tips.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/frame.tips.html


+ 2 - 2
apps/jframegallery/src/jframegallery/templates/gallery/redirect.html → apps/jframegallery/src/jframegallery/templates/gallery/Hue/redirect.html

@@ -21,7 +21,7 @@ limitations under the License.
 		<title>Redirects</title>
 	</head>
 	<body>
-          <a href="/jframegallery/gallery/redirect_301">Clicking here</a> 
-          should redirect you back to this page, through two requests.
+		<p class="jframe_padded"><a href="/jframegallery/gallery/redirect_301">Clicking here</a> 
+		should redirect you back to this page, through two requests.</p>
 	</body>
 </html>

+ 1 - 0
apps/jframegallery/src/jframegallery/templates/gallery/JFrame_Demos

@@ -0,0 +1 @@
+../../../../../../desktop/core/static/js/ThirdParty/jframe/Tests/JFrame_Demos

+ 0 - 44
apps/jframegallery/src/jframegallery/templates/gallery/Load_without_scrolling.html

@@ -1,44 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Load Without Scrolling</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>Scroll down to the link below. When you click it, you'll be taken back to the JFrame gallery, but the window will not scroll back to the top.</p>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a href="/jframegallery/" class="noScroll">back to jframe gallery (without scrolling to the top)</a>
-		</div>
-	</body>
-</html>

+ 0 - 36
apps/jframegallery/src/jframegallery/templates/gallery/Refresh.with.params.mako

@@ -1,36 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Refresh with params</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>clicking the two links below will update the view to have their corresponding get parameters added. This is cumulative, so clicking each one only updates the relevant param (not deleting others)</p>
-			<a class="jframe-refresh_with_params" data-refresh-params="iLike=cookies">I refresh this view with "iLike=cookies"</a><br/>
-			<a class="jframe-refresh_with_params" data-refresh-params="iLike=cake">I refresh this view with "iLike=cake"</a><br/>
-			<a class="jframe-refresh_with_params" data-refresh-params="youLike=cookies">I refresh this view with "youLike=cookies"</a><br/>
-			<a class="jframe-refresh_with_params" data-refresh-params="youLike=cake">I refresh this view with "youLike=cake"</a><br/>
-			<hr/>
-			the current values: <br/>
-			iLike: ${ get_var("iLike", "~")}<br/>
-			youLike: ${ get_var("youLike", "~")}<br/>
-		</div>
-	</body>
-</html>

+ 0 - 36
apps/jframegallery/src/jframegallery/templates/gallery/accordion.html

@@ -1,36 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Accordion</title>
-  </head>
-  <body>
-  <div class="jframe_padded">
-    <p>Below is an accordion, only one of the target areas should be visible at a time, dependent on which toggle was clicked last. </p>
-    <div data-filters="Accordion" style="width: 300px; margin: 10px;">
-      <div class="toggle" style="cursor:pointer; background: #777; padding: 2px;">Toggle 1</div>
-      <div class="target" style="padding: 4px;">This area is controlled by Toggle 1.</div>
-      <div class="toggle" style="cursor:pointer; background: #777; padding: 2px;">Toggle 2</div>
-      <div class="target" style="padding: 4px;">This area is controlled by Toggle 2.</div>
-      <div class="toggle" style="cursor:pointer; background: #777; padding: 2px;">Toggle 3</div>
-      <div class="target" style="padding: 4px;">This area is controlled by Toggle 3.</div>
-    </div>
-  </div>
-</body>
-</html>

+ 0 - 73
apps/jframegallery/src/jframegallery/templates/gallery/ajax-target.html

@@ -1,73 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Ajax Target</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-target=".ajax_target">Load some content into the div below</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;" class="ajax_target">
-				This content is replaced whenever you click the link above.
-			</div>
-			<p>
-				Note that once you load content into the div above, hitting refresh destroys that content.
-			</p>
-			<hr/>
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-replace=".ajax_replace div">Replace the blue box below.</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;" class="ajax_replace">
-				<div style="padding: 10px; background: #99f;">This gets replaced by the response</div>
-			</div>
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-append=".ajax_append div">Add the response after the blue box below.</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;" class="ajax_append">
-				<div style="padding: 10px; background: #99f;">The response gets appended after this box</div>
-			</div>
-			<hr/>
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-after=".ajax_after"><em>Also</em> adds the response after the blue box below.</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;">
-				<div style="padding: 10px; background: #99f;" class="ajax_after">The response gets appended after this box</div>
-			</div>
-			<hr/>
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-before=".ajax_before">Add the response <em>before</em> the blue box below.</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;">
-				<div style="padding: 10px; background: #99f;" class="ajax_before">The response gets prepended <em>before</em> this box</div>
-			</div>
-			<hr/>
-
-
-			<a href="/jframegallery/gallery/partial_refresh.mako?sleep=1" data-ajax-target=".ajax_filter" data-ajax-filter="textarea">This link loads the same url as the others, but only the textarea is inserted into the box below</a>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px;" class="ajax_filter">
-				This box is replaced with a textarea when you click the 
-			</div>
-			<hr/>
-			<a href="/jframegallery/gallery/partial_refresh.mako" data-ajax-target=".nothing_here">This is also an ajax link, but it's target is not found, so it falls back to being a regular link.</a>
-
-			<p>This form submits to the box below it:</p>
-			<form action="/jframegallery/gallery/post-load.prompt.popup.html" method="post" style="margin: 6px 0px 0px;" data-ajax-target=".ajax_form_target">
-				enter a value: <input type="text" name="prompt_value"/>
-				<input type="submit" class="jframe-hidden" name="submit"/>
-			</form>
-			<div style="border: 1px solid #000; padding: 10px; margin: 10px 0px; max-height: 100px; overflow:auto;">
-				<div class="ajax_form_target">
-				</div>
-			</div>
-
-		</div>
-	</body>
-</html>

+ 0 - 28
apps/jframegallery/src/jframegallery/templates/gallery/ajax.spinner.target.html

@@ -1,28 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Ajax Spinner Target</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<a style="display:block; border: 1px solid #000; width: 100px; padding: 50px 10px; text-align:center;" href="{{request_path}}?sleep=1" data-spinner-target=".spinnerTarget" class="spinnerTarget">Click to reload with the spinner only on this box</a>
-		</div>
-	</body>
-</html>

+ 0 - 142
apps/jframegallery/src/jframegallery/templates/gallery/anchor_tags_that_scroll.html

@@ -1,142 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Anchor Tags That Scroll</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>All the links below should scroll smoothly to their sections.</p>
-
-			<a name="top"></a>
-			<a href="#A">A</a> | 
-			<a href="#B">B</a> | 
-			<a href="#C">C</a> | 
-			<a href="#D">D</a> | 
-			<a href="#E">E</a> | 
-			<a href="#F">F</a> | 
-			<a href="#G">G</a> | 
-			<a href="#H">H</a> |
-			<a href="#J">J</a>
-
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="A"></a>
-			A
-			<a href="#top">Back to top</a>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="B"></a>
-			B
-			<a href="#top">Back to top</a>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="C"></a>
-			C
-			<a href="#top">Back to top</a>
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="D"></a>
-			D
-			<a href="#top">Back to top</a>
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="E"></a>
-			E
-			<a href="#top">Back to top</a>
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="F"></a>
-			F
-			<a href="#top">Back to top</a>
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="G"></a>
-			G
-			<a href="#top">Back to top</a>
-
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<br/>
-			<a name="H"></a>
-			H
-			<a href="#top">Back to top</a>
-		</div>
-	</body>
-</html>

+ 0 - 49
apps/jframegallery/src/jframegallery/templates/gallery/art-button.html

@@ -1,49 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Art Button</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-			<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-			
-			<div data-filters="ArtButtonBar" style="clear:both">
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-			</div>
-			<div data-filters="ArtButtonBar" data-bar-position="above" style="clear:both">
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-			</div>
-			<div data-filters="ArtButtonBar" data-bar-position="below" style="clear:both">
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/info.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button!</a>
-				<a data-filters="ArtButton" href="/jframegallery/" style="background: url(/static/art/error.png) left 50%; padding: 6px 6px 6px 20px; margin: 10px 0px;" data-icon-styles="{'width': 14, 'height': 14}">I'm a button too!</a>
-			</div>
-
-		</div>
-	</body>
-</html>

+ 0 - 18
apps/jframegallery/src/jframegallery/templates/gallery/art-button.yml

@@ -1,18 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-js-references:
-  - "Widgets/Behavior.ArtButton"

+ 0 - 34
apps/jframegallery/src/jframegallery/templates/gallery/art-inputs.html

@@ -1,34 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Art Inputs</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>
-				The inputs below should look rather slick with blue outlines when you focus them. They should have hint text that disappears when you focus them and reappear when you move your cursor out of them. Tabbing through them should work appropriately. The first input should have round corners and a search icon. This is achieved by adding the ArtInput data-filter. To get the search input, the property data-art-input-type set to "search".
-			</p>
-
-			<input type="input" title="search..." data-filters="ArtInput, OverText" data-art-input-type="search"/>
-			<input type="input" title="your name here..." data-filters="ArtInput, OverText"/>
-
-		</div>
-	</body>
-</html>

ファイルの差分が大きいため隠しています
+ 0 - 27
apps/jframegallery/src/jframegallery/templates/gallery/autocomplete.html


+ 0 - 35
apps/jframegallery/src/jframegallery/templates/gallery/check.all.or.none.html

@@ -1,35 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Check All / None</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p><a class="jframe-checkAll" data-check-group=".chex input">checkAll</a> | <a class="jframe-checkNone" data-check-group=".chex input">checkNone</a></p>
-			<div class="chex">
-				<input type="checkbox"/>
-				<input type="checkbox"/>
-				<input type="checkbox"/>
-				<input type="checkbox"/>
-				<input type="checkbox"/>
-			</div>
-		</div>
-	</body>
-</html>

+ 0 - 33
apps/jframegallery/src/jframegallery/templates/gallery/collapser.html

@@ -1,33 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Collapsibles</title>
-	</head>
-	<body>
-	<h1>Collapsibles</h1>
-	<ul data-filters="CollapsingElements">
-          <li>
-                  <div id="collapser_one" class="collapser">Click here! (1)</div><div id="data_one" class="collapsible">Data (1)</div>
-          </li>
-          <li>
-                  <div class="collapser">Click here! (2)</div><div class="collapsible">Data (2)</div>
-          </li>
-	</body>
-</html>

+ 0 - 33
apps/jframegallery/src/jframegallery/templates/gallery/context-menu.html

@@ -1,33 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Context Menu</title>
-	</head>
-	<body>
-		<div data-filters="ContextMenu" class="hue-shared" data-context-menu-actions="[{'events':['contextmenu','click:relay(a.show-options)'],'menu':'ul.context-menu'}]" style="width: 200px; height: 100px; padding: 40px; background: #ccc; border: 1px solid #000; margin: 10px auto;">
-			I show a menu if you right click anywhere in me. Or you can click <a class="show-options">this link</a> to show it.
-			<ul class="context-menu jframe-hidden">
-				<li class="cm-one">Item 1</li>
-				<li class="cm-two">Item 2</li>
-				<li class="cm-three">Item 3</li>
-			</ul>
-		</div>
-	</body>
-</html>

+ 0 - 83
apps/jframegallery/src/jframegallery/templates/gallery/css.widget.graph.html

@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>"tGraph" -- Graph CSS Widget</title>
-</head>
-<body>
-<div class="print" style="padding:1em">
-
-<h1>"tGraph" -- Graph CSS Widget</h1>
-
-<h2>In table cells in a single table row</h2>
-
-<table>
-	<tr><th>One</th><th>Two</th><th>Three</th><th>Four</th></tr>
-	<tr>
-		<td> <span class="tGraph"><span><b> 0/3</b><i style="width:0%"></i></span></span> </td>
-		<td> <span class="tGraph"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span> </td>
-		<td> <span class="tGraph"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span> </td>
-		<td> <span class="tGraph"><span><b> 3/3</b><i style="width:100%"></i></span></span> </td>
-	</tr>
-</table>
-
-<table>
-	<tr><th>One </th><td> <span class="tGraph"><span><b> 0/3</b><i style="width:0%"></i></span></span> </td></tr>
-	<tr><th>Two </th><td> <span class="tGraph"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span> </td></tr>
-	<tr><th>Three </th><td> <span class="tGraph"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span> </td></tr>
-	<tr><th>Four </th><td> <span class="tGraph"><span><b> 3/3</b><i style="width:100%"></i></span></span> </td></tr>
-</table>
-
-<h2>No wrapper</h2>
-<p>An example of how to use this css widget by itself outside of a table.</p>
-
-<h3>priorityHigh</h3>
-
-<span class="tGraph priorityHigh"><span><b> 0/3</b><i style="width:0%"></i></span></span>
-<span class="tGraph priorityHigh"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span>
-<span class="tGraph priorityHigh"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span>
-<span class="tGraph priorityHigh"><span><b> 3/3</b><i style="width:100%"></i></span></span>
-
-<hr>
-<h3>priorityMed (default)</h3>
-
-<span class="tGraph priorityMed"><span><b> 0/3</b><i style="width:0%"></i></span></span>
-<span class="tGraph priorityMed"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span>
-<span class="tGraph priorityMed"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span>
-<span class="tGraph priorityMed"><span><b> 3/3</b><i style="width:100%"></i></span></span>
-
-<hr>
-<h3>priorityLow</h3>
-
-<span class="tGraph priorityLow"><span><b> 0/3</b><i style="width:0%"></i></span></span>
-<span class="tGraph priorityLow"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span>
-<span class="tGraph priorityLow"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span>
-<span class="tGraph priorityLow"><span><b> 3/3</b><i style="width:100%"></i></span></span>
-
-<hr>
-<h3>multiple priorities</h3>
-
-<span class="tGraph"><span><b> 0/3</b><i style="width:0%"></i></span></span>
-<span class="tGraph priorityLow"><span><b> 1/3</b><i style="width:33.3333%"></i></span></span>
-<span class="tGraph priorityMed"><span><b> 2/3</b><i style="width:66.6666%"></i></span></span>
-<span class="tGraph priorityHigh"><span><b> 3/3</b><i style="width:100%"></i></span></span>
-
-<hr>
-
-<h2>In Text Content</h2>
-<p>Add the "txtIcon" class to allow the tGraph to flow with text.</p>
-
-<p>
-Lorem ipsum dolor sit amet, 
-
-<span class="txtIcon tGraph"><span><b> 0/3</b><i style="width:0%"></i></span></span> lorem ipsum dolore
-<span class="txtIcon tGraph priorityLow"><span><b>one third</b><i style="width:33.3333%"></i></span></span> lorem ipsum dolore
-<span class="txtIcon tGraph priorityMed"><span><b>two thirds</b><i style="width:66.6666%"></i></span></span> lorem ipsum dolore
-<span class="txtIcon tGraph priorityHigh"><span><b>three thirds</b><i style="width:100%"></i></span></span> lorem ipsum dolore
-
-, sunt in culpa qui officia deserunt mollit anim id est laborum.
-</p>
-
-</div>
-</body>
-</html>

+ 0 - 37
apps/jframegallery/src/jframegallery/templates/gallery/data.group.toggle.html

@@ -1,37 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Data Group Toggle</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-                  This is a DataGroupToggle.  As you select from the list, different combinations of elements will appear.
-                  <select data-filters="DataGroupToggle">
-                    <option data-group-toggle="{'group': '.group'}">None</option>
-                    <option data-group-toggle="{'group': '.group', 'show': '.one'}">One</option>
-                    <option data-group-toggle="{'group': '.group', 'show': '.one, .two'}">One and Two</option>
-                    <option data-group-toggle="{'group': '.group', 'show': '.one, .three'}">One and Three</option>
-                  </select>
-                  <span class="group one" style="display: inline-block">This is one. Not only am I one...I'm inline block...and will return to my inline-block position.</span>
-                  <div class="group two"> This is two.</div>
-                  <div class="group three"> This is three.</div>
-		</div>
-	</body>
-</html>

+ 0 - 45
apps/jframegallery/src/jframegallery/templates/gallery/double.click-delegator.html

@@ -1,45 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Double Click Delegator</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>Note that to use double click delegation on a container with links in it, if you don't want the links to fire on single click, you must add the css class "jframe_ignore" to them and configure the double click delegator to point to the desired link. This is especially useful with HtmlTables with selectable rows if you don't want a single click on the row to load another page, even if the user clicks on a link.</p>
-			
-			<div data-dblclick-delegate="{'dblclick_loads':'.dblme'}" style="width: 200px; height: 100px; padding: 40px; background: #ccc; border: 1px solid #000; float: left; margin: 0px 10px;">
-				<a class="dblme jframe_ignore" href="/jframegallery/gallery/post-load.alert.popup.html">I show an alert if you double click anywhere inside the box around me. Note that I have the css class "jframe_ignore" which means a single click on me does nothing.</a>
-			</div>
-
-			<div data-dblclick-delegate="{'dblclick_loads':'.dblme'}" style="width: 200px; height: 100px; padding: 40px; background: #ccc; border: 1px solid #000; float: left; margin: 0px 10px;">
-				I'm a div with a double click delegate specified, but no link matching, so I don't do anything.
-			</div>
-
-			<div data-dblclick-delegate="{'dblclick_loads':'.dblme'}" style="width: 200px; height: 100px; padding: 40px; background: #ccc; border: 1px solid #000; float: left; clear:both; margin: 10px; clear:both;">
-				<a class="dblme">I'm an anchor with no href, so clicking me or double clicking my container should do nothing.</a>
-			</div>
-
-			<div data-dblclick-delegate="{'dblclick_loads':'.dblme'}" style="width: 200px; height: 100px; padding: 40px; background: #ccc; border: 1px solid #000;  margin: 10px; float: left;">
-				<a class="dblme jframe-nav_back">I'm a link with no href, but I have the hue class name jframe-nav_back, so I navigate back in the app window's history. Double clicking my container should send you back to the JFrame gallery.</a>
-			</div>
-		</div>
-
-	</body>
-</html>

+ 0 - 37
apps/jframegallery/src/jframegallery/templates/gallery/errors.html

@@ -1,37 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Errors</title>
-	</head>
-	<body>
-          <ul>
-            Clicking on any of these should trigger an error popup.
-            <li><a id=e_1 href="/">A request for /</a> </li>
-            <li><a id=e_1 href="/jframegallery/gallery/error_404">Explicit 404</a> </li>
-            <li><a id=e_2 href="/jframegallery/gallery/error_message_exception">Explict message exception</a> </li>
-            <li><a id=e_3 href="/jframegallery/gallery/error_popup_exception">Explict popup exception</a> </li>
-            <li><a id=e_4 href="/jframegallery/gallery/error_500">500 (trapped by middleware)</a></li>
-            <li><a id=e_5 href="/jframegallery/gallery/error_real_500">500 (not trapped by middleware)</a></li>
-            <li><a id=e_6 href="/test/does_not_exist/404">404 because link doesn't exist</a> </li>
-            <li><a id=e_7 href="/jframegallery/gallery/error_python">Code doesn't work</a> </li>
-            <li><a id=e_8 href="/jframegallery/gallery/error_redirect">Redirect to bad location</a> </li>
-          </ul>
-	</body>
-</html>

+ 0 - 700
apps/jframegallery/src/jframegallery/templates/gallery/filter.input.html

@@ -1,700 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Filter Input</title>
-	</head>
-	<body>
-	<div class="toolbar" style="position: absolute; top: 57px; left: 70px">
-		<input type="text" class="jframe-hidden" data-filters="OverText, ArtInput, FilterInput" data-art-input-type="search"
-			title="Filter by Name"
-			data-filter-elements="td.city" data-filter-parents="tr" value="New York"/>
-	</div>
-	<table data-filters="HtmlTable" class="selectable sortable" cellpadding="0" cellspacing="0">
-		<thead>
-			<tr>
-				<th>
-							ID
-				</th>
-				<th>
-							TimeZone
-				</th>
-				<th>
-							Name
-				</th>
-				<th>
-							GEO Latitude
-				</th>
-				<th>
-							GEO Longitude
-				</th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td>
-					22
-				</td>
-				<td class="city">
-					New York City
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					40.7255
-				</td>
-				<td>
-					-73.9983
-				</td>
-			</tr>
-			<tr>
-				<td>
-					23
-				</td>
-				<td class="city">
-					San Francisco
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					37.7587
-				</td>
-				<td>
-					-122.433
-				</td>
-			</tr>
-			<tr>
-				<td>
-					24
-				</td>
-				<td class="city">
-					Boston
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					42.3583
-				</td>
-				<td>
-					-71.0603
-				</td>
-			</tr>
-			<tr>
-				<td>
-					25
-				</td>
-				<td class="city">
-					Denver
-				</td>
-				<td>
-					America/Denver
-				</td>
-				<td>
-					39.734
-				</td>
-				<td>
-					-105.026
-				</td>
-			</tr>
-			<tr>
-				<td>
-					31
-				</td>
-				<td class="city">
-					Washington, DC
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					38.8964
-				</td>
-				<td>
-					-77.0447
-				</td>
-			</tr>
-			<tr>
-				<td>
-					32
-				</td>
-				<td class="city">
-					Chicago
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					41.8858
-				</td>
-				<td>
-					-87.6181
-				</td>
-			</tr>
-			<tr>
-				<td>
-					33
-				</td>
-				<td class="city">
-					Philadelphia
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.8694
-				</td>
-				<td>
-					-75.2731
-				</td>
-			</tr>
-			<tr>
-				<td>
-					34
-				</td>
-				<td class="city">
-					Los Angeles
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					34.0443
-				</td>
-				<td>
-					-118.251
-				</td>
-			</tr>
-			<tr>
-				<td>
-					37
-				</td>
-				<td class="city">
-					Portland
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					45.527
-				</td>
-				<td>
-					-122.685
-				</td>
-			</tr>
-			<tr>
-				<td>
-					38
-				</td>
-				<td class="city">
-					San Diego
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					32.7153
-				</td>
-				<td>
-					-117.156
-				</td>
-			</tr>
-			<tr>
-				<td>
-					39
-				</td>
-				<td class="city">
-					Miami
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					25.7323
-				</td>
-				<td>
-					-80.2436
-				</td>
-			</tr>
-			<tr>
-				<td>
-					41
-				</td>
-				<td class="city">
-					Seattle
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					47.6036
-				</td>
-				<td>
-					-122.326
-				</td>
-			</tr>
-			<tr>
-				<td>
-					42
-				</td>
-				<td class="city">
-					Austin
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					30.2669
-				</td>
-				<td>
-					-97.7428
-				</td>
-			</tr>
-			<tr>
-				<td>
-					43
-				</td>
-				<td class="city">
-					Dallas / Fort Worth
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					32.7887
-				</td>
-				<td>
-					-96.7676
-				</td>
-			</tr>
-			<tr>
-				<td>
-					46
-				</td>
-				<td class="city">
-					Atlanta
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					33.7525
-				</td>
-				<td>
-					-84.3888
-				</td>
-			</tr>
-			<tr>
-				<td>
-					47
-				</td>
-				<td class="city">
-					Detroit
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					42.3333
-				</td>
-				<td>
-					-83.0484
-				</td>
-			</tr>
-			<tr>
-				<td>
-					48
-				</td>
-				<td class="city">
-					Houston
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.7594
-				</td>
-				<td>
-					-95.3594
-				</td>
-			</tr>
-			<tr>
-				<td>
-					49
-				</td>
-				<td class="city">
-					Las Vegas
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					36.1721
-				</td>
-				<td>
-					-115.122
-				</td>
-			</tr>
-			<tr>
-				<td>
-					51
-				</td>
-				<td class="city">
-					Minneapolis / St. Paul
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					44.9609
-				</td>
-				<td>
-					-93.2642
-				</td>
-			</tr>
-			<tr>
-				<td>
-					52
-				</td>
-				<td class="city">
-					New Orleans
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.9544
-				</td>
-				<td>
-					-90.075
-				</td>
-			</tr>
-			<tr>
-				<td>
-					53
-				</td>
-				<td class="city">
-					Phoenix
-				</td>
-				<td>
-					America/Phoenix
-				</td>
-				<td>
-					33.4483
-				</td>
-				<td>
-					-112.073
-				</td>
-			</tr>
-			<tr>
-				<td>
-					56
-				</td>
-				<td class="city">
-					Amsterdam
-				</td>
-				<td>
-					Europe/Amsterdam
-				</td>
-				<td>
-					52.3789
-				</td>
-				<td>
-					4.90067
-				</td>
-			</tr>
-			<tr>
-				<td>
-					57
-				</td>
-				<td class="city">
-					Raleigh / Durham
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					35.7797
-				</td>
-				<td>
-					-78.6434
-				</td>
-			</tr>
-			<tr>
-				<td>
-					59
-				</td>
-				<td>
-					Vancouver
-				</td>
-				<td class="city">
-					America/Vancouver
-				</td>
-				<td>
-					49.259515
-				</td>
-				<td>
-					-123.103867
-				</td>
-			</tr>
-			<tr>
-				<td>
-					60
-				</td>
-				<td class="city">
-					Pittsburgh
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					40.4405
-				</td>
-				<td>
-					-79.9961
-				</td>
-			</tr>
-			<tr>
-				<td>
-					61
-				</td>
-				<td class="city">
-					London
-				</td>
-				<td>
-					Europe/London
-				</td>
-				<td>
-					51.50714
-				</td>
-				<td>
-					-0.126171
-				</td>
-			</tr>
-			<tr>
-				<td>
-					62
-				</td>
-				<td class="city">
-					St. Louis
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					38.627491
-				</td>
-				<td>
-					-90.198417
-				</td>
-			</tr>
-			<tr>
-				<td>
-					63
-				</td>
-				<td class="city">
-					Baltimore
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.294255
-				</td>
-				<td>
-					-76.614275
-				</td>
-			</tr>
-			<tr>
-				<td>
-					64
-				</td>
-				<td class="city">
-					Cleveland
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					41.499819
-				</td>
-				<td>
-					-81.693716
-				</td>
-			</tr>
-			<tr>
-				<td>
-					65
-				</td>
-				<td class="city">
-					Kansas City
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					39.090431
-				</td>
-				<td>
-					-94.583644
-				</td>
-			</tr>
-			<tr>
-				<td>
-					66
-				</td>
-				<td class="city">
-					Indianapolis
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.767016
-				</td>
-				<td>
-					-86.156255
-				</td>
-			</tr>
-			<tr>
-				<td>
-					67
-				</td>
-				<td class="city">
-					Milwaukee
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					43.038902
-				</td>
-				<td>
-					-87.906474
-				</td>
-			</tr>
-			<tr>
-				<td>
-					68
-				</td>
-				<td class="city">
-					San Antonio
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.424122
-				</td>
-				<td>
-					-98.493628
-				</td>
-			</tr>
-			<tr>
-				<td>
-					69
-				</td>
-				<td class="city">
-					Toronto
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					43.670233
-				</td>
-				<td>
-					-79.386755
-				</td>
-			</tr>
-			<tr>
-				<td>
-					70
-				</td>
-				<td class="city">
-					Montreal
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					45.545447
-				</td>
-				<td>
-					-73.639076
-				</td>
-			</tr>
-			<tr>
-				<td>
-					71
-				</td>
-				<td class="city">
-					Salt Lake City
-				</td>
-				<td>
-					America/Denver
-				</td>
-				<td>
-					40.760779
-				</td>
-				<td>
-					-111.891047
-				</td>
-			</tr>
-			<tr>
-				<td>
-					72
-				</td>
-				<td>
-					Omaha
-				</td>
-				<td class="city">
-					America/Chicago
-				</td>
-				<td>
-					41.254006
-				</td>
-				<td>
-					-95.999258
-				</td>
-			</tr>
-			<tr>
-				<td>
-					73
-				</td>
-				<td class="city">
-					Richmond
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					37.542979
-				</td>
-				<td>
-					-77.469092
-				</td>
-			</tr>
-		</tbody>
-	</table>
-	
-	</body>
-</html>

+ 0 - 108
apps/jframegallery/src/jframegallery/templates/gallery/fit.text.(table).html

@@ -1,108 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>FitText (table)</title>
-	</head>
-	<body>
-	<h1 class="jframe-hidden">FitText (table)</h1>
-	
-	<table data-filters="HtmlTable" class="selectable sortable resizable" data-filters="FitText-Children" cellpadding="0" cellspacing="0" data-fit-text="td">
-		<thead>
-			<tr>
-				<th>
-							ID
-				</th>
-				<th>
-							TimeZone
-				</th>
-				<th>
-							Name
-				</th>
-				<th>
-							GEO Latitude
-				</th>
-				<th>
-							GEO Longitude
-				</th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td>22</td>
-				<td>New York City</td>
-				<td>America/New_York America/New_York America/New_York America/New_York</td>
-				<td>40.7255</td>
-				<td>-73.9983</td>
-			</tr>
-			<tr>
-				<td>23</td>
-				<td>San Francisco San Francisco San Francisco</td>
-				<td>America/Los_Angeles America/Los_Angeles America/Los_Angeles</td>
-				<td>37.7587</td>
-				<td>-122.433</td>
-			</tr>
-                        <tr>
-				<td>22</td>
-				<td>New York City</td>
-				<td>America/New_York America/New_York America/New_York America/New_York</td>
-				<td>40.7255</td>
-				<td>-73.9983</td>
-			</tr>
-			<tr>
-				<td>23</td>
-				<td>San Francisco San Francisco San Francisco</td>
-				<td>America/Los_Angeles America/Los_Angeles America/Los_Angeles</td>
-				<td>37.7587</td>
-				<td>-122.433</td>
-			</tr>
-<tr>
-				<td>22</td>
-				<td>New York City</td>
-				<td>America/New_York America/New_York America/New_York America/New_York</td>
-				<td>40.7255</td>
-				<td>-73.9983</td>
-			</tr>
-			<tr>
-				<td>23</td>
-				<td>San Francisco San Francisco San Francisco</td>
-				<td>America/Los_Angeles America/Los_Angeles America/Los_Angeles</td>
-				<td>37.7587</td>
-				<td>-122.433</td>
-			</tr>
-<tr>
-				<td>22</td>
-				<td>New York City</td>
-				<td>America/New_York America/New_York America/New_York America/New_York</td>
-				<td>40.7255</td>
-				<td>-73.9983</td>
-			</tr>
-			<tr>
-				<td>23</td>
-				<td>San Francisco San Francisco San Francisco</td>
-				<td>America/Los_Angeles America/Los_Angeles America/Los_Angeles</td>
-				<td>37.7587</td>
-				<td>-122.433</td>
-			</tr>
-
-		</tbody>
-	</table>
-	
-	</body>
-</html>

+ 0 - 29
apps/jframegallery/src/jframegallery/templates/gallery/fit.text.html

@@ -1,29 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Fit Text</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>the text below will be truncated to fit the window as it is resized because it has the FitText data-filters property.</p>
-			<p data-filters="FitText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec elementum, ligula in iaculis posuere, tortor arcu sodales lorem, vitae congue enim nulla sed sapien. Ut at dui odio. Mauris mattis felis a ipsum bibendum ullamcorper eu eget libero. In dictum auctor interdum.</p>
-		</div>
-	</body>
-</html>

+ 0 - 35
apps/jframegallery/src/jframegallery/templates/gallery/form.validation.html

@@ -1,35 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Form Validation</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<form data-filters="FormValidator">
-				<dl>
-					<dt>required input:</dt>
-					<dd><input type="text" class="required"></dd>
-					<dt>validate email address</dt>
-					<dd><input type="text" class="validate-email"></dd>
-				</dl>
-			</form>
-		</div>
-	</body>
-</html>

+ 0 - 23
apps/jframegallery/src/jframegallery/templates/gallery/form_popup_interaction.html

@@ -1,23 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-A bug with the interaction of Form.Request and Hue's handling
-of Requests caused the following button to only work once
-in this jframe gallery.
-<form action="/jframegallery/gallery/post-load.alert.popup">
-<input type="submit">button</input>
-</form>

+ 0 - 45
apps/jframegallery/src/jframegallery/templates/gallery/forms_with_dependencies.mako

@@ -1,45 +0,0 @@
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Forms with Dependencies</title>
-	</head>
-	<body>
-          <form action="${url("jframegallery.views.forms_with_dependencies")}" method="post" class="dependency_form {'deps':${form.render_dep_metadata()|n}}">
-          % if len(form.non_field_errors()):
-          ${str(form.non_field_errors()) | n}
-          % endif
-          % for field in form:
-          <dt>${field.label_tag() | n}</dt>
-          <dd>${str(field) | n}
-            % if len(field.errors):
-              ${str(field.errors) | n}
-            % endif
-          </dd>
-          % endfor
-          <input type="submit">
-          </form>
-
-          <div>
-          % if data:
-          Succesful submission: ${data}
-          % else:
-          No submission.
-          % endif
-          </div>
-	</body>
-</html>

+ 0 - 31
apps/jframegallery/src/jframegallery/templates/gallery/forwarding.html

@@ -1,31 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Errors</title>
-	</head>
-	<body>
-          <p>
-          The first time you visit this page, you should see X.  If you click
-          on refresh, you should see Y.</p>
-          <p><big><big><div id="test_letter">{{ letter }}</div></big></big></p>
-          <p>(The backend is simulating a forward by updating
-          the path.)</p>
-	</body>
-</html>

+ 0 - 28
apps/jframegallery/src/jframegallery/templates/gallery/growl.redirect.html

@@ -1,28 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>JFrame Gallery</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<h1>Flash Redirect Messaging Testing.</h1>
-		</div>
-	</body>
-</html>

+ 0 - 68
apps/jframegallery/src/jframegallery/templates/gallery/html-table.check.selected.html

@@ -1,68 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-<head>
-	<title>HtmlTable HtmlTableCheckSelected</title>
-</head>
-<body>
-<div class=hue-shared>
-
-	<p>Select a row. Notice how its checkbox automatically checks itself.</p>
-	<table data-filters=HtmlTable class="multiselect selectable sortable" cellpadding=0 cellspacing=0>
-		<thead>
-			<tr>
-				<th> &radic; </th>
-				<th> ID </th>
-				<th> TimeZone </th>
-				<th> Name </th>
-				<th> GEO Latitude </th>
-				<th> GEO Longitude </th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td> <input type=checkbox value=1> </td>
-				<td> 22 </td>
-				<td> New York City </td>
-				<td> America/New_York </td>
-				<td> 40.7255 </td>
-				<td> -73.9983 </td>
-			</tr>
-			<tr>
-				<td> <input type=checkbox value=2> </td>
-				<td> 23 </td>
-				<td> San Francisco </td>
-				<td> America/Los_Angeles </td>
-				<td> 37.7587 </td>
-				<td> -122.433 </td>
-			</tr>
-			<tr>
-				<td> <input type=checkbox value=3> </td>
-				<td> 24 </td>
-				<td> Boston </td>
-				<td> America/New_York </td>
-				<td> 42.3583 </td>
-				<td> -71.0603 </td>
-			</tr>
-		</tbody>
-	</table>
-
-</div>
-</body>
-</html>

+ 0 - 20
apps/jframegallery/src/jframegallery/templates/gallery/html-table.check.selected.yml

@@ -1,20 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-js-references:
-  - "More-Behaviors/Behavior.HtmlTable"
-  - "More/HtmlTable"
-  - "More/HtmlTable.Select"

+ 0 - 116
apps/jframegallery/src/jframegallery/templates/gallery/html-table.configurable.columns.mako

@@ -1,116 +0,0 @@
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-
-<%
-  data = [
-    {"id":56,"timezone":"Europe/Amsterdam","name":"Amsterdam","geo/lat":52.3789,"geo/long":4.90067},
-    {"id":46,"timezone":"America/New_York","name":"Atlanta","geo/lat":33.7525,"geo/long":-84.3888},
-    {"id":42,"timezone":"America/Chicago","name":"Austin","geo/lat":30.2669,"geo/long":-97.7428},
-    {"id":63,"timezone":"America/New_York","name":"Baltimore","geo/lat":39.294255,"geo/long":-76.614275},
-    {"id":24,"timezone":"America/New_York","name":"Boston","geo/lat":42.3583,"geo/long":-71.0603},
-    {"id":32,"timezone":"America/Chicago","name":"Chicago","geo/lat":41.8858,"geo/long":-87.6181},
-    {"id":64,"timezone":"America/New_York","name":"Cleveland","geo/lat":41.499819,"geo/long":-81.693716},
-    {"id":43,"timezone":"America/Chicago","name":"Dallas / Fort Worth","geo/lat":32.7887,"geo/long":-96.7676},
-    {"id":25,"timezone":"America/Denver","name":"Denver","geo/lat":39.734,"geo/long":-105.026},
-    {"id":47,"timezone":"America/New_York","name":"Detroit","geo/lat":42.3333,"geo/long":-83.0484},
-    {"id":48,"timezone":"America/Chicago","name":"Houston","geo/lat":29.7594,"geo/long":-95.3594},
-    {"id":66,"timezone":"America/New_York","name":"Indianapolis","geo/lat":39.767016,"geo/long":-86.156255},
-    {"id":65,"timezone":"America/Chicago","name":"Kansas City","geo/lat":39.090431,"geo/long":-94.583644},
-    {"id":49,"timezone":"America/Los_Angeles","name":"Las Vegas","geo/lat":36.1721,"geo/long":-115.122},
-    {"id":61,"timezone":"Europe/London","name":"London","geo/lat":51.50714,"geo/long":-0.126171},
-    {"id":34,"timezone":"America/Los_Angeles","name":"Los Angeles","geo/lat":34.0443,"geo/long":-118.251},
-    {"id":39,"timezone":"America/New_York","name":"Miami","geo/lat":25.7323,"geo/long":-80.2436},
-    {"id":67,"timezone":"America/Chicago","name":"Milwaukee","geo/lat":43.038902,"geo/long":-87.906474},
-    {"id":51,"timezone":"America/Chicago","name":"Minneapolis / St. Paul","geo/lat":44.9609,"geo/long":-93.2642},
-    {"id":70,"timezone":"America/New_York","name":"Montreal","geo/lat":45.545447,"geo/long":-73.639076},
-    {"id":52,"timezone":"America/Chicago","name":"New Orleans","geo/lat":29.9544,"geo/long":-90.075},
-    {"id":22,"timezone":"America/New_York","name":"New York City","geo/lat":40.7255,"geo/long":-73.9983},
-    {"id":72,"timezone":"America/Chicago","name":"Omaha","geo/lat":41.254006,"geo/long":-95.999258},
-    {"id":33,"timezone":"America/New_York","name":"Philadelphia","geo/lat":39.8694,"geo/long":-75.2731},
-    {"id":53,"timezone":"America/Phoenix","name":"Phoenix","geo/lat":33.4483,"geo/long":-112.073},
-    {"id":60,"timezone":"America/New_York","name":"Pittsburgh","geo/lat":40.4405,"geo/long":-79.9961},
-    {"id":37,"timezone":"America/Los_Angeles","name":"Portland","geo/lat":45.527,"geo/long":-122.685},
-    {"id":57,"timezone":"America/New_York","name":"Raleigh / Durham","geo/lat":35.7797,"geo/long":-78.6434},
-    {"id":73,"timezone":"America/New_York","name":"Richmond","geo/lat":37.542979,"geo/long":-77.469092},
-    {"id":71,"timezone":"America/Denver","name":"Salt Lake City","geo/lat":40.760779,"geo/long":-111.891047},
-    {"id":68,"timezone":"America/Chicago","name":"San Antonio","geo/lat":29.424122,"geo/long":-98.493628},
-    {"id":38,"timezone":"America/Los_Angeles","name":"San Diego","geo/lat":32.7153,"geo/long":-117.156},
-    {"id":23,"timezone":"America/Los_Angeles","name":"San Francisco","geo/lat":37.7587,"geo/long":-122.433},
-    {"id":41,"timezone":"America/Los_Angeles","name":"Seattle","geo/lat":47.6036,"geo/long":-122.326},
-    {"id":62,"timezone":"America/Chicago","name":"St. Louis","geo/lat":38.627491,"geo/long":-90.198417},
-    {"id":69,"timezone":"America/New_York","name":"Toronto","geo/lat":43.670233,"geo/long":-79.386755},
-    {"id":59,"timezone":"America/Vancouver","name":"Vancouver","geo/lat":49.259515,"geo/long":-123.103867},
-    {"id":31,"timezone":"America/New_York","name":"Washington, DC","geo/lat":38.8964,"geo/long":-77.0447}
-  ]
-  columns = ['id', 'timezone', 'name', 'geo/lat', 'geo/long']
-  active_columns = columns[:]
-  if get_var('show_columns') is not None:
-    active_columns = []
-    for col in get_list('show_columns'):
-        active_columns.append(columns[int(col)])
-%>
-
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Configurable Columns</title>
-  </head>
-  <body data-filters="CollapsingElements">
-    <form action="${request_path}" method="GET" class="jframe-hidden collapsible hue-table_config">
-      <ul>
-        % for i, option in enumerate(columns):
-          <%
-            checked = ""
-            if option in active_columns:
-              checked = 'checked="checked"'
-          %>
-          <li><label><input type="checkbox" name="show_columns" value="${i}" ${checked}/> ${option}</label></li>
-        % endfor
-      </ul>
-      <a class="jframe-checkAll" data-filters="ArtButton" data-check-group=".hue-table_config input">checkAll</a>
-      <a class="jframe-checkNone" data-filters="ArtButton" data-check-group=".hue-table_config input">checkNone</a>
-      <input type="submit" value="Apply" data-filters="ArtButton"/>
-    </form>
-    <table data-filters="HtmlTable">
-      <thead>
-        <tr>
-          % for i, col in enumerate(active_columns):
-            % if i == 0:
-              <th>
-                <a class="collapser hue-table_config_link jframe-left"></a>
-                ${col}
-              </th>
-            % else:
-              <th>${col}</th>
-            % endif
-          % endfor
-        </tr>
-      </thead>
-      <tbody>
-        % for d in data:
-          <tr>
-          % for name in active_columns:
-              <td>
-                ${d.get(name)}
-              </td>
-          % endfor
-          </tr>
-        % endfor
-      </tbody>
-    </table>
-    
-  </body>
-</head>

+ 0 - 19
apps/jframegallery/src/jframegallery/templates/gallery/html-table.configurable.columns.yml

@@ -1,19 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-js-references:
-  - "More-Behaviors/Behavior.HtmlTable"
-  - "More/HtmlTable"

+ 0 - 697
apps/jframegallery/src/jframegallery/templates/gallery/html-table.html

@@ -1,697 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>HtmlTable</title>
-	</head>
-	<body>
-	<h1 class="jframe-hidden">HtmlTable</h1>
-	
-	<table data-filters="HtmlTable" class="selectable sortable" cellpadding="0" cellspacing="0">
-		<thead>
-			<tr>
-				<th>
-							ID
-				</th>
-				<th>
-							TimeZone
-				</th>
-				<th>
-							Name
-				</th>
-				<th>
-							GEO Latitude
-				</th>
-				<th>
-							GEO Longitude
-				</th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td>
-					22
-				</td>
-				<td>
-					New York City
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					40.7255
-				</td>
-				<td>
-					-73.9983
-				</td>
-			</tr>
-			<tr>
-				<td>
-					23
-				</td>
-				<td>
-					San Francisco
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					37.7587
-				</td>
-				<td>
-					-122.433
-				</td>
-			</tr>
-			<tr>
-				<td>
-					24
-				</td>
-				<td>
-					Boston
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					42.3583
-				</td>
-				<td>
-					-71.0603
-				</td>
-			</tr>
-			<tr>
-				<td>
-					25
-				</td>
-				<td>
-					Denver
-				</td>
-				<td>
-					America/Denver
-				</td>
-				<td>
-					39.734
-				</td>
-				<td>
-					-105.026
-				</td>
-			</tr>
-			<tr>
-				<td>
-					31
-				</td>
-				<td>
-					Washington, DC
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					38.8964
-				</td>
-				<td>
-					-77.0447
-				</td>
-			</tr>
-			<tr>
-				<td>
-					32
-				</td>
-				<td>
-					Chicago
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					41.8858
-				</td>
-				<td>
-					-87.6181
-				</td>
-			</tr>
-			<tr>
-				<td>
-					33
-				</td>
-				<td>
-					Philadelphia
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.8694
-				</td>
-				<td>
-					-75.2731
-				</td>
-			</tr>
-			<tr>
-				<td>
-					34
-				</td>
-				<td>
-					Los Angeles
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					34.0443
-				</td>
-				<td>
-					-118.251
-				</td>
-			</tr>
-			<tr>
-				<td>
-					37
-				</td>
-				<td>
-					Portland
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					45.527
-				</td>
-				<td>
-					-122.685
-				</td>
-			</tr>
-			<tr>
-				<td>
-					38
-				</td>
-				<td>
-					San Diego
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					32.7153
-				</td>
-				<td>
-					-117.156
-				</td>
-			</tr>
-			<tr>
-				<td>
-					39
-				</td>
-				<td>
-					Miami
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					25.7323
-				</td>
-				<td>
-					-80.2436
-				</td>
-			</tr>
-			<tr>
-				<td>
-					41
-				</td>
-				<td>
-					Seattle
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					47.6036
-				</td>
-				<td>
-					-122.326
-				</td>
-			</tr>
-			<tr>
-				<td>
-					42
-				</td>
-				<td>
-					Austin
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					30.2669
-				</td>
-				<td>
-					-97.7428
-				</td>
-			</tr>
-			<tr>
-				<td>
-					43
-				</td>
-				<td>
-					Dallas / Fort Worth
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					32.7887
-				</td>
-				<td>
-					-96.7676
-				</td>
-			</tr>
-			<tr>
-				<td>
-					46
-				</td>
-				<td>
-					Atlanta
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					33.7525
-				</td>
-				<td>
-					-84.3888
-				</td>
-			</tr>
-			<tr>
-				<td>
-					47
-				</td>
-				<td>
-					Detroit
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					42.3333
-				</td>
-				<td>
-					-83.0484
-				</td>
-			</tr>
-			<tr>
-				<td>
-					48
-				</td>
-				<td>
-					Houston
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.7594
-				</td>
-				<td>
-					-95.3594
-				</td>
-			</tr>
-			<tr>
-				<td>
-					49
-				</td>
-				<td>
-					Las Vegas
-				</td>
-				<td>
-					America/Los_Angeles
-				</td>
-				<td>
-					36.1721
-				</td>
-				<td>
-					-115.122
-				</td>
-			</tr>
-			<tr>
-				<td>
-					51
-				</td>
-				<td>
-					Minneapolis / St. Paul
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					44.9609
-				</td>
-				<td>
-					-93.2642
-				</td>
-			</tr>
-			<tr>
-				<td>
-					52
-				</td>
-				<td>
-					New Orleans
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.9544
-				</td>
-				<td>
-					-90.075
-				</td>
-			</tr>
-			<tr>
-				<td>
-					53
-				</td>
-				<td>
-					Phoenix
-				</td>
-				<td>
-					America/Phoenix
-				</td>
-				<td>
-					33.4483
-				</td>
-				<td>
-					-112.073
-				</td>
-			</tr>
-			<tr>
-				<td>
-					56
-				</td>
-				<td>
-					Amsterdam
-				</td>
-				<td>
-					Europe/Amsterdam
-				</td>
-				<td>
-					52.3789
-				</td>
-				<td>
-					4.90067
-				</td>
-			</tr>
-			<tr>
-				<td>
-					57
-				</td>
-				<td>
-					Raleigh / Durham
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					35.7797
-				</td>
-				<td>
-					-78.6434
-				</td>
-			</tr>
-			<tr>
-				<td>
-					59
-				</td>
-				<td>
-					Vancouver
-				</td>
-				<td>
-					America/Vancouver
-				</td>
-				<td>
-					49.259515
-				</td>
-				<td>
-					-123.103867
-				</td>
-			</tr>
-			<tr>
-				<td>
-					60
-				</td>
-				<td>
-					Pittsburgh
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					40.4405
-				</td>
-				<td>
-					-79.9961
-				</td>
-			</tr>
-			<tr>
-				<td>
-					61
-				</td>
-				<td>
-					London
-				</td>
-				<td>
-					Europe/London
-				</td>
-				<td>
-					51.50714
-				</td>
-				<td>
-					-0.126171
-				</td>
-			</tr>
-			<tr>
-				<td>
-					62
-				</td>
-				<td>
-					St. Louis
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					38.627491
-				</td>
-				<td>
-					-90.198417
-				</td>
-			</tr>
-			<tr>
-				<td>
-					63
-				</td>
-				<td>
-					Baltimore
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.294255
-				</td>
-				<td>
-					-76.614275
-				</td>
-			</tr>
-			<tr>
-				<td>
-					64
-				</td>
-				<td>
-					Cleveland
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					41.499819
-				</td>
-				<td>
-					-81.693716
-				</td>
-			</tr>
-			<tr>
-				<td>
-					65
-				</td>
-				<td>
-					Kansas City
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					39.090431
-				</td>
-				<td>
-					-94.583644
-				</td>
-			</tr>
-			<tr>
-				<td>
-					66
-				</td>
-				<td>
-					Indianapolis
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					39.767016
-				</td>
-				<td>
-					-86.156255
-				</td>
-			</tr>
-			<tr>
-				<td>
-					67
-				</td>
-				<td>
-					Milwaukee
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					43.038902
-				</td>
-				<td>
-					-87.906474
-				</td>
-			</tr>
-			<tr>
-				<td>
-					68
-				</td>
-				<td>
-					San Antonio
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					29.424122
-				</td>
-				<td>
-					-98.493628
-				</td>
-			</tr>
-			<tr>
-				<td>
-					69
-				</td>
-				<td>
-					Toronto
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					43.670233
-				</td>
-				<td>
-					-79.386755
-				</td>
-			</tr>
-			<tr>
-				<td>
-					70
-				</td>
-				<td>
-					Montreal
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					45.545447
-				</td>
-				<td>
-					-73.639076
-				</td>
-			</tr>
-			<tr>
-				<td>
-					71
-				</td>
-				<td>
-					Salt Lake City
-				</td>
-				<td>
-					America/Denver
-				</td>
-				<td>
-					40.760779
-				</td>
-				<td>
-					-111.891047
-				</td>
-			</tr>
-			<tr>
-				<td>
-					72
-				</td>
-				<td>
-					Omaha
-				</td>
-				<td>
-					America/Chicago
-				</td>
-				<td>
-					41.254006
-				</td>
-				<td>
-					-95.999258
-				</td>
-			</tr>
-			<tr>
-				<td>
-					73
-				</td>
-				<td>
-					Richmond
-				</td>
-				<td>
-					America/New_York
-				</td>
-				<td>
-					37.542979
-				</td>
-				<td>
-					-77.469092
-				</td>
-			</tr>
-		</tbody>
-	</table>
-	
-	</body>
-</html>

+ 0 - 64
apps/jframegallery/src/jframegallery/templates/gallery/html-table.keyboard.kids.html

@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-{% comment %} Licensed to Cloudera, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Cloudera, Inc. 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. {% endcomment %}
-<html>
-<head>
-	<title>HtmlTable KeyboardKids -- Define shortcuts for your HtmlTable</title>
-</head>
-<body>
-<div class="hue-shared">
-
-	<h3>How to use:</h3>
-	<ol>
-		<li>Add the 'keyboardkids' className to the table to activate this plugin</li>
-		<li>Add <code>data-accesskey</code> attributes on descendants of the table's thead element</li>
-		<li>Include an <code>alt</code> or <code>title</code> attribute</li>
-	</ol>
-	<h3>Demo</h3>
-	<p>Select a row, then press "enter" or "delete" on your keyboard</p>
-	<p>Those keys are mapped to links</p>
-	<table data-filters="HtmlTable" class="multiselect selectable sortable keyboardkids" cellpadding="0" cellspacing="0">
-		<thead>
-			<tr>
-				<th>&nbsp;</th>
-				<th>TimeZone</th>
-				<th>Name</th>
-				<th>GEO Latitude</th>
-				<th>GEO Longitude</th>
-			</tr>
-			<tr>
-				<th colspan="6">
-					<center>
-						<a title="Edit the selected rows" href="post-load.alert.popup.html" data-accesskey="enter">Enter</a>
-						<a title="Delete the selected rows" href="post-load.alert.popup.html" data-accesskey="delete">Delete</a>
-					</center>
-				</th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td><input type="checkbox"></td>
-				<td>New York City</td>
-				<td>America/New_York</td>
-				<td>40.7255</td>
-				<td>-73.9983</td>
-			</tr>
-			<tr>
-				<td><input type="checkbox"></td>
-				<td>San Francisco</td>
-				<td>America/Los_Angeles</td>
-				<td>37.7587</td>
-				<td>-122.433</td>
-			</tr>
-			<tr>
-				<td><input type="checkbox"></td>
-				<td>Boston</td>
-				<td>America/New_York</td>
-				<td>42.3583</td>
-				<td>-71.0603</td>
-			</tr>
-		</tbody>
-	</table>
-
-</div>
-</body>
-</html>

+ 0 - 126
apps/jframegallery/src/jframegallery/templates/gallery/html-table.multi-select.menu.html

@@ -1,126 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>HtmlTable Multi-Select Menu</title>
-	</head>
-	<body>
-		<div class="hue-shared">
-			
-			<p>
-				Right click a row in the table below to get a menu. Select more than one row (hold shift) and right click and get a different menu.
-			</p>
-		
-		<table data-filters="HtmlTable, ContextMenu" class="multiselect selectable sortable" cellpadding="0" cellspacing="0"
-		data-context-menu-actions="[{'events':['contextmenu'], 'menu':'ul.table-context-menu'}]">
-		    <thead>
-		      <tr>
-			<th><ul class="table-context-menu context-menu jframe-hidden">
-				<li class="cm-one">multi-select option 1</li>
-				<li class="cm-two">multi-select option 2</li>
-				<li class="cm-three">multi-select option 3</li>
-			      </ul>
-
-								ID
-					</th>
-					<th>
-								TimeZone
-					</th>
-					<th>
-								Name
-					</th>
-					<th>
-								GEO Latitude
-					</th>
-					<th>
-								GEO Longitude
-					</th>
-				</tr>
-			</thead>
-			<tbody>
-				<tr data-filters="ContextMenu" data-context-menu-actions="[{'events':['contextmenu','click:relay(a.show-options)'],'menu':'ul.context-menu'}]">
-					<td><ul class="context-menu jframe-hidden">
-						<li class="cm-one">Item 1</li>
-						<li class="cm-two">Item 2</li>
-						<li class="cm-three">Item 3</li>
-					</ul>
-
-						22
-					</td>
-					<td>
-						New York City
-					</td>
-					<td>
-						America/New_York
-					</td>
-					<td>
-						40.7255
-					</td>
-					<td>
-						-73.9983
-					</td>
-				</tr>
-				<tr data-filters="ContextMenu" data-context-menu-actions="[{'events':['contextmenu','click:relay(a.show-options)'],'menu':'ul.context-menu'}]">
-					<td><ul class="context-menu jframe-hidden">
-						<li class="cm-one">Item 1</li>
-						<li class="cm-two">Item 2</li>
-						<li class="cm-three">Item 3</li>
-					</ul>
-
-						23
-					</td>
-					<td>
-						San Francisco
-					</td>
-					<td>
-						America/Los_Angeles
-					</td>
-					<td>
-						37.7587
-					</td>
-					<td>
-						-122.433
-					</td>
-				</tr>
-				<tr data-filters="ContextMenu" data-context-menu-actions="[{'events':['contextmenu','click:relay(a.show-options)'],'menu':'ul.context-menu'}]">
-					<td><ul class="context-menu jframe-hidden">
-						<li class="cm-one">Item 1</li>
-						<li class="cm-two">Item 2</li>
-						<li class="cm-three">Item 3</li>
-					</ul>
-
-						24
-					</td>
-					<td>
-						Boston
-					</td>
-					<td>
-						America/New_York
-					</td>
-					<td>
-						42.3583
-					</td>
-					<td>
-						-71.0603
-					</td>
-				</tr>
-			</tbody>
-		</table>
-	</body>
-</html>

+ 0 - 68
apps/jframegallery/src/jframegallery/templates/gallery/html-table.resizable.columns.html

@@ -1,68 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-<head>
-	<title>HtmlTable Resizable Columns</title>
-</head>
-<body>
-<div class=hue-shared>
-
-	<p>you can resize the columns below by dragging the border between them in the table header.</p>
-	<table data-filters=HtmlTable class="multiselect selectable sortable resizable" data-table-resize="table" cellpadding=0 cellspacing=0>
-		<thead>
-			<tr>
-				<th> &radic; </th>
-				<th> ID </th>
-				<th> TimeZone </th>
-				<th> Name </th>
-				<th> GEO Latitude </th>
-				<th> GEO Longitude </th>
-			</tr>
-		</thead>
-		<tbody>
-			<tr>
-				<td> <input type=checkbox value=1> </td>
-				<td> 22 </td>
-				<td> New York City </td>
-				<td> America/New_York </td>
-				<td> 40.7255 </td>
-				<td> -73.9983 </td>
-			</tr>
-			<tr>
-				<td> <input type=checkbox value=2> </td>
-				<td> 23 </td>
-				<td> San Francisco </td>
-				<td> America/Los_Angeles </td>
-				<td> 37.7587 </td>
-				<td> -122.433 </td>
-			</tr>
-			<tr>
-				<td> <input type=checkbox value=3> </td>
-				<td> 24 </td>
-				<td> Boston </td>
-				<td> America/New_York </td>
-				<td> 42.3583 </td>
-				<td> -71.0603 </td>
-			</tr>
-		</tbody>
-	</table>
-
-</div>
-</body>
-</html>

+ 0 - 100
apps/jframegallery/src/jframegallery/templates/gallery/html-table.treeview.ajax.mako

@@ -1,100 +0,0 @@
-<%!
-  import urllib
-%>
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>HtmlTable Treeview w/ Ajax</title>
-    <style>
-    .table-depth-0>td:first-child { padding-left: 10px; }
-    .table-depth-1>td:first-child { padding-left: 25px; }
-    .table-depth-2>td:first-child { padding-left: 40px; }
-    .table-depth-3>td:first-child { padding-left: 55px; }
-    .table-depth-4>td:first-child { padding-left: 70px; }
-    .table-depth-5>td:first-child { padding-left: 85px; }
-    .table-depth-6>td:first-child { padding-left: 100px; }
-    .table-depth-7>td:first-child { padding-left: 115px; }
-    .table-depth-8>td:first-child { padding-left: 130px; }
-    .table-depth-9>td:first-child { padding-left: 145px; }
-    .table-depth-10>td:first-child { padding-left: 160px; }
-    .table-depth-11>td:first-child { padding-left: 175px; }
-    </style>
-    <meta http-equiv="refresh" content="5" />
-  </head>
-  <body>
-    <div class="jframe_padded"> 
-      <input value="you can put some text in here to verify that the whole view doesn't refresh" style="width: 500px;"/>
-      <p><a href="${request_path}?show_all=true">Show everything</a> || <a href="${request_path}">back to top</a></p>
-      <table data-filters="HtmlTable" class="selectable treeView highlight-partial-updates" style="border: 1px solid #999; width: 98%">
-
-      <%def name="create_row(node, depth, path)">
-        <%
-          expanded = ""
-          if path in open_paths:
-            expanded = "table-expanded"
-          folder = ""
-          if node.children:
-            folder = "table-folder"
-        %>
-        <tr class="${folder} table-depth-${depth} ${expanded} pstree-${node.pid}"
-          data-dblclick-delegate="{'dblclick_loads':'.sub'}"
-          data-partial-line-id="pstree-line-${node.pid}">
-          <td style="max-width:400px">
-            % if path in open_paths:
-              <a href="${remove(path)}" class="jframe-hidden">collapse</a>
-            % elif node.children:
-              <a href="${add(path)}" class="jframe-hidden">expand</a>
-            % endif
-
-            % if node.children:
-              <a href="${request_path}?subtree=${node.pid}&depth=${int(depth)+1}" class="expand"
-                data-spinner-target=".pstree-${node.pid}"
-                data-livepath-toggle="${urllib.urlencode([('paths', node.path)])}"
-                data-ajax-after=".pstree-${node.pid}" data-ajax-filter="tbody tr">subset</a>
-              <a href="${request_path}?subtree=${node.pid}" class="sub jframe-hidden">browse</a>
-            % endif
-
-            <div style="overflow:hidden; white-space:nowrap;" data-filters="FitText">${node.command}</div></td>
-          <td>${node.pid}</td>
-          <td>${node.user}</td>
-          <td data-partial-id="pstree-cputime-${node.pid}">${node.cputime}</td>
-        </tr>
-        % if path in open_paths or show_all:
-          % for child in node.children:
-            ${create_row(child, depth+1, path+"/"+str(child.pid))}
-          % endfor
-        % endif
-      </%def>
-
-      <thead>
-        <tr>
-          <th>command</th>
-          <th>pid</th>
-          <th>user</th>
-          <th>cputime</th>
-        </tr>
-      </thead>
-      <tbody data-partial-container-id="pstree-body">
-        % for top in tops:
-         ${create_row(top, depth, "/" + str(top.pid))}
-        % endfor
-      </tbody>
-      </table>
-    </div>
-  </body>
-</html>

+ 0 - 260
apps/jframegallery/src/jframegallery/templates/gallery/html-table.treeview.html

@@ -1,260 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>HtmlTable Tree View</title>
-	</head>
-	<body>
-	<h1 class="jframe-hidden">HtmlTable Tree View</h1>
-	<div class="jframe_padded">
-		
-		<p>The table below will appear to be a tree view table immediately, even before scripts are loaded. It will become interactive once the scripts have loaded. You should be able to click a section's expand arrow to expand it. Keys should work - up and down to navigate, shift + up and down to multiselect, left and right to collapse and expand sections.</p>
-		<table id="tree2" data-filters="HtmlTable" class="selectable treeView multiselect hue-bordered-table">
-			<thead>
-				<tr>
-					<th>Name</th>
-					<th>Date Modified</th>
-					<th>Size</th>
-				</tr>
-			</thead>
-				<tbody>
-					<tr class="table-folder table-depth-0">
-						<td>
-							<a class="expand"></a>
-							Documents
-						</td>
-						<td>Jul 10, 2010 1:39pm</td>
-						<td>--</td>
-					</tr>
-						<tr class="jframe-hidden table-depth-1">
-							<td>Resume.pdf</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-						<tr class="jframe-hidden table-depth-1">
-							<td>notes.txt</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-						<tr class="jframe-hidden table-folder table-depth-1">
-							<td>
-								<a class="expand"></a>
-								Receipts
-							</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-								<tr class="jframe-hidden table-depth-2">
-									<td>starbucks.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-2">
-									<td>safeway.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-2">
-									<td>movies.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-folder table-depth-2">
-									<td>
-										<a class="expand"></a>
-										Taxes
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-3">
-									<td>
-										2008 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-3">
-									<td>
-										2009 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-3">
-									<td>
-										2010 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-folder table-depth-2">
-									<td>
-										<a class="expand"></a>
-										Pictures</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-3">
-									<td>
-										Baby.jpg
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="jframe-hidden table-depth-2">
-									<td>
-										Bar.txt
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-						<tr class="table-depth-0">
-							<td>
-								Foo.txt
-							</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-					</tbody>
-		</table>
-
-		<p>The table below will turn into a treeview on startup. Unlike the table above, none of its rows are hidden on load but only after the HtmlTable filter is applied. Both will appear the same to you, though this one will take longer to build.</p>
-		<table id="tree" data-filters="HtmlTable" class="selectable treeView buildTree hue-bordered-table buildTree">
-			<thead>
-				<tr>
-					<th>Name</th>
-					<th>Date Modified</th>
-					<th>Size</th>
-				</tr>
-			</thead>
-				<tbody>
-					<tr class="table-depth-0">
-						<td>
-							Documents
-						</td>
-						<td>Jul 10, 2010 1:39pm</td>
-						<td>--</td>
-					</tr>
-						<tr class="table-depth-1">
-							<td>Resume.pdf</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-						<tr class="table-depth-1">
-							<td>notes.txt</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-						<tr class="table-depth-1">
-							<td>
-								Receipts
-							</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-								<tr class="table-depth-2">
-									<td>starbucks.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-2">
-									<td>safeway.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-2">
-									<td>movies.txt</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-2">
-									<td>
-										Taxes
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-3">
-									<td>
-										2008 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-3">
-									<td>
-										2009 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-3">
-									<td>
-										2010 Taxes.pdf
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-2">
-									<td>Pictures</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-3">
-									<td>
-										Baby.jpg
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-								<tr class="table-depth-2">
-									<td>
-										Bar.txt
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-							<tr class="table-depth-1">
-								<td>
-									Candy
-								</td>
-								<td>Jul 10, 2010 1:39pm</td>
-								<td>--</td>
-							</tr>
-								<tr class="table-depth-2">
-									<td>
-										Snickers.txt
-									</td>
-									<td>Jul 10, 2010 1:39pm</td>
-									<td>--</td>
-								</tr>
-						<tr class="table-depth-0">
-							<td>
-								Foo.txt
-							</td>
-							<td>Jul 10, 2010 1:39pm</td>
-							<td>--</td>
-						</tr>
-					</tbody>
-		</table>
-	
-	</div>
-	</body>
-</html>

+ 0 - 28
apps/jframegallery/src/jframegallery/templates/gallery/ignored-links.html

@@ -1,28 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Ignored Links</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<a target="FileBrowser" class="jframe_ignore">I would normally launch the file browser, but I have the css class .jframe_ignore, so I do nothing.</a>
-		</div>
-	</body>
-</html>

+ 0 - 58
apps/jframegallery/src/jframegallery/templates/gallery/jframe.sizeTo.html

@@ -1,58 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>SizeTo</title>
-	</head>
-	<body>
-		<h1 style="background: #999; height: 30px; padding: 10px">This is a header that's 100px tall</h1>
-		<div data-filters="SizeTo" data-size-to-height="-70" class="jframe_padded" style="background: #ccc">
-			<p>This is content that is stretched to the height of the JFrame - 70px (this isn't 100px because of padding added to this container and the header). This element's background is light grey and should go all the way to the bottom of the window. Further, the overflow (scroll) should be limited to this lower element (because it has overflow:auto assigned to it).</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-			<p>this is here to provide an overflow.</p>
-		</div>
-	</body>
-</html>

+ 0 - 36
apps/jframegallery/src/jframegallery/templates/gallery/multi-checks.html

@@ -1,36 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Multi Checks</title>
-	</head>
-	<body>
-		<div class="jframe_padded" data-filters="MultiChecks">
-			<p>You should be able to hold down shift to select ranges of checkboxes below. Select one checkbox, then hold shift and click another. The boxes between the two should fill in. It shouldn't matter if you go up or down.</p>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-			<input type="checkbox"/><br/>
-		</div>
-	</body>
-</html>

+ 0 - 32
apps/jframegallery/src/jframegallery/templates/gallery/overtext.html

@@ -1,32 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Overtext</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<p>The input below should have some placeholder text that disappears when you click inside the input. If you enter a value and click out, it should not return. If you empty the value and click out, it should reappear. To achieve this, the input has "OverText" as a value in its data-filters property.</p>
-			<input name="test" data-filters="OverText" title="example text..."/>
-			<hr/>
-			<p>This is the same thing using the deprecated .overtext css class (there should be a dbug.warning for it).</p>
-			<input name="test" class="overtext" title="example text..."/>
-		</div>
-	</body>
-</html>

+ 0 - 112
apps/jframegallery/src/jframegallery/templates/gallery/partial_refresh.mako

@@ -1,112 +0,0 @@
- Licensed to Cloudera, Inc. under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  Cloudera, Inc. 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.
-<%!
-from datetime import datetime
-%>
-<%
-count = int(get_var('count', 0))
-%>
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Partial Refresh</title>
-    <xmeta http-equiv="refresh" content="2;{{request_path}}?sleep=1&count=${count + 1}" />
-  </head>
-  <body>
-    <div class="jframe_padded highlight-partial-updates">
-      <h2 data-single-partial-id="0">The current time: ${datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</h2>
-      <a class="jframe-fake_refresh">fake refresh</a>
-      <a data-filters="ArtButton" data-single-partial-id="1">current time: ${datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</a>
-      <br/>
-      <textarea type="text">you can change this</textarea>
-      <p>you can interact with the input above while the blocks with the time stamps update. Note that the button is rendered each time and your input changes aren't.</p>
-      <hr/>
-      <p>
-        The table below will continue to grow until there are 10 rows; the time in each row will update with each refresh.
-      </p>
-      <table class="HtmlTable">
-        <thead>
-          <tr>
-            <th>index</th>
-            <th>current time</th>
-          </tr>
-        </thead>
-        <tbody data-partial-container-id="partials-tbody">
-          <% index = 0 %>
-          % while index < count and index < 10:
-            <tr data-partial-line-id="tr-${index}">
-              <td data-partial-id="index-${index}">${index}</td>
-              <td data-partial-id="time-${index}">${datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</td>
-            </tr>
-            <% index = index + 1 %>
-          % endwhile
-        </tbody>
-      </table>
-     <hr/>
-     <p>
-       The table below will shrink from 10 rows down to zero; the time in each row will update on each refresh.
-     </p>
-     <table class="HtmlTable">
-       <thead>
-         <tr>
-           <th>index</th>
-           <th>current time</th>
-         </tr>
-       </thead>
-       <tbody data-partial-container-id="partials-tbody-down">
-         <%
-           count = 10 - count
-           index = 0 %>
-         % while index < count:
-           <tr data-partial-line-id="tr-down-${index}">
-             <td data-partial-id="index-down-${index}">${index}</td>
-             <td data-partial-id="time-down-${index}">${datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</td>
-           </tr>
-           <% index = index + 1 %>
-         % endwhile
-       </tbody>
-     </table>
-     <hr/>
-     <p>
-       The table below will rotate, moving the top row to the bottom each time the view updates. This tests partial refresh's ability to deal with order changes on the server side.
-     </p>
-     <table class="HtmlTable">
-       <thead>
-         <tr>
-           <th>index</th>
-           <th>current time</th>
-         </tr>
-       </thead>
-       <tbody data-partial-container-id="partials-tbody-rotate" class="ordered_partial_refresh">
-         <%
-           rows = 0
-           show = 10
-            %>
-         % while rows < show:
-           <%
-             index = (count+rows)%show
-           %>
-           <tr data-partial-line-id="tr-rotate-${index}">
-             <td data-partial-id="index-rotate-${index}">${index}</td>
-             <td data-partial-id="time-rotate-${index}">${datetime.now().strftime("%Y-%m-%d %H:%M:%S")}</td>
-           </tr>
-           <% rows = rows + 1 %>
-         % endwhile
-       </tbody>
-     </table>
-    </div>
-  </body>
-</html>

+ 0 - 28
apps/jframegallery/src/jframegallery/templates/gallery/post-load.alert.popup.html

@@ -1,28 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Post-load alert popup</title>
-	</head>
-	<body>
-		<div class="alert_popup">
-				I'm a post-load alert. You can click "ok" or the modal layer below me to close me.
-		</div>
-	</body>
-</html>

+ 0 - 29
apps/jframegallery/src/jframegallery/templates/gallery/post-load.alert.popup.jframe.renders.html

@@ -1,29 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Post-load alert popup</title>
-	</head>
-	<body>
-		<div class="alert_popup jframe_renders">
-				I'm a post-load alert. You can click "ok" or the modal layer below me to close me.
-		</div>
-		<p>Despite the alert, this content still rendered. My popup is in a div with the class .alert_popup but <em>also</em> has .jframe_renders. This allows the page below the popup to still render the response (without the popup content of course).</p>
-	</body>
-</html>

+ 0 - 43
apps/jframegallery/src/jframegallery/templates/gallery/post-load.prompt.popup.html

@@ -1,43 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Post-load prompt popup</title>
-	</head>
-	<body>
-		{% if post_vars %}
-			<div class="jframe_padded">
-				You submitted the following values:
-				<ul>
-					{% for post_var, val in post_vars %}
-					 <li>{{post_var}}: {{val}}</li>
-					{% endfor %}
-				</ul>
-			</div>
-		{% else %}
-		<div class="prompt_popup">
-				I'm a post-load prompt. Enter a value please.
-				<form action="{{request_path}}" method="post" style="margin: 6px 0px 0px;">
-					<input type="text" name="prompt_value"/>
-					<input type="submit" class="jframe-hidden" name="submit"/>
-				</form>
-		</div>
-		{% endif %}
-	</body>
-</html>

+ 0 - 28
apps/jframegallery/src/jframegallery/templates/gallery/posteditor.html

@@ -1,28 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>PostEditor</title>
-	</head>
-	<body>
-	<h1>PostEditor</h1>
-        Below is a PostEditor.  It gives you some useful editing features, such as bracket matching.
-	<textarea name="postedit" data-filters="PostEditor">  If you type a brakcket here, the left bracket will be created for you. </textarea>
-        </body>
-</html>

+ 0 - 44
apps/jframegallery/src/jframegallery/templates/gallery/resizables.html

@@ -1,44 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Resizables</title>
-  </head>
-  <body>
-  <div class="jframe_padded">
-    <p>You should be able to resize the box below by dragging the grey handle.</p>
-    <div data-filters="Resizable" data-resize-handle=".textresizer" data-resize-child="textarea" data-resize-modifiers="{'x': false}">
-      <textarea tabindex="4" class="resizable" rows="15" cols="50" name="comment" style="width: 250px; height: 100px;"></textarea>
-      <div class="textresizer" style="width: 254px; background: #ddd; border-top: 1px solid #eee; border-left: 1px solid #eee; border-right: 1px solid #333; border-bottom: 1px solid #333; height: 4px; cursor: s-resize; margin-bottom: 10px; clear:both;"></div>
-    </div>
-    <hr style="clear:both"/>
-		<p>The example below uses the default style for a resize handle, which is positioned on the bottom right corner of its container. It has the .jframe-resize_handle class.</p>
-		<div data-filters="Resizable" data-resize-handle=".jframe-resize_handle" style="min-height: 100px; min-width: 100px; border: 1px solid #000; position: relative; width: 100px; height: 100px">
-			<p style="padding: 8px">drag the little icon in the bottom right to resize...</p>
-			<a class="jframe-resize_handle">resize</a>
-		</div>
-		<br/>
-		<br/>
-		<br/>
-		<br/>
-		<br/>
-		<br/>
-  </div>
-</body>
-</html>

+ 0 - 44
apps/jframegallery/src/jframegallery/templates/gallery/select_with_other.mako

@@ -1,44 +0,0 @@
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Select With Other</title>
-  </head>
-  <body>
-    <div class="jframe_padded">
-      <div data-filters="SelectWithOther">
-        <select>
-        <option>A</option>
-        <option>B</option>
-        <option value="__other__">Other</option>
-        </select>
-        <input name="other" class="jframe-hidden"  data-filters="OverText" alt="Enter a custom value">
-      </div>
-      <hr/>
-      <div data-filters="SelectWithOther" data-other-input=".otherContainer" data-other-options="option[value=null]">
-        <select>
-        <option>A</option>
-        <option>B</option>
-        <option value="null">Other</option>
-        </select>
-        <div class="otherContainer jframe-hidden">
-          <input name="other" data-filters="OverText" alt="Enter a custom value">
-        <div>
-      </div>
-    </div>
-  </body>
-</html>

+ 0 - 29
apps/jframegallery/src/jframegallery/templates/gallery/show.and.hide.history.html

@@ -1,29 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Show and Hide History</title>
-	</head>
-	<body>
-		<div class="jframe_padded jframe-hide_history">
-			<p>This document hides the history component in the browser by having the CSS class <em>.jframe-hide_history</em>. The history component will be restored when you go back.</p>
-			<p><a data-filters="ArtButton" class="jframe-back jframe-nav_back"></a></p>
-		</div>
-	</body>
-</html>

+ 0 - 60
apps/jframegallery/src/jframegallery/templates/gallery/side.by.side.select.html

@@ -1,60 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Side-by-side Select</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<h2 style="margin: 0px 0px 4px">Example with just a select element w/ side_by_side_select class</h2>
-			<select data-filters="SideBySideSelect" multiple="true">
-				<option value="1">one</option>
-				<option value="2">two</option>
-				<option value="3">three</option>
-				<option value="4">four</option>
-				<option value="5">five</option>
-				<option value="6">six</option>
-				<option value="7">seven</option>
-				<option value="8">eight</option>
-				<option value="9">nine</option>
-				<option value="10">ten</option>
-				<option value="11">eleven</option>
-				<option value="12">twelve</option>
-				<option value="13">thirteen</option>
-			</select>
-			
-			<h2 style="margin: 8px 0px 4px">Example in a container that has the side_by_side_select class</h2>
-			<div data-filters="SideBySideSelect">
-				<select multiple="true">
-					<option value="1">one</option>
-					<option value="2">two</option>
-					<option value="3">three</option>
-				</select>
-			</div>
-
-			<h2 style="margin: 8px 0px 4px">Example of a select with the class but <tt>multiple</tt> is not true (so it's ignored)</h2>
-			<select data-filters="SideBySideSelect">
-				<option value="1">one</option>
-				<option value="2">two</option>
-				<option value="3">three</option>
-			</select>
-			
-		</div>
-	</body>
-</html>

+ 0 - 96
apps/jframegallery/src/jframegallery/templates/gallery/sortables.html

@@ -1,96 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Sortables</title>
-  </head>
-  <body>
-  <div class="jframe_padded">
-
-    <p> You can reorder the list below. When you do the sort order will be displayed in the box below </p>
-
-    <p>You should be able to reorder the list by dragging. The new order displays below the list when you release an item. If you scroll the list down a bit it should still let you sort correctly. Dragging an element that contains a radio that is selected to a new location should keep the radio selected when it's dropped. If you drag an element to the top or bottom of the list, it should scroll.</p>
-
-    <div id="wrapper" styles="width: 300px; padding: 4px; border: 1px solid #999;">
-      <ul id="SortableExample" style="height: 150px; overflow: auto; padding: 0; margin: 0;"
-        data-filters="Sortable"
-        data-sort-state=".order"
-        data-sort-property="value"
-        data-sort-property-child="input">
-        <li id="1" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">First <input type="radio" name="foo" value="1" checked="true"/></li>
-        <li id="2" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Second <input type="radio" name="foo" value="2" /></li>
-        <li id="3" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Third <input type="radio" name="foo" value="3"/></li>
-        <li id="4" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Fourth <input type="radio" name="foo" value="4"/></li>
-        <li id="5" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Fifth <input type="radio" name="foo" value="5"/></li>
-        <li id="6" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Sixth <input type="radio" name="foo" value="6"/></li>
-        <li id="7" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Seventh <input type="radio" name="foo" value="7"/></li>
-        <li id="8" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Eigth <input type="radio" name="foo" value="8"/></li>
-        <li id="9" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Nineth <input type="radio" name="foo" value="9"/></li>
-        <li id="10" style="list-style: none; margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Tenth <input type="radio" name="foo" value="10"/></li>
-      </ul>
-      <div class="order" style="clear:both"></div>
-    </div>
-
-    <hr/>
-
-    <p>You should be able to reorder the list by dragging. The new order displays below the list. You should be able to move items from one list to another.</p>
-
-    <div data-filters="Sortable" data-sort-lists="ul"
-      data-sort-state=".order2">
-        <ul style="float: left; width: 20%; min-height: 60px; border: 1px solid #999; margin-right: 8px;">
-            <li id="1" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">First</li>
-            <li id="2" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Second</li>
-            <li id="3" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Third</li>
-        </ul>
-        <ul style="float: left; width: 20%; min-height: 60px; border: 1px solid #999; margin-right: 8px;">
-            <li id="4" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Four</li>
-            <li id="5" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Five</li>
-            <li id="6" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Six</li>
-        </ul>
-        <ul style="float: left; width: 20%; min-height: 60px; border: 1px solid #999; margin-right: 8px;">
-            <li id="7" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Seven</li>
-            <li id="8" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Eight</li>
-            <li id="9" style="margin: 2px !important; padding: 2px !important; background: #ccc !important; cursor: pointer;">Nine</li>
-        </ul>
-      <div class="order2" style="clear:both"></div>
-    </div>
-    <hr/>
-    <p>Here's a simple sortable list that has the default sortable styles. Use the .jframe-sort_handle for the elements you want to give this style.</p>
-    <div id="wrapper" styles="width: 300px; padding: 4px; border: 1px solid #999;">
-      <ul id="SortableExample" style="height: 150px; overflow: auto; padding: 0; margin: 0;"
-        data-filters="Sortable"
-        data-sort-state=".order"
-        data-sort-property="value"
-        data-sort-property-child="input">
-        <li class="jframe-sort_handle" id="1" style="list-style: none;">First <input type="radio" name="foo" value="1" checked="true"/></li>
-        <li class="jframe-sort_handle" id="2" style="list-style: none;">Second <input type="radio" name="foo" value="2" /></li>
-        <li class="jframe-sort_handle" id="3" style="list-style: none;">Third <input type="radio" name="foo" value="3"/></li>
-        <li class="jframe-sort_handle" id="4" style="list-style: none;">Fourth <input type="radio" name="foo" value="4"/></li>
-        <li class="jframe-sort_handle" id="5" style="list-style: none;">Fifth <input type="radio" name="foo" value="5"/></li>
-        <li class="jframe-sort_handle" id="6" style="list-style: none;">Sixth <input type="radio" name="foo" value="6"/></li>
-        <li class="jframe-sort_handle" id="7" style="list-style: none;">Seventh <input type="radio" name="foo" value="7"/></li>
-        <li class="jframe-sort_handle" id="8" style="list-style: none;">Eigth <input type="radio" name="foo" value="8"/></li>
-        <li class="jframe-sort_handle" id="9" style="list-style: none;">Nineth <input type="radio" name="foo" value="9"/></li>
-        <li class="jframe-sort_handle" id="10" style="list-style: none;">Tenth <input type="radio" name="foo" value="10"/></li>
-      </ul>
-      <div class="order" style="clear:both"></div>
-    </div>
-  </div>
-</body>
-</html>

+ 0 - 51
apps/jframegallery/src/jframegallery/templates/gallery/split-view-with-header.html

@@ -1,51 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Splitview with Header</title>
-	</head>
-	<body>
-			<h1 style="line-height:20px; padding: 12px; background: #bbb; border-bottom: 1px solid #000">
-				Splitview with header
-			</h1>
-			<div data-filters="SplitView" class="resizable"  data-split-offset-y="45">
-				<div class="left_col jframe_padded">
-					this is the left column
-				</div>
-				<div class="right_col jframe_padded">
-					<p>and this is the right,<br/>
-					you can resize us by dragging the middle bar around.</p>
-					
-					<p>Note that the size makes room for the header.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-					<p>This is here to show a scrollbar when there's overflow.</p>
-				</div>
-			</div>
-	</body>
-</html>

+ 0 - 35
apps/jframegallery/src/jframegallery/templates/gallery/splitview.(explicit.size).html

@@ -1,35 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Splitview</title>
-	</head>
-	<body>
-			<div data-filters="SplitView">
-				<div class="left_col jframe_padded">
-					this is the left column.<br/>
-					this column is the one that resizes when you resize the window.
-				</div>
-				<div class="right_col jframe_padded" style="width: 200px;">
-					and this is the right,<br/>
-					note that it has an explicit, inline style for width set to 200px.
-				</div>
-			</div>
-	</body>
-</html>

+ 0 - 40
apps/jframegallery/src/jframegallery/templates/gallery/splitview.(vertical).html

@@ -1,40 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Splitview (Vertical)</title>
-	</head>
-	<body>
-		<div class="resizable" data-filters="SplitView">
-			<div class="top_col jframe_padded">
-				this is the top column<br/>
-				<a data-splitview-resize="{'top':0}">hide the top</a><br/>
-				<a data-splitview-toggle="{'side': 'bottom', 'hideSplitter': true}" class="jframe-inline">Toggle -- <span class="toggle-shown">Hide Bottom</span><span class="toggle-hidden">Show Bottom</span></a>
-			</div>
-			<div class="splitter_col" style="background: #88f; padding: 4px">
-				<h4>this is the splitter handle</h4>
-			</div>
-			<div class="bottom_col jframe_padded" style="height:200px">
-				and this is the bottom,<br/>
-				you can resize us by dragging the middle bar around.<br/>
-				<a data-splitview-toggle="{'side': 'top', 'hideSplitter': true}" class="jframe-inline">Toggle -- <span class="toggle-shown">Hide Top</span><span class="toggle-hidden">Show Top</span></a>
-			</div>
-		</div>
-	</body>
-</html>

+ 0 - 38
apps/jframegallery/src/jframegallery/templates/gallery/splitview.html

@@ -1,38 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Splitview</title>
-	</head>
-	<body>
-			<div class="resizable" data-filters="SplitView">
-				<div class="left_col jframe_padded">
-					this is the left column.<br/>
-					<a data-splitview-resize="{'left':0}">hide the left side</a><br/>
-					<a data-splitview-toggle="{'side': 'right', 'hideSplitter': true}">toggle the right side (hide splitter)</a>
-					
-				</div>
-				<div class="right_col jframe_padded">
-					and this is the right,<br/>
-					you can resize us by dragging the middle bar around.<br/>
-					<a data-splitview-toggle="{'side': 'left'}">toggle the left side</a>
-				</div>
-			</div>
-	</body>
-</html>

+ 0 - 19
apps/jframegallery/src/jframegallery/templates/gallery/splitview.yml

@@ -1,19 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-js-references:
-  - "Widgets/ART.SplitView"
-  - "Widgets/Behavior.SplitView"

+ 0 - 33
apps/jframegallery/src/jframegallery/templates/gallery/stand-alone.nav.buttons.html

@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<html>
-	<head>
-		<title>Show and Hide History</title>
-	</head>
-	<body>
-		<div class="jframe_padded jframe-hide_history">
-			<p>These buttons perform the standard nav actions of back, forward, and refresh. Note that the forward button doesn't do anything (unless you navigate somewhere else from here - say, by clicking the JFrame Gallery icon to go back to the index and then hitting back to come back to this page) as you don't have anything in your forward history. This button is not styled based on that state (i.e. it's not disabled because you cannot go forward). It's use is somewhat limited due to this.</p>
-			<div data-filters="ArtButtonBar">
-				<a data-filters="ArtButton" class="jframe-back jframe-nav_back"></a>
-				<a data-filters="ArtButton" class="jframe-refresh"></a>
-				<a data-filters="ArtButton" class="jframe-next jframe-nav_next"></a>
-			</div>
-		</div>
-	</body>
-</html>

+ 0 - 63
apps/jframegallery/src/jframegallery/templates/gallery/submit.form.on.change.html

@@ -1,63 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Submit Form on Change</title>
-	</head>
-	<body>
-		{% if post_vars %}
-			<div class="jframe_padded">
-				You submitted the following values:
-				<ul>
-					{% for post_var, val in post_vars %}
-					 <li>{{post_var}}: {{val}}</li>
-					{% endfor %}
-				</ul>
-			</div>
-		{% else %}
-		<p>
-			The form below will submit as soon as you select a value.
-		</p>
-		<form action="{{request_path}}" method="post" style="margin: 6px 0px 0px;" data-filters="SubmitOnChange">
-			<select name="select_list">
-				<option value="option 1">option 1</option>
-				<option value="option 2">option 2</option>
-				<option value="option 3">option 3</option>
-			</select>
-			<input type="submit" class="jframe-hidden" name="submit"/>
-                        <input type="checkbox" name="check1">
-                        <input type="checkbox" name="check2">
-		</form>
-		
-		<hr/>
-		<p>This form works exactly as the one above, but the SubmitOnChange data filter is on the select, rather than the form.</p>
-		<form action="{{request_path}}" method="post" style="margin: 6px 0px 0px;">
-			<select name="select_list" data-filters="SubmitOnChange">
-				<option value="option 1">option 1</option>
-				<option value="option 2">option 2</option>
-				<option value="option 3">option 3</option>
-			</select>
-			<input type="text" name="textinput" value="If you change me, I don't submit the form.">
-			<input type="submit" class="jframe-hidden" name="submit"/>
-		</form>
-		
-		
-		{% endif %}
-	</body>
-</html>

+ 0 - 62
apps/jframegallery/src/jframegallery/templates/gallery/submit.link.html

@@ -1,62 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Submit Links</title>
-	</head>
-	<body>
-
-		<p>Click either submit button to update the box below. The box should have an ajax spinner and then update with the content in the button.</p>
-
-		<form action="{{request_path}}" method="post" style="margin: 6px 0px 0px;">
-			<input type="submit" name="button" value="fetch html (button 1)"/>
-			<input type="submit" name="button" value="fetch html (button 2)"/>
-			<a class="jframe-submit_form" data-extra-data="{'link':'fetch html (link 1)'}">fetch html (link 1)</a>
-			<a class="jframe-submit_form" data-extra-data="{'link':'fetch html (link 2)'}">fetch html (link 2)</a>
-		</form>
-
-		<p>
-			Outside of the form:
-			<a data-form="form" class="jframe-submit_form" data-extra-data="{'link':'fetch html (link 3)'}">fetch html (link 3)</a>
-		</p>
-
-		<div style="position: relative; margin-top: 10px">
-			<div id="update" style="padding: 10px; width: 200px; border: 1px solid black; height: 100px; overflow:hidden;">
-				{% if post_vars %}
-					<div class="jframe_padded">
-						You submitted the following values:
-						<ul>
-							{% for post_var, val in post_vars %}
-							 <li>{{post_var}}: {{val}}</li>
-							{% endfor %}
-						</ul>
-					</div>
-				{% else %}
-					this box should get new text when you click the input above.
-				{% endif %}
-			</div>
-		</div>
-
-		<script src="/depender/build?require=Widgets/Behavior.FormRequest,More/Spinner"></script>
-		<script>
-		new Behavior().apply(document.body);
-		</script>
-
-	</body>
-</html>

+ 0 - 46
apps/jframegallery/src/jframegallery/templates/gallery/tabs-toolbar.html

@@ -1,46 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Tabs</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<div data-filters="Tabs">
-				<ul class="toolbar tabs" style="position: absolute; top:69px; left: 30px;">
-					<li><span>Tab 1</span></li>
-					<li><span>Tab 2</span></li>
-				</ul>
-				<ul class="tab_sections jframe-clear">
-					<li>
-						<p>I'm the section for Tab 1. Note that my UL has both a .tab_sections.</p>
-						<p>My tabs are in the header of the window. I get this effect by just adding the .toolbar class to the UL of the tabs. I have to position the bar myself to get it snug up against the content.</p>
-					</li>
-					<li>
-						<p>I'm the section for Tab 2. Notice how, since this section is much longer, I resize gracefully when I display and hide. Here's a paragraph or two of Lorem Ipsum just to make this section longer.</p>
-
-						<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac nulla at ante bibendum ultrices ut id urna. Aenean tempor rhoncus varius. Ut vestibulum turpis ullamcorper enim venenatis non accumsan nulla pharetra. Sed molestie sapien sit amet ligula consectetur sollicitudin ut sit amet nisi. Vestibulum molestie viverra convallis. Duis placerat, risus nec condimentum ultrices, est eros blandit eros, eget faucibus quam metus quis orci. Nulla ut varius turpis. Praesent lobortis malesuada bibendum. Sed venenatis tempor dolor sed condimentum. Mauris nec erat magna, et semper nunc. Duis consequat orci sit amet purus faucibus euismod. Fusce dapibus dui quis velit euismod eu bibendum metus varius.</p>
-
-						<p>Aliquam erat volutpat. Ut consequat erat vel sem egestas in ornare dolor mollis. Vestibulum mollis, sapien sed sagittis rutrum, dui elit viverra turpis, in viverra nisl neque et urna. Nam tincidunt, tortor hendrerit tincidunt euismod, lacus orci hendrerit tellus, eget laoreet sapien dui eget enim. Duis tellus dui, vulputate eget congue nec, sagittis vitae dolor. Proin accumsan est et dui luctus quis commodo lacus malesuada. Quisque nec felis eget eros vestibulum lacinia. Fusce pretium, magna non fringilla elementum, sapien enim imperdiet nulla, nec varius libero nulla a dolor. Suspendisse non dui justo. Class aptent taciti sociosqu ad.</p>
-					</li>
-				</ul>
-			</div>
-		</div>
-	</body>
-</html>

+ 0 - 49
apps/jframegallery/src/jframegallery/templates/gallery/tabs.html

@@ -1,49 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Tabs</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<div data-filters="Tabs">
-				<ul class="tabs jframe-right clearfix">
-					<li><span>Tab 1</span></li>
-					<li><span>Tab 2</span></li>
-				</ul>
-				<ul class="tab_sections jframe-clear" style="border-top: 1px solid #999; padding: 10px">
-					<li>
-						<p>I'm the section for Tab 1. Note that my UL has both a .tab_sections class but also a .jframe-clear; that's because the tabs are aligned to the right, so we need to clear that float.</p>
-						<p>
-							The tabs are right aligned because their UL has the class .jframe-right; to fix the firefox height bug with floating elements, we also give it the class .clearfix (<a href="http://www.positioniseverything.net/easyclearing.html">details on this</a>). Note that if we didn't want the tabs on the right we just wouldn't give it the .jframe-right class, and in that case we wouldn't need the .clearfix or .jframe-clear classes in there either.
-						</p>
-						<p>Also note that the tab styling doesn't put this fancy border between the tabs and the content or the padding on the sections. Those styles are up to you.</p>
-					</li>
-					<li>
-						<p>I'm the section for Tab 2. Notice how, since this section is much longer, I resize gracefully when I display and hide. Here's a paragraph or two of Lorem Ipsum just to make this section longer.</p>
-
-						<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac nulla at ante bibendum ultrices ut id urna. Aenean tempor rhoncus varius. Ut vestibulum turpis ullamcorper enim venenatis non accumsan nulla pharetra. Sed molestie sapien sit amet ligula consectetur sollicitudin ut sit amet nisi. Vestibulum molestie viverra convallis. Duis placerat, risus nec condimentum ultrices, est eros blandit eros, eget faucibus quam metus quis orci. Nulla ut varius turpis. Praesent lobortis malesuada bibendum. Sed venenatis tempor dolor sed condimentum. Mauris nec erat magna, et semper nunc. Duis consequat orci sit amet purus faucibus euismod. Fusce dapibus dui quis velit euismod eu bibendum metus varius.</p>
-
-						<p>Aliquam erat volutpat. Ut consequat erat vel sem egestas in ornare dolor mollis. Vestibulum mollis, sapien sed sagittis rutrum, dui elit viverra turpis, in viverra nisl neque et urna. Nam tincidunt, tortor hendrerit tincidunt euismod, lacus orci hendrerit tellus, eget laoreet sapien dui eget enim. Duis tellus dui, vulputate eget congue nec, sagittis vitae dolor. Proin accumsan est et dui luctus quis commodo lacus malesuada. Quisque nec felis eget eros vestibulum lacinia. Fusce pretium, magna non fringilla elementum, sapien enim imperdiet nulla, nec varius libero nulla a dolor. Suspendisse non dui justo. Class aptent taciti sociosqu ad.</p>
-					</li>
-				</ul>
-			</div>
-		</div>
-	</body>
-</html>

+ 0 - 18
apps/jframegallery/src/jframegallery/templates/gallery/tabs.yml

@@ -1,18 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-js-references:
-  - "hue-shared/Behavior.Tabs"

+ 0 - 37
apps/jframegallery/src/jframegallery/templates/gallery/timer.html

@@ -1,37 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Timer</title>
-  </head>
-  <body>
-  <div class="jframe_padded">
-		<p>This filter creates a timer that counts up from zero (or some other value you specify). It uses "human" wording, so when it passes 59 seconds it reads "about a minute ago" and on to "an hour", "a day", etc.</p>
-		<p>Example from zero:
-			<span data-filters="Timer"></span>
-		</p>
-		<p>Example from zero, showing seconds when less than 1 min:
-			<span data-filters="Timer" class="showSeconds"></span>
-		</p>
-		<p>Example from Dec 31, 1999:
-			<span data-filters="Timer" data-start-time="12/31/1999 11:59pm"></span>
-		</p>
-  </div>
-</body>
-</html>

+ 0 - 45
apps/jframegallery/src/jframegallery/templates/gallery/tips.html

@@ -1,45 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Tips</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<ul>
-				<li><a data-filters="PointyTip" rel="I'm the caption." title="I'm the title!">this link has a tip</a></li>
-				<li><a data-filters="PointyTip" rel="I point down." title="I'm the title!" data-tip-direction="6">my tip points down</a></li>
-				<li><a data-filters="PointyTip" rel="I point up, but I'm on the right." title="I'm the title!" data-tip-direction="11">my tip is offset</a></li>
-				<li><a data-filters="PointyTip" rel="I point left." title="I'm the title!" data-tip-direction="9">my tip points to the left</a></li>
-			</ul>
-			
-			<ul>
-				<li>
-					I am some text. Nothing special.
-					<p class="jframe-inline" data-filters="HelpTip">I'm some help text that gets turned into a help tip</p>
-				</li>
-				<li>
-					I am some text. Nothing special.
-					<p class="jframe-inline" data-filters="InfoTip">I'm some help text that gets turned into an info tip</p>
-				</li>
-			</ul>
-			
-		</div>
-	</body>
-</html>

+ 21 - 5
apps/jframegallery/src/jframegallery/templates/index.html

@@ -18,14 +18,30 @@ limitations under the License.
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <html>
 	<head>
-		<title>JFrame Gallery</title>
+		<title>JFrame Gallery
+			{% if current_path %}
+				:: {{current_path}}
+			{% endif %}
+		</title>
 	</head>
 	<body>
-		<div class="jframe_padded">
-			<h1>Gallery pages:</h1>
-			<ul>
+		<div class="jframe_padded view" id="index">
+			<h1>Gallery pages
+				{% if current_path %}
+					in {{current_path}}
+				{% endif %}
+			</h1>
+			<ul class="index">
+				{% if subdir %}
+					<li class="dir"><a href="/jframegallery/{{parent_dir}}">..</a></li>
+				{% endif %}
+
+				{% for dir in dirs %}
+					<li class="dir"><a href="/jframegallery/{{dir.filename}}">{{dir.name}}</a></li>
+				{% endfor %}
+
 				{% for file in files %}
-					<li><a href="/jframegallery/{{file.filename}}" id="{{file.id}}">{{file.name}}</a></li>
+					<li class="file"><a href="/jframegallery/{{file.filename}}">{{file.name}}</a></li>
 				{% endfor %}
 			</ul>
 		</div>

+ 33 - 33
apps/jframegallery/src/jframegallery/templates/source.mako

@@ -19,39 +19,39 @@
     <title>JFrame Gallery Source -- ${name}</title>
     </head>
     <body>
-      <div class="jf-src_view">
-	<div data-filters="Tabs" data-tabs-selector=".tab" data-sections-selector=".section">
-	  <div data-filters="SplitView">
-	    <div class="left_col jframe_padded">
-	      <ul>
-		<li class="tab html-tab"><a>HTML/Template</a></li>
-		%for js_name in js_data.iterkeys():
-		  <li class="tab">
-		    <a>${js_name}</a>
-		  </li>
-		%endfor
-	      </ul>
-	    </div>
-	    <div class="right_col jframe_padded">
-	      <ul class="jframe-clear">
-		## Template data
-		<li class="section">
-		  <h3>Source for HTML</h3>
-		  <hr/>
-		  ${data|n}
-		</li>
-		## JS data
-		%for js_name, js in js_data.iteritems():
-		  <li class="section">
-		    <h3>Source for <code>${js_name}</code></h3>
-		    <hr/>
-		    ${js|n}
-		  </li>
-		%endfor
-	      </ul>
-	    </div>
-	  </div>
-	</div>
+      <div class="jf-src_view view" id="source">
+        <div data-filters="Tabs" data-tabs-selector=".tab" data-sections-selector=".section">
+          <div data-filters="SplitView">
+            <div class="left_col jframe_padded">
+              <ul>
+                <li class="tab html-tab"><a>HTML/Template</a></li>
+                %for js_name in js_data.iterkeys():
+                  <li class="tab">
+                    <a>${js_name}</a>
+                  </li>
+                %endfor
+              </ul>
+            </div>
+            <div class="right_col jframe_padded">
+              <ul class="jframe-clear">
+                ## Template data
+                <li class="section">
+                  <h3>Source for HTML</h3>
+                  <hr/>
+                  ${data|n}
+                </li>
+                ## JS data
+                %for js_name, js in js_data.iteritems():
+                  <li class="section">
+                    <h3>Source for <code>${js_name}</code></h3>
+                    <hr/>
+                    ${js|n}
+                  </li>
+                %endfor
+              </ul>
+            </div>
+          </div>
+        </div>
       </div>
     </body>
 </html>

+ 3 - 5
apps/jframegallery/src/jframegallery/urls.py

@@ -18,9 +18,7 @@
 from django.conf.urls.defaults import patterns, url
 
 urlpatterns = patterns('jframegallery',
-  url(r'^$', 'views.index'),
   url(r'^source/(?P<path>.*)$', 'views.view_source'),
-  url(r'^gallery/autocomplete$', 'views.autocomplete'),
   url(r'^gallery/flash.redirect.*$', 'views.flash_redirect'),
   url(r'^gallery/flash.*$', 'views.flash'),
   url(r'^gallery/error_404.*$', 'views.error_404'),
@@ -28,11 +26,11 @@ urlpatterns = patterns('jframegallery',
   url(r'^gallery/error_real_500.*$', 'views.error_real_500'),
   url(r'^gallery/error_python.*$', 'views.error_python'),
   url(r'^gallery/error_redirect.*$', 'views.error_redirect'),
-  url(r'^gallery/redirect_301.*$', 'views.redirect_301'),
+  url(r'^gallery/redirect_301$', 'views.redirect_301'),
   url(r'^gallery/forwarding.*$', 'views.forwarding'),
   url(r'^gallery/error_message_exception.*$', 'views.error_message_exception'),
   url(r'^gallery/error_popup_exception.*$', 'views.error_popup_exception'),
   url(r'^gallery/forms_with_dependencies.*$', 'views.forms_with_dependencies'),
-  url(r'^gallery/html-table.treeview.ajax.*$', 'views.pstree'),
-  url(r'^gallery/(?P<path>.*)$', 'views.show')
+  url(r'^asset/(?P<path>.*)$', 'views.index'),
+  url(r'^(?P<path>.*)$', 'views.index'),
 )

+ 83 - 194
apps/jframegallery/src/jframegallery/views.py

@@ -42,35 +42,62 @@ _CWD = os.path.dirname(__file__)
 
 _GALLERY_DIR = 'gallery'
 
+EXTERNAL_PATHS = dict(
+  jframe_demos = _GALLERY_DIR + '/JFrame_Demos',
+  jframe_containers = '/static/art/'
+)
+
 # Lock so that we only have one thread sleeping at a time
 _sleep_lock = threading.Lock()
 
-
-def index(request):
+def index(request, path):
   """
-  Get all the files in the gallery directory to make an index
+  Get all the files in a directory path and make an index
   """
+  if request.REQUEST.get('project'):
+    return show(request, '')
+  
   def is_template(name):
     return os.path.splitext(name)[1] in ('.html', '.mako')
-
-  static = os.path.join(_CWD, "templates", _GALLERY_DIR)
   files = []
-  for filename in filter(is_template, os.listdir(static)):
-    # Exclude hidden files
-    if filename.startswith('.'):
-      continue
+  dirs = []
+  if is_template(path):
+    return show(request, path)
+  if path == '':
+    path = _GALLERY_DIR
+  else:
+    path = path.rstrip('/')
+  if not path.startswith(_GALLERY_DIR):
+    raise Exception("Only paths within the gallery can be viewed.")
+  def entry(filename):
     name = os.path.splitext(filename)[0]
-    files.append(dict(
-      filename=os.path.join(_GALLERY_DIR, filename),
+    return dict(
+      filename=os.path.join(path, filename),
       name=name.capitalize().replace('.', ' ').replace('_', ' '),
       id=name.replace(' ', '-').replace('.', '-')
-    ))
+    )
+  for filename in os.listdir(os.path.join(_CWD, 'templates', path)):
+    if filename.startswith('.'):
+      continue
+    if is_template(filename):
+      files.append(entry(filename))
+    elif os.path.isdir(os.path.join(_CWD, 'templates', path, filename)):
+      dirs.append(entry(filename))
   files.sort(lambda x, y: cmp(x['name'], y['name']))
-  # render the index, passing along the file list
+  dirs.sort(lambda x, y: cmp(x['name'], y['name']))
+  
+  parent_dir = path.split('/')
+  parent_dir.pop()
+  parent_dir = '/'.join(parent_dir)
+  
   return render(
     'index.html', request,
     dict(
-      files=files
+      subdir = path != _GALLERY_DIR,
+      current_path = path.replace(_GALLERY_DIR, ''),
+      parent_dir = parent_dir,
+      files=files,
+      dirs=dirs
     ))
 
 def show(request, path):
@@ -80,23 +107,31 @@ def show(request, path):
   Parameters accepted:
     sleep       - Will sleep this number of seconds before responding.
   """
+  if request.REQUEST.get('project'):
+    project = request.REQUEST.get('project')
+    project_path = request.REQUEST.get('path')
+    path = EXTERNAL_PATHS[project] + project_path;
+
   post_vars = None
   if request.POST:
     post_vars = request.POST.iteritems()
-  if request.REQUEST.get('sleep'):
-    sleep = int(request.REQUEST.get('sleep'))
-    do_sleep(sleep)
+  sleeper(request)
 
   return render(
-    os.path.join(_GALLERY_DIR, path),
+    path,
     request,
     dict(
       post_vars = post_vars,
       get_var = request.REQUEST.get,
       get_list = request.REQUEST.getlist,
-      request_path = request.path
+      get_request = lambda: request,
+      request_path = request.path,
+      get_asset_url = get_asset_url
     ))
 
+def get_asset_url(project, path):
+  return EXTERNAL_PATHS[project] + path
+
 def view_source(request, path):
   """
   Handle view source requests.
@@ -160,20 +195,29 @@ def format_code(extension, code_str):
     return "<div><pre>%s</pre></div>" % (code_str,)
 
 
-def do_sleep(seconds):
-  # To prevent a DOS, only one thread can sleep at a time
-  if not _sleep_lock.acquire(False):
-    raise PopupException("Only one sleep request at a time. Please try again")
-  try:
-    time.sleep(seconds)
-  finally:
-    _sleep_lock.release()
+def sleeper(req):
+
+  seconds = False
+  if req.REQUEST.get('delay'):
+      seconds = int(req.REQUEST.get('delay'))
+  if req.REQUEST.get('sleep'):
+      seconds = int(req.REQUEST.get('sleep'))
+
+  if seconds:
+    # To prevent a DOS, only one thread can sleep at a time
+    if not _sleep_lock.acquire(False):
+      raise PopupException("Only one sleep request at a time. Please try again")
+    try:
+      time.sleep(seconds)
+    finally:
+      _sleep_lock.release()
 
 #
 # View handlers for specific gallery pages
 #
 
 def flash(request):
+  sleeper(request)
   request.flash.put('just a test')
   request.flash.put('another growl test')
   request.flash.put('yet another message to bubble up.')
@@ -181,38 +225,48 @@ def flash(request):
   return render(os.path.join(_GALLERY_DIR, 'flash.html'), request, dict())
 
 def flash_redirect(request):
+  sleeper(request)
   request.flash.put('redirect test')
   return format_preserving_redirect(request, '/jframegallery/')
 
 def forwarding(request):
+  sleeper(request)
   letter = request.GET.get("letter", "X");
   request.path = urlresolvers.reverse("jframegallery.views.forwarding") + '?letter=Y'
   return render(os.path.join(_GALLERY_DIR, 'forwarding.html'),
                 request, dict(letter=letter))
 
 def error_404(request):
+  sleeper(request)
   raise Http404("This is a 404.")
 
 def error_500(request):
+  sleeper(request)
   raise HttpResponseServerError(HttpResponse("Server erra'"))
 
 def error_real_500(request):
+  sleeper(request)
   request.ajax = False
   raise HttpResponseServerError(HttpResponse("Server erra'"))
 
 def error_python(request):
+  sleeper(request)
   foo.bar()
 
 def error_redirect(request):
+  sleeper(request)
   return HttpResponseRedirect("/test/does_not_exist/404")
 
 def redirect_301(request):
-  return HttpResponseRedirect("/jframegallery/redirect.html")
+  sleeper(request)
+  return HttpResponseRedirect("/jframegallery/gallery/redirect.html")
 
 def error_message_exception(request):
+  sleeper(request)
   raise MessageException("This is a message exception.")
 
 def error_popup_exception(request):
+  sleeper(request)
   raise PopupException("This is a popup exception.",
     title="Hey there", detail="Some detail")
 
@@ -227,6 +281,7 @@ class DepForm(DependencyAwareForm):
   ]
 
 def forms_with_dependencies(request):
+  sleeper(request)
   data = None
   if request.method == "POST":
     form = DepForm(request.POST)
@@ -236,169 +291,3 @@ def forms_with_dependencies(request):
     form = DepForm()
   return render(os.path.join(_GALLERY_DIR, "forms_with_dependencies.mako"),
                 request, dict(form=form, data=data))
-
-class PsLine(object):
-  def __init__(self, user, pid, ppid, pgid, cputime, command):
-    self.user = user
-    self.pid = int(pid)
-    self.ppid = int(ppid)
-    self.pgid = int(pgid)
-    self.cputime = cputime
-    self.command = command
-    self.children = []
-
-def pstree(request):
-  """
-  Draws 'pstree' by using output from ps command.
-
-  GET arguments:
-    subtree: show only pids below this tree
-    show_all: expand the entire tree
-    paths: slash-separated paths that are expanded
-      (can be specified multiple times)
-
-  """
-  import subprocess
-  import urllib
-  import re
-
-  if request.REQUEST.get('sleep'):
-    sleep = int(request.REQUEST.get('sleep'))
-    time.sleep(sleep)
-
-  # Call ps
-  p = subprocess.Popen(args=["ps", "-axwwo", "user,pid,ppid,pgid,cputime,command"], stdout=subprocess.PIPE)
-
-  children = {}
-  first = True
-  if "subtree" in request.GET:
-    subtree = long(request.GET.get("subtree"))
-  else:
-    subtree = None
-  subtree_top = None
-
-  # Parse in the data
-  for row in p.stdout:
-    if first:
-      # skip header line
-      first = False
-      continue
-    data = user, pid, ppid, pgid, cputime, command = re.split("\s+", row.rstrip(), 5)
-    ps = PsLine(*data)
-    if ps.pid == subtree:
-      subtree_top = ps
-    if ps.ppid in children:
-      children[ps.ppid].append(ps)
-    else:
-      children[ps.ppid] = [ps]
-
-  # Utility method to create the tree
-  def fill(root, current_path):
-    root.path = current_path + str(root.pid)
-    root.children = children.get(root.pid, [])
-    for child in root.children:
-      fill(child, root.path + "/")
-
-  # Start with init and create the tree
-  # Note that on linux, kthreadd is also a child of pid 0
-  top_list = filter(lambda x: 'init' in x.command, children[0])
-  assert len(top_list) == 1
-  top = top_list[0]
-  fill(top, "/")
-  tops = [top]
-
-  # If we're only interested in a subtree, pick that out explicitly
-  if subtree_top:
-    tops = subtree_top.children
-
-  # Methods to manipulate the extant paths list; used by the template.
-  def add(p):
-    paths = list(request.GET.getlist("paths")) # make a copy
-    paths.append(p)
-    query = [urllib.urlencode([("paths", x)]) for x in paths]
-    if subtree:
-      query.append('subtree=' + str(subtree))
-    return request.path + "?" + "&".join(query)
-  def remove(p):
-    paths = list(request.GET.getlist("paths")) # make a copy
-    paths.remove(p)
-    query = [urllib.urlencode([("paths", x)]) for x in paths]
-    if subtree:
-      query.append('subtree=' + str(subtree))
-    return request.path + "?" + "&".join(query)
-
-  paths = request.GET.getlist("paths")
-  return render(
-    os.path.join(_GALLERY_DIR, "html-table.treeview.ajax.mako"),
-    request,
-    dict(
-      tops=tops, show_all=request.GET.get("show_all"),
-      open_paths=paths, request_path=request.path,
-      add=add, remove=remove, depth=request.GET.get('depth', 0)
-    ))
-
-
-def autocomplete(request):
-  items = [
-    'Afghanistan', 'Aland_Islands', 'Albania', 'Algeria',
-    'American_Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica',
-    'Antigua_And_Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia',
-    'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh',
-    'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda',
-    'Bhutan', 'Bolivia', 'Bosnia_And_Herzegovina', 'Botswana',
-    'Bouvet_Island', 'Brazil', 'British_Indian_Ocean_Territory',
-    'Brunei_Darussalam', 'Bulgaria', 'Burkina_Faso', 'Burundi',
-    'Cambodia', 'Cameroon', 'Canada', 'Cape_Verde', 'Cayman_Islands',
-    'Central_African_Republic', 'Chad', 'Chile', 'China',
-    'Christmas_Island', 'Cocos_(Keeling)_Islands', 'Colombia', 'Comoros',
-    'Congo', 'Congo, The_Democratic_Republic_Of_The', 'Cook_Islands',
-    'Costa_Rica', 'Cote_D\'ivoire', 'Croatia', 'Cuba', 'Cyprus',
-    'Czech_Republic', 'Denmark', 'Djibouti', 'Dominica',
-    'Dominican_Republic', 'Ecuador', 'Egypt', 'El_Salvador',
-    'Equatorial_Guinea', 'Eritrea', 'Estonia', 'Ethiopia',
-    'Falkland_Islands_(Malvinas)', 'Faroe_Islands', 'Fiji', 'Finland',
-    'France', 'French_Guiana', 'French_Polynesia',
-    'French_Southern_Territories', 'Gabon', 'Gambia', 'Georgia',
-    'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada',
-    'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea',
-    'Guinea-Bissau', 'Guyana', 'Haiti',
-    'Heard_Island_And_Mcdonald_Islands', 'Holy_See_(Vatican_City_State)',
-    'Honduras', 'Hong_Kong', 'Hungary', 'Iceland', 'India', 'Indonesia',
-    'Iran, Islamic_Republic_Of', 'Iraq', 'Ireland', 'Isle_Of_Man',
-    'Israel', 'Italy', 'Jamaica', 'Japan', 'Jersey', 'Jordan',
-    'Kazakhstan', 'Kenya', 'Kiribati',
-    'Korea, Democratic_People\'s_Republic_Of', 'Korea, Republic_Of', 'Kuwait',
-    'Kyrgyzstan', 'Lao_People\'s_Democratic_Republic', 'Latvia',
-    'Lebanon', 'Lesotho', 'Liberia', 'Libyan_Arab_Jamahiriya',
-    'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macao',
-    'Macedonia, The_Former_Yugoslav_Republic_Of', 'Madagascar', 'Malawi',
-    'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall_Islands',
-    'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico',
-    'Micronesia, Federated_States_Of', 'Moldova, Republic_Of', 'Monaco',
-    'Mongolia', 'Montenegro', 'Montserrat', 'Morocco', 'Mozambique',
-    'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands',
-    'Netherlands_Antilles', 'New_Caledonia', 'New_Zealand', 'Nicaragua',
-    'Niger', 'Nigeria', 'Niue', 'Norfolk_Island',
-    'Northern_Mariana_Islands', 'Norway', 'Oman', 'Pakistan', 'Palau',
-    'Palestinian_Territory, Occupied', 'Panama', 'Papua_New_Guinea',
-    'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal',
-    'Puerto_Rico', 'Qatar', 'Reunion', 'Romania', 'Russian_Federation',
-    'Rwanda', 'Saint_Helena', 'Saint_Kitts_And_Nevis', 'Saint_Lucia',
-    'Saint_Pierre_And_Miquelon', 'Saint_Vincent_And_The_Grenadines',
-    'Samoa', 'San_Marino', 'Sao_Tome_And_Principe', 'Saudi_Arabia',
-    'Senegal', 'Serbia', 'Seychelles', 'Sierra_Leone', 'Singapore',
-    'Slovakia', 'Slovenia', 'Solomon_Islands', 'Somalia', 'South_Africa',
-    'South_Georgia_And_The_South_Sandwich_Islands', 'Spain', 'Sri_Lanka',
-    'Sudan', 'Suriname', 'Svalbard_And_Jan_Mayen', 'Swaziland', 'Sweden',
-    'Switzerland', 'Syrian_Arab_Republic', 'Taiwan, Province_Of_China',
-    'Tajikistan', 'Tanzania, United_Republic_Of', 'Thailand', 'Timor-Leste',
-    'Togo', 'Tokelau', 'Tonga', 'Trinidad_And_Tobago', 'Tunisia', 'Turkey',
-    'Turkmenistan', 'Turks_And_Caicos_Islands', 'Tuvalu', 'Uganda', 'Ukraine',
-    'United_Arab_Emirates', 'United_Kingdom', 'United_States',
-    'United_States_Minor_Outlying_Islands', 'Uruguay', 'Uzbekistan', 'Vanuatu',
-    'Venezuela', 'Viet_Nam', 'Virgin_Islands, British', 'Virgin_Islands, U.S.',
-    'Wallis_And_Futuna', 'Western_Sahara', 'Yemen', 'Zambia', 'Zimbabwe'
-    ]
-  term = request.REQUEST.get('term').lower()
-  terms = [item for item in items if item.lower().startswith(term)]
-  return render_json(terms)

+ 25 - 3
apps/jframegallery/static/css/jframegallery.css

@@ -9,9 +9,10 @@
 }
 
 .jframe-gallery .jf-buttonbar {
-	position: relative;
-	top: 0px;
-	left: 70px;
+	position: absolute;
+	right: 20px;
+	top: 3px;
+	width: 85px;
 }
 
 .jframe-gallery .jf-src_view .tabSelected {
@@ -22,6 +23,27 @@
 	margin-bottom: 5px;
 }
 
+.jframe-gallery .index a {
+	background: url(/static/art/led-icons/folder.png) no-repeat 4px 2px;
+	padding: 3px 2px 3px 24px;
+	display: block;
+}
+
+.jframe-gallery .index li:hover {
+	background: #DED3A2;
+	border-radius: 2px;
+	-moz-border-radius: 2px;
+	-webkit-border-radius: 2px;
+}
+
+.jframe-gallery .file a {
+	background: url(/static/art/led-icons/tag.png) no-repeat 4px 2px;
+}
+.jframe-gallery .index a:hover {
+	text-decoration: none;
+}
+
+
 /*
  * Styles from Pygments
  */

+ 21 - 35
apps/jframegallery/static/js/Source/JFrameGallery/Hue.JFrameGallery.js

@@ -23,6 +23,10 @@ script: Hue.JFrameGallery.js
 ...
 */
 
+ART.Sheet.define('window.art.jframe-gallery', {
+	'footer-height': 28
+});
+
 Hue.JFrameGallery = new Class({
 
 	Extends: Hue.JBrowser,
@@ -37,7 +41,7 @@ Hue.JFrameGallery = new Class({
 	initialize: function(path, options){
 		this.parent(path || '/jframegallery/', options);
 
-		this.addEvent('load', function(){
+		this.addEvent('load', function(view){
 			this.toolbar.adopt(
 				new Element('a', {
 					href: '/jframegallery/',
@@ -46,49 +50,31 @@ Hue.JFrameGallery = new Class({
 			);
 
 			/* Inject demo/source button bar */
-			var path = this.jframe.currentPath;
-			var do_inject = false;
-			var demopath;
-			var sourcepath;
+			var currentPath = this.jframe.currentPath,
+			    path;
 
-			if (path.indexOf('/jframegallery/gallery') === 0) {
+			if (currentPath.indexOf('/jframegallery/gallery') === 0) {
 				/* This is the view of a demo */
-				demopath = path;
-				sourcepath = path.replace('/jframegallery/gallery', '/jframegallery/source');
-				do_inject = true;
-			} else if (path.indexOf('/jframegallery/source') === 0) {
+				path = currentPath.replace('/jframegallery/gallery', '/jframegallery/source');
+			} else if (currentPath.indexOf('/jframegallery/source') === 0) {
 				/* This is the view of a demo source */
-				demopath = path.replace('/jframegallery/source', '/jframegallery/gallery');
-				sourcepath = path;
-				do_inject = true;
+				path = currentPath.replace('/jframegallery/source', '/jframegallery/gallery');
 			}
 
-			if (do_inject) {
-				var buttonBar = new Element('ul', {
-					'class': 'jf-buttonbar',
-					'data-filters': 'ArtButtonBar'
-				});
-
-				var demoLink = new Element('a', {
-					href: demopath,
+			if (path) {
+				var button = new Element('a', {
+					href: path,
 					'class': 'jf-button',
 					'data-filters': 'ArtButton',
-					'text': "View Demo"
+					'text': view == "source" ? "View Demo" : "View Source"
 				});
-
-				var sourceLink = new Element('a', {
-					href: sourcepath,
-					'class': 'jf-button',
-					'data-filters': 'ArtButton',
-					'text': "View Source"
-				});
-
-				buttonBar.adopt(new Element('li').adopt(demoLink));
-				buttonBar.adopt(new Element('li').adopt(sourceLink));
-				this.toolbar.adopt(buttonBar);
-				this.jframe.behavior.apply(this.toolbar);
+				var buttonBar = new Element('ul', {
+					'class': 'jf-buttonbar',
+					'data-filters': 'ArtButtonBar'
+				}).adopt(new Element('li').adopt(button));
+				this.footerText.adopt(buttonBar);
+				this.jframe.behavior.apply(this.footerText);
 			}
-			sourcepath = "foo";
 		}.bind(this));
 	}
 

+ 15 - 0
desktop/core/ext-py/depender/src/depender/core.py

@@ -56,6 +56,7 @@ class DependerData(object):
       scripts_json = []
 
     self.packages = {}
+    self.package_aliases = {}
     self.unqualified_components = {}
 
     self.script_json_packages = []
@@ -71,6 +72,9 @@ class DependerData(object):
       if p.key in self.packages:
         raise Exception("Duplicate package: " + p.key)
       self.packages[p.key] = p
+      if hasattr(self.packages[p.key], 'aliases'):
+        for alias in self.packages[p.key].aliases:
+          self.package_aliases[alias] = p.key
       for component_name, file_data in p.components.iteritems():
         self.unqualified_components.setdefault(component_name, []).append(file_data)
 
@@ -123,6 +127,10 @@ class DependerData(object):
       for c, fd in sorted(package.components.iteritems()):
         out += "\t\t%s (%s)\n" % (c, fd.filename)
 
+    out += "\tAliases:\n"
+    for alias, package in sorted(self.package_aliases.items()):
+      out += "\t\t%s (%s)\n" % (alias, package)
+
     LOG.info(out)
 
     for p in self.packages.values():
@@ -140,6 +148,8 @@ class DependerData(object):
     Retrieves a FileData object given (package, component) pair.
     """
     pkg_key, component_key = id
+    if pkg_key in self.package_aliases:
+      pkg_key = self.package_aliases[pkg_key]
     if pkg_key not in self.packages:
       raise Exception("Package not found while looking for id: %s " % repr(id))
     p = self.packages[pkg_key]
@@ -318,6 +328,11 @@ class YamlPackageData(object):
     except:
       LOG.exception("Could not parse: " + package_filename)
       raise
+
+    self.aliases = []
+    if "aliases" in self.metadata:
+      self.aliases = self.metadata["aliases"]
+
     rootdir = os.path.dirname(package_filename)
     self.key = self.metadata["name"]
     for source_file in self.metadata["sources"]:

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません