noodall-ui 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (542) hide show
  1. data/.document +5 -0
  2. data/.gitignore +29 -0
  3. data/Gemfile +29 -0
  4. data/Gemfile.lock +205 -0
  5. data/LICENSE +20 -0
  6. data/README.rdoc +17 -0
  7. data/Rakefile +17 -0
  8. data/app/controllers/noodall/admin/assets_controller.rb +241 -0
  9. data/app/controllers/noodall/admin/base_controller.rb +8 -0
  10. data/app/controllers/noodall/admin/components_controller.rb +22 -0
  11. data/app/controllers/noodall/admin/groups_controller.rb +11 -0
  12. data/app/controllers/noodall/admin/nodes_controller.rb +159 -0
  13. data/app/controllers/noodall/nodes_controller.rb +41 -0
  14. data/app/helpers/noodall/admin/assets_helper.rb +15 -0
  15. data/app/helpers/noodall/admin/base_helper.rb +14 -0
  16. data/app/helpers/noodall/admin/nodes_helper.rb +37 -0
  17. data/app/helpers/noodall/components_helper.rb +38 -0
  18. data/app/helpers/noodall/layout_helper.rb +25 -0
  19. data/app/helpers/noodall/nodes_helper.rb +72 -0
  20. data/app/models/asset.rb +103 -0
  21. data/app/views/layouts/noodall_admin.html.erb +66 -0
  22. data/app/views/noodall/admin/assets/_browser.html.erb +28 -0
  23. data/app/views/noodall/admin/assets/_form.html.erb +54 -0
  24. data/app/views/noodall/admin/assets/_menu.html.erb +8 -0
  25. data/app/views/noodall/admin/assets/_show.html.erb +48 -0
  26. data/app/views/noodall/admin/assets/_tags.html.erb +13 -0
  27. data/app/views/noodall/admin/assets/add.html.erb +10 -0
  28. data/app/views/noodall/admin/assets/form.html.erb +12 -0
  29. data/app/views/noodall/admin/assets/form.js.erb +2 -0
  30. data/app/views/noodall/admin/assets/index.html.erb +65 -0
  31. data/app/views/noodall/admin/assets/index.js.erb +1 -0
  32. data/app/views/noodall/admin/assets/show.html.erb +3 -0
  33. data/app/views/noodall/admin/assets/show.js.erb +1 -0
  34. data/app/views/noodall/admin/assets/tags.html.erb +3 -0
  35. data/app/views/noodall/admin/assets/tags.js.erb +1 -0
  36. data/app/views/noodall/admin/components/_component.erb +0 -0
  37. data/app/views/noodall/admin/nodes/_body.html.erb +5 -0
  38. data/app/views/noodall/admin/nodes/_branch.html.erb +10 -0
  39. data/app/views/noodall/admin/nodes/_home.html.erb +27 -0
  40. data/app/views/noodall/admin/nodes/_slot_form.html.erb +16 -0
  41. data/app/views/noodall/admin/nodes/change_template.html.erb +38 -0
  42. data/app/views/noodall/admin/nodes/index.html.erb +69 -0
  43. data/app/views/noodall/admin/nodes/new.html.erb +30 -0
  44. data/app/views/noodall/admin/nodes/show.html.erb +144 -0
  45. data/app/views/noodall/admin/nodes/tree.html.erb +3 -0
  46. data/app/views/noodall/admin/nodes/tree.js.erb +2 -0
  47. data/app/views/noodall/components/_component.erb +0 -0
  48. data/app/views/noodall/nodes/search.html.erb +14 -0
  49. data/app/views/noodall/nodes/sitemap.html.erb +3 -0
  50. data/app/views/noodall/nodes/sitemap.xml.rxml +22 -0
  51. data/config/application.rb +29 -0
  52. data/config/boot.rb +13 -0
  53. data/config/cucumber.yml +8 -0
  54. data/config/database.yml +14 -0
  55. data/config/environment.rb +5 -0
  56. data/config/environments/development.rb +30 -0
  57. data/config/environments/production.rb +50 -0
  58. data/config/environments/test.rb +35 -0
  59. data/config/locales/en.yml +5 -0
  60. data/config.ru +4 -0
  61. data/demo/controllers/application_controller.rb +22 -0
  62. data/demo/initializers/dragonfly.rb +1 -0
  63. data/demo/initializers/mongo_mapper.rb +13 -0
  64. data/demo/initializers/noodall.rb +2 -0
  65. data/demo/initializers/secret_token.rb +7 -0
  66. data/demo/initializers/session_store.rb +8 -0
  67. data/demo/models/gallery.rb +17 -0
  68. data/demo/models/page_a.rb +9 -0
  69. data/demo/models/page_b.rb +4 -0
  70. data/demo/models/page_c.rb +7 -0
  71. data/demo/models/promo.rb +22 -0
  72. data/demo/models/user.rb +12 -0
  73. data/demo/routes.rb +3 -0
  74. data/demo/seeds.rb +8 -0
  75. data/demo/views/admin/components/_gallery.html.erb +49 -0
  76. data/demo/views/admin/components/_promo.html.erb +34 -0
  77. data/demo/views/admin/nodes/_page_a.html.erb +47 -0
  78. data/demo/views/admin/nodes/_page_b.html.erb +35 -0
  79. data/demo/views/admin/nodes/_page_c.html.erb +35 -0
  80. data/demo/views/components/_gallery.html.erb +23 -0
  81. data/demo/views/components/_promo.html.erb +5 -0
  82. data/demo/views/layouts/application.html.erb +121 -0
  83. data/demo/views/nodes/page_a.html.erb +14 -0
  84. data/demo/views/nodes/page_b.html.erb +9 -0
  85. data/demo/views/nodes/page_c.html.erb +12 -0
  86. data/features/change_templates.feature +25 -0
  87. data/features/content_templates.feature +18 -0
  88. data/features/gallery_component.feature +22 -0
  89. data/features/manage_assets.feature +28 -0
  90. data/features/manage_content_tree.feature +42 -0
  91. data/features/preview.feature +8 -0
  92. data/features/promo_component.feature +18 -0
  93. data/features/publish_content.feature +28 -0
  94. data/features/search.feature +12 -0
  95. data/features/sitemap.feature +9 -0
  96. data/features/step_definitions/asset_steps.rb +66 -0
  97. data/features/step_definitions/cms_node_steps.rb +126 -0
  98. data/features/step_definitions/component_steps.rb +137 -0
  99. data/features/step_definitions/content_steps.rb +187 -0
  100. data/features/step_definitions/date_select_steps.rb +39 -0
  101. data/features/step_definitions/groups_access_steps.rb +92 -0
  102. data/features/step_definitions/node_steps.rb +25 -0
  103. data/features/step_definitions/preview_steps.rb +7 -0
  104. data/features/step_definitions/pubish_content_steps.rb +45 -0
  105. data/features/step_definitions/search_steps.rb +21 -0
  106. data/features/step_definitions/sign_in_steps.rb +3 -0
  107. data/features/step_definitions/web_steps.rb +219 -0
  108. data/features/support/env.rb +52 -0
  109. data/features/support/logo.png +0 -0
  110. data/features/support/paths.rb +56 -0
  111. data/generators/component/USAGE +8 -0
  112. data/generators/component/component_generator.rb +35 -0
  113. data/generators/component/lib/insert_commands.rb +61 -0
  114. data/generators/component/templates/admin_template.html.erb +50 -0
  115. data/generators/component/templates/factory.rb +5 -0
  116. data/generators/component/templates/model.rb +8 -0
  117. data/generators/component/templates/template.html.erb +41 -0
  118. data/generators/node/USAGE +8 -0
  119. data/generators/node/lib/insert_commands.rb +47 -0
  120. data/generators/node/node_generator.rb +35 -0
  121. data/generators/node/templates/admin_template.html.erb +49 -0
  122. data/generators/node/templates/factory.rb +5 -0
  123. data/generators/node/templates/model.rb +11 -0
  124. data/generators/node/templates/template.html.erb +41 -0
  125. data/generators/node_features/USAGE +8 -0
  126. data/generators/node_features/node_features_generator.rb +16 -0
  127. data/lib/generators/noodall/node/USAGE +8 -0
  128. data/lib/generators/noodall/node/node_generator.rb +21 -0
  129. data/lib/generators/noodall/node/templates/admin_template.html.erb +52 -0
  130. data/lib/generators/noodall/node/templates/factory.rb +8 -0
  131. data/lib/generators/noodall/node/templates/model.rb +13 -0
  132. data/lib/generators/noodall/node/templates/template.html.erb +12 -0
  133. data/lib/noodall/canable.rb +1 -0
  134. data/lib/noodall/dragonfly.rb +23 -0
  135. data/lib/noodall/engine.rb +13 -0
  136. data/lib/noodall/permalinks.rb +12 -0
  137. data/lib/noodall/routes.rb +45 -0
  138. data/lib/noodall/ui/version.rb +5 -0
  139. data/lib/noodall/ui.rb +17 -0
  140. data/lib/noodall/video_thumbnail_encoder.rb +31 -0
  141. data/lib/noodall-ui.rb +6 -0
  142. data/lib/tasks/cucumber.rake +53 -0
  143. data/log/.gitignore +0 -0
  144. data/noodall-ui.gemspec +28 -0
  145. data/public/favicon.ico +0 -0
  146. data/public/images/admin/add-small.png +0 -0
  147. data/public/images/admin/add.png +0 -0
  148. data/public/images/admin/add_file.gif +0 -0
  149. data/public/images/admin/advanced.gif +0 -0
  150. data/public/images/admin/back.png +0 -0
  151. data/public/images/admin/cancel-small.gif +0 -0
  152. data/public/images/admin/cancel.gif +0 -0
  153. data/public/images/admin/change-bg.gif +0 -0
  154. data/public/images/admin/change.gif +0 -0
  155. data/public/images/admin/check.png +0 -0
  156. data/public/images/admin/clear.gif +0 -0
  157. data/public/images/admin/close.png +0 -0
  158. data/public/images/admin/create.gif +0 -0
  159. data/public/images/admin/delete.gif +0 -0
  160. data/public/images/admin/delete.png +0 -0
  161. data/public/images/admin/doc-icon.png +0 -0
  162. data/public/images/admin/document.png +0 -0
  163. data/public/images/admin/down.png +0 -0
  164. data/public/images/admin/download.png +0 -0
  165. data/public/images/admin/draft.gif +0 -0
  166. data/public/images/admin/draft.png +0 -0
  167. data/public/images/admin/edit.gif +0 -0
  168. data/public/images/admin/edit.png +0 -0
  169. data/public/images/admin/image.png +0 -0
  170. data/public/images/admin/image_small.png +0 -0
  171. data/public/images/admin/info-white.png +0 -0
  172. data/public/images/admin/info.png +0 -0
  173. data/public/images/admin/media.gif +0 -0
  174. data/public/images/admin/nav-2.gif +0 -0
  175. data/public/images/admin/nav.gif +0 -0
  176. data/public/images/admin/next.png +0 -0
  177. data/public/images/admin/no-type-icon.png +0 -0
  178. data/public/images/admin/pagination.gif +0 -0
  179. data/public/images/admin/pdf-icon.png +0 -0
  180. data/public/images/admin/prev.png +0 -0
  181. data/public/images/admin/preview.gif +0 -0
  182. data/public/images/admin/publish.gif +0 -0
  183. data/public/images/admin/remove.gif +0 -0
  184. data/public/images/admin/reset.gif +0 -0
  185. data/public/images/admin/select_image.gif +0 -0
  186. data/public/images/admin/select_images.gif +0 -0
  187. data/public/images/admin/set.gif +0 -0
  188. data/public/images/admin/sort.png +0 -0
  189. data/public/images/admin/tag.png +0 -0
  190. data/public/images/admin/templates/article-page.gif +0 -0
  191. data/public/images/admin/templates/articles-list.gif +0 -0
  192. data/public/images/admin/templates/course-page.gif +0 -0
  193. data/public/images/admin/templates/event-page.gif +0 -0
  194. data/public/images/admin/templates/events-list.gif +0 -0
  195. data/public/images/admin/templates/home.gif +0 -0
  196. data/public/images/admin/templates/landing-page.gif +0 -0
  197. data/public/images/admin/templates/page-a.gif +0 -0
  198. data/public/images/admin/templates/page-b.gif +0 -0
  199. data/public/images/admin/templates/school-landing-page.gif +0 -0
  200. data/public/images/admin/templates/study-landing-page.gif +0 -0
  201. data/public/images/admin/top-level.png +0 -0
  202. data/public/images/admin/top-level_small.png +0 -0
  203. data/public/images/admin/txt-icon.png +0 -0
  204. data/public/images/admin/uncheck.png +0 -0
  205. data/public/images/admin/up.png +0 -0
  206. data/public/images/admin/update.gif +0 -0
  207. data/public/images/admin/upload.png +0 -0
  208. data/public/images/admin/video.png +0 -0
  209. data/public/images/admin/view.png +0 -0
  210. data/public/images/admin/xls-icon.png +0 -0
  211. data/public/images/fancybox/blank.gif +0 -0
  212. data/public/images/fancybox/fancy_close.png +0 -0
  213. data/public/images/fancybox/fancy_loading.png +0 -0
  214. data/public/images/fancybox/fancy_nav_left.png +0 -0
  215. data/public/images/fancybox/fancy_nav_right.png +0 -0
  216. data/public/images/fancybox/fancy_shadow_e.png +0 -0
  217. data/public/images/fancybox/fancy_shadow_n.png +0 -0
  218. data/public/images/fancybox/fancy_shadow_ne.png +0 -0
  219. data/public/images/fancybox/fancy_shadow_nw.png +0 -0
  220. data/public/images/fancybox/fancy_shadow_s.png +0 -0
  221. data/public/images/fancybox/fancy_shadow_se.png +0 -0
  222. data/public/images/fancybox/fancy_shadow_sw.png +0 -0
  223. data/public/images/fancybox/fancy_shadow_w.png +0 -0
  224. data/public/images/fancybox/fancy_title_left.png +0 -0
  225. data/public/images/fancybox/fancy_title_main.png +0 -0
  226. data/public/images/fancybox/fancy_title_over.png +0 -0
  227. data/public/images/fancybox/fancy_title_right.png +0 -0
  228. data/public/images/fancybox/fancybox-x.png +0 -0
  229. data/public/images/fancybox/fancybox-y.png +0 -0
  230. data/public/images/fancybox/fancybox.png +0 -0
  231. data/public/images/plupload/backgrounds.gif +0 -0
  232. data/public/images/plupload/buttons-disabled.png +0 -0
  233. data/public/images/plupload/buttons.png +0 -0
  234. data/public/images/plupload/delete.gif +0 -0
  235. data/public/images/plupload/done.gif +0 -0
  236. data/public/images/plupload/error.gif +0 -0
  237. data/public/images/plupload/throbber.gif +0 -0
  238. data/public/images/plupload/transp50.png +0 -0
  239. data/public/javascripts/admin/application.js +586 -0
  240. data/public/javascripts/admin/asset_edit.js +30 -0
  241. data/public/javascripts/admin/assets.js +98 -0
  242. data/public/javascripts/admin/gotham.font.js +20 -0
  243. data/public/javascripts/admin/jquery.jqtransform.js +366 -0
  244. data/public/javascripts/admin/nodes.js +30 -0
  245. data/public/javascripts/admin/tiny_mce_config.js +118 -0
  246. data/public/javascripts/ajaxify.js +20 -0
  247. data/public/javascripts/application.js +37 -0
  248. data/public/javascripts/carousel.lite.js +1 -0
  249. data/public/javascripts/cufon-yui.js +8 -0
  250. data/public/javascripts/fancybox.js +1078 -0
  251. data/public/javascripts/plupload/gears_init.js +86 -0
  252. data/public/javascripts/plupload/jquery.plupload.queue.min.js +1 -0
  253. data/public/javascripts/plupload/plupload.flash.swf +0 -0
  254. data/public/javascripts/plupload/plupload.full.min.js +1 -0
  255. data/public/javascripts/plupload/plupload.silverlight.xap +0 -0
  256. data/public/javascripts/rails.js +132 -0
  257. data/public/javascripts/tiny_mce/jquery.tinymce.js +1 -0
  258. data/public/javascripts/tiny_mce/langs/en.js +169 -0
  259. data/public/javascripts/tiny_mce/license.txt +504 -0
  260. data/public/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  261. data/public/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  262. data/public/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  263. data/public/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  264. data/public/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  265. data/public/javascripts/tiny_mce/plugins/advhr/rule.htm +57 -0
  266. data/public/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  267. data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  268. data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  269. data/public/javascripts/tiny_mce/plugins/advimage/image.htm +232 -0
  270. data/public/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  271. data/public/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
  272. data/public/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  273. data/public/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  274. data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  275. data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  276. data/public/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  277. data/public/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  278. data/public/javascripts/tiny_mce/plugins/advlink/link.htm +333 -0
  279. data/public/javascripts/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  280. data/public/javascripts/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
  281. data/public/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  282. data/public/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +117 -0
  283. data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  284. data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +422 -0
  285. data/public/javascripts/tiny_mce/plugins/autosave/langs/en.js +4 -0
  286. data/public/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  287. data/public/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  288. data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  289. data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +127 -0
  290. data/public/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  291. data/public/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  292. data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  293. data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  294. data/public/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
  295. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  296. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  297. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  298. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  299. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  300. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  301. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  302. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  303. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  304. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  305. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  306. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  307. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  308. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  309. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  310. data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  311. data/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  312. data/public/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  313. data/public/javascripts/tiny_mce/plugins/example/dialog.htm +22 -0
  314. data/public/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  315. data/public/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  316. data/public/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  317. data/public/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  318. data/public/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  319. data/public/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  320. data/public/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  321. data/public/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  322. data/public/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +149 -0
  323. data/public/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
  324. data/public/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +471 -0
  325. data/public/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  326. data/public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  327. data/public/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +148 -0
  328. data/public/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  329. data/public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  330. data/public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  331. data/public/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  332. data/public/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +635 -0
  333. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  334. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  335. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  336. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  337. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  338. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  339. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  340. data/public/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  341. data/public/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  342. data/public/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  343. data/public/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  344. data/public/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  345. data/public/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +212 -0
  346. data/public/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  347. data/public/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +136 -0
  348. data/public/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  349. data/public/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  350. data/public/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  351. data/public/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +414 -0
  352. data/public/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  353. data/public/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  354. data/public/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  355. data/public/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  356. data/public/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  357. data/public/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  358. data/public/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  359. data/public/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  360. data/public/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  361. data/public/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  362. data/public/javascripts/tiny_mce/plugins/media/media.htm +817 -0
  363. data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  364. data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  365. data/public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  366. data/public/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
  367. data/public/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  368. data/public/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  369. data/public/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +77 -0
  370. data/public/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  371. data/public/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  372. data/public/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  373. data/public/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +929 -0
  374. data/public/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  375. data/public/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  376. data/public/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  377. data/public/javascripts/tiny_mce/plugins/paste/pastetext.htm +27 -0
  378. data/public/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -0
  379. data/public/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  380. data/public/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  381. data/public/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  382. data/public/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  383. data/public/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  384. data/public/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  385. data/public/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  386. data/public/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  387. data/public/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  388. data/public/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  389. data/public/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  390. data/public/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +57 -0
  391. data/public/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +130 -0
  392. data/public/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  393. data/public/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +99 -0
  394. data/public/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  395. data/public/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  396. data/public/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +341 -0
  397. data/public/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  398. data/public/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  399. data/public/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  400. data/public/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  401. data/public/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  402. data/public/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  403. data/public/javascripts/tiny_mce/plugins/style/props.htm +726 -0
  404. data/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  405. data/public/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +112 -0
  406. data/public/javascripts/tiny_mce/plugins/table/cell.htm +178 -0
  407. data/public/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  408. data/public/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  409. data/public/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  410. data/public/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  411. data/public/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1118 -0
  412. data/public/javascripts/tiny_mce/plugins/table/js/cell.js +286 -0
  413. data/public/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  414. data/public/javascripts/tiny_mce/plugins/table/js/row.js +237 -0
  415. data/public/javascripts/tiny_mce/plugins/table/js/table.js +449 -0
  416. data/public/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  417. data/public/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -0
  418. data/public/javascripts/tiny_mce/plugins/table/row.htm +155 -0
  419. data/public/javascripts/tiny_mce/plugins/table/table.htm +187 -0
  420. data/public/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  421. data/public/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  422. data/public/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  423. data/public/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  424. data/public/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  425. data/public/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  426. data/public/javascripts/tiny_mce/plugins/template/template.htm +32 -0
  427. data/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  428. data/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +76 -0
  429. data/public/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  430. data/public/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +98 -0
  431. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +141 -0
  432. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +141 -0
  433. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +148 -0
  434. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +141 -0
  435. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  436. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  437. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +161 -0
  438. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  439. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +144 -0
  440. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +161 -0
  441. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  442. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  443. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +126 -0
  444. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  445. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +63 -0
  446. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  447. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +62 -0
  448. data/public/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  449. data/public/javascripts/tiny_mce/themes/advanced/about.htm +54 -0
  450. data/public/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -0
  451. data/public/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  452. data/public/javascripts/tiny_mce/themes/advanced/color_picker.htm +73 -0
  453. data/public/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  454. data/public/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1167 -0
  455. data/public/javascripts/tiny_mce/themes/advanced/image.htm +80 -0
  456. data/public/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  457. data/public/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  458. data/public/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
  459. data/public/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  460. data/public/javascripts/tiny_mce/themes/advanced/js/charmap.js +335 -0
  461. data/public/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  462. data/public/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
  463. data/public/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  464. data/public/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  465. data/public/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
  466. data/public/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  467. data/public/javascripts/tiny_mce/themes/advanced/link.htm +58 -0
  468. data/public/javascripts/tiny_mce/themes/advanced/skins/default/content.css +35 -0
  469. data/public/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  470. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  471. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  472. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  473. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  474. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  475. data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  476. data/public/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
  477. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +35 -0
  478. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
  479. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  480. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  481. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  482. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  483. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  484. data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  485. data/public/javascripts/tiny_mce/themes/advanced/source_editor.htm +26 -0
  486. data/public/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  487. data/public/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  488. data/public/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  489. data/public/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  490. data/public/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  491. data/public/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  492. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  493. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  494. data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  495. data/public/javascripts/tiny_mce/tiny_mce.js +1 -0
  496. data/public/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  497. data/public/javascripts/tiny_mce/tiny_mce_src.js +13134 -0
  498. data/public/javascripts/tiny_mce/utils/editable_selects.js +70 -0
  499. data/public/javascripts/tiny_mce/utils/form_utils.js +200 -0
  500. data/public/javascripts/tiny_mce/utils/mctabs.js +77 -0
  501. data/public/javascripts/tiny_mce/utils/validate.js +220 -0
  502. data/public/stylesheets/admin/fancybox.css +341 -0
  503. data/public/stylesheets/admin/forms.css +520 -0
  504. data/public/stylesheets/admin/handheld.css +6 -0
  505. data/public/stylesheets/admin/ie.css +118 -0
  506. data/public/stylesheets/admin/ie6.css +23 -0
  507. data/public/stylesheets/admin/ie8.css +16 -0
  508. data/public/stylesheets/admin/layout.css +723 -0
  509. data/public/stylesheets/admin/print.css +27 -0
  510. data/public/stylesheets/admin/reset.css +81 -0
  511. data/public/stylesheets/admin/skin.css +698 -0
  512. data/public/stylesheets/admin/tinymce.css +2 -0
  513. data/public/stylesheets/admin/typography.css +207 -0
  514. data/public/stylesheets/ellipsis.xml +15 -0
  515. data/public/stylesheets/fancybox.css +313 -0
  516. data/public/stylesheets/forms.css +7 -0
  517. data/public/stylesheets/ie.css +12 -0
  518. data/public/stylesheets/ie8.css +8 -0
  519. data/public/stylesheets/layout.css +31 -0
  520. data/public/stylesheets/plupload.queue.css +181 -0
  521. data/public/stylesheets/reset.css +84 -0
  522. data/public/stylesheets/sass/forms.scss +7 -0
  523. data/public/stylesheets/sass/ie.scss +12 -0
  524. data/public/stylesheets/sass/ie8.scss +8 -0
  525. data/public/stylesheets/sass/layout.scss +45 -0
  526. data/public/stylesheets/sass/skin.scss +35 -0
  527. data/public/stylesheets/sass/typography.scss +162 -0
  528. data/public/stylesheets/skin.css +22 -0
  529. data/public/stylesheets/typography.css +162 -0
  530. data/script/cucumber +10 -0
  531. data/script/rails +6 -0
  532. data/spec/factories/asset.rb +16 -0
  533. data/spec/factories/component.rb +9 -0
  534. data/spec/factories/node.rb +15 -0
  535. data/spec/factories/user.rb +5 -0
  536. data/spec/files/beef.png +0 -0
  537. data/spec/files/get_video.flv +0 -0
  538. data/spec/files/test.pdf +0 -0
  539. data/spec/noodall-ui_spec.rb +9 -0
  540. data/spec/spec_helper.rb +4 -0
  541. data/tmp/.gitignore +0 -0
  542. metadata +685 -0
@@ -0,0 +1,48 @@
1
+ <%= render 'menu' %>
2
+
3
+ <div id="show-assets">
4
+
5
+ <div id="image">
6
+ <% if @asset.image? or @asset.video? %>
7
+ <%= link_to(image_tag( @asset.url('500x400', :jpg), :alt => @asset.description, :id => "asset-#{@asset.id}" ), @asset.url, :class => ('lightboxVideo' if @asset.video?)) %>
8
+ <% else -%>
9
+ <%= link_to( asset_icon(@asset) ) %>
10
+ <% end -%>
11
+ </div>
12
+
13
+ <div id="info">
14
+ <h2><%=h @asset.title %></h2>
15
+ <p><strong>File Size:</strong> <%= number_to_human_size( @asset.file_size ) %></p>
16
+ <p><strong>Description:</strong> <%= @asset.description %></p>
17
+ <% unless readonly %>
18
+ <p><%= link_to "Edit '#{@asset.title}'", edit_noodall_admin_asset_path(@asset), :title => "Edit '#{@asset.title}'" , :class => 'edit' %></p>
19
+ <% end %>
20
+
21
+ <h2>Used <%= @asset.log_entries.count %> times</h2>
22
+ <ul id="asset-usage">
23
+ <% for entry in @asset.log_entries %>
24
+ <% unless entry.node.nil? %>
25
+ <li><%= link_to entry.node.title, noodall_admin_node_path(entry.node) %> - <%= entry.location %></li>
26
+ <% end -%>
27
+ <% end -%>
28
+ </ul>
29
+
30
+ </div>
31
+
32
+ <% if @asset.tags? %>
33
+ <div id="tags">
34
+ <h2>'<%= @asset.title %>' Tags</h2>
35
+ <ul>
36
+ <% for tag in @asset.tags %>
37
+ <li><%= link_to "#{h( tag )}", :tag => tag %></li>
38
+ <% end -%>
39
+ </ul>
40
+ </div>
41
+ <% elsif !readonly -%>
42
+ <div id="no-tags">
43
+ <h2>'<%= @asset.title %>' Tags</h2>
44
+ <p>This asset has no tags, <%= link_to 'click here', edit_noodall_admin_asset_path(@asset), :title => 'Edit Tags' %> to add them.</p>
45
+ </div>
46
+ <% end -%>
47
+
48
+ </div>
@@ -0,0 +1,13 @@
1
+ <%= render 'menu' %>
2
+ <div id="all-tags">
3
+ <% @tag_groups.each do |letter, tags| %>
4
+ <div class="tags">
5
+ <h2><%= letter.upcase %></h2>
6
+ <ul>
7
+ <% for tag in tags %>
8
+ <li><%= link_to "#{h( tag.name )} (#{tag.count})", :action => params[:asset_type], :tag => tag.name %></li>
9
+ <% end -%>
10
+ </ul>
11
+ </div>
12
+ <% end -%>
13
+ </div>
@@ -0,0 +1,10 @@
1
+ <% if @asset.image? %>
2
+ <%= link_to image_tag( @asset.url('100x100#', :jpg), :alt => @asset.description, :id => "asset-#{@asset.id}" ), @asset.url('800x600', :jpg), :class => 'lightbox', :title => @asset.title %>
3
+ <% elsif @asset.video? %>
4
+ <div class="video">
5
+ <%= link_to image_tag( @asset.url('220x125#', :jpg), :alt => @asset.description, :id => "asset-#{@asset.id}" ), @asset.url, :class => 'lightboxVideo', :title => @asset.title %>
6
+ <strong><%= @asset.title %></strong>
7
+ </div>
8
+ <% else -%>
9
+ <%= link_to( @asset.title, @asset.url, :title => @asset.description, :id => "asset-#{@asset.id}" ) %>
10
+ <% end -%>
@@ -0,0 +1,12 @@
1
+ <% content_for :header, javascript_include_tag('admin/assets') if @asset.new_record? %>
2
+ <% content_for :header, javascript_include_tag( 'admin/asset_edit' ) unless @asset.new_record? %>
3
+
4
+
5
+ <h1><%= @asset.new_record? ? 'New' : 'Editing' %> Asset</h1>
6
+
7
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
8
+
9
+ <%= render 'form' %>
10
+
11
+ <%= javascript_tag('setUpPlupload()') if @asset.new_record? %>
12
+
@@ -0,0 +1,2 @@
1
+ $('#asset-browser').html( "<%= escape_javascript(render 'form') %>" )
2
+ <%= "setUpPlupload();" if @asset.new_record? %>
@@ -0,0 +1,65 @@
1
+ <h1><%= admin_page_title %></h1>
2
+
3
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
4
+ <%= render 'menu' %>
5
+ <%= will_paginate(@assets, :previous_label => 'Previous', :next_label => 'Next') %>
6
+ <div id="content-table">
7
+ <table border="0" cellspacing="0" cellpadding="0" class="content">
8
+ <thead>
9
+ <tr>
10
+ <%= sortable_table_header :name => "Title", :sort => "title", :class => 'sort' %>
11
+ <th width="140">File</th>
12
+ <%= sortable_table_header :name => "Created", :sort => "created_at", :class => 'sort' %>
13
+ <%= sortable_table_header :name => "Updated", :sort => "updated_at", :class => 'sort' %>
14
+ <th width="50">Delete</th>
15
+ </tr>
16
+ </thead>
17
+ <tbody>
18
+ <% @assets.each do |asset| %>
19
+ <tr id="asset-<%= asset.id %>" class="<%=cycle('odd', 'even')%>">
20
+ <td><%= link_to h( asset.title ), edit_noodall_admin_asset_path(asset), :class => 'edit', :title => 'Edit this asset' %></td>
21
+ <td class="file">
22
+ <%= (asset.image? or asset.video?) ? image_tag( asset.url('70x70', :jpg), :alt => "#{truncate(asset.file.name, :length => 80)}") : link_to( asset_icon(asset) ) %>
23
+ <%= link_to 'Show', noodall_admin_asset_path(asset), :class => 'show', :title => 'View this asset' %>
24
+ </td>
25
+ <td><%=h asset.created_at.to_formatted_s(:short_ordinal) %></td>
26
+ <td><%=h asset.updated_at.to_formatted_s(:short_ordinal) %></td>
27
+ <td class="button"><%= link_to 'Delete', noodall_admin_asset_path(asset), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this asset' %></td>
28
+ </tr>
29
+ <% end %>
30
+ </tbody>
31
+ <tfoot>
32
+ <tr>
33
+ <%= sortable_table_header :name => "Title", :sort => "title", :class => 'sort' %>
34
+ <th width="140">File</th>
35
+ <%= sortable_table_header :name => "Created", :sort => "created_at", :class => 'sort' %>
36
+ <%= sortable_table_header :name => "Updated", :sort => "updated_at", :class => 'sort' %>
37
+ <th width="50">Delete</th>
38
+ </tr>
39
+ </tfoot>
40
+ </table>
41
+
42
+ <ul id="per-page-select">
43
+ <% for quant in [10, 20, 50, 100] %>
44
+ <li<%= (quant == 10 ? ' class="first"' : '') %>><%= link_to quant, params.merge(:limit => quant) %></li>
45
+ <% end %>
46
+ </ul>
47
+
48
+ </div>
49
+ <% if pending_count > 0%>
50
+ <div id="pending" class="error">
51
+ <p><%= pluralize( pending_count, "asset" ) %> awaiting information.</p>
52
+ <p><%= link_to "Click here", pending_noodall_admin_assets_path %> to be taken through each asset and enter the information.</p>
53
+ </div>
54
+ <% end -%>
55
+
56
+ <div id="tags">
57
+ <h2>Tags</h2>
58
+ <ul>
59
+ <% for tag in @tags %>
60
+ <li><%= link_to "#{h( tag.name )} (#{tag.count})", :tag => tag.name %></li>
61
+ <% end -%>
62
+ </ul>
63
+ <%= link_to 'All Tags', noodall_admin_asset_tags_path(controller.action_name) %>
64
+ </div>
65
+ <%= will_paginate(@assets, :previous_label => 'Previous', :next_label => 'Next') %>
@@ -0,0 +1 @@
1
+ $('#asset-browser').html( "<%= escape_javascript(render('browser')) %>" )
@@ -0,0 +1,3 @@
1
+ <h1>Viewing Asset</h1>
2
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
3
+ <%= render 'show' %>
@@ -0,0 +1 @@
1
+ $('#asset-browser').html( "<%= escape_javascript(render 'show') %>" )
@@ -0,0 +1,3 @@
1
+ <h1><%= page_title %></h1>
2
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
3
+ <%= render 'tags' %>
@@ -0,0 +1 @@
1
+ $('#asset-browser').html( "<%= escape_javascript(%{<h2 class="title">#{page_title}</h2> #{render( 'tags' )}}) %>" )
File without changes
@@ -0,0 +1,5 @@
1
+ <p class="tinymce">
2
+ <span class="tooltip" title="Enter content for this page">&nbsp;</span>
3
+ <%= f.label :body, "Body" %><br/>
4
+ <span class="textarea-wrap"><%= f.text_area :body, :class => 'editor' %></span>
5
+ </p>
@@ -0,0 +1,10 @@
1
+ <ol class="tree">
2
+ <% for node in nodes %>
3
+ <li><%= link_to h( node.title), node_path(node), :id => "id-#{node.id}" %>
4
+ <% unless (children = node.children(options)).empty? -%>
5
+ <span class="expand">+</span>
6
+ <%= render :partial => 'branch', :locals => { :nodes => children, :options => options } %>
7
+ <% end -%>
8
+ </li>
9
+ <% end -%>
10
+ </ol>
@@ -0,0 +1,27 @@
1
+ <%= render :partial => 'body', :locals => { :f => f } %>
2
+
3
+ <% content_for :component_table do %>
4
+ <table class="component-table">
5
+ <tr>
6
+ <td colspan="3"><a href="#main_component_form_0" class="slot_link">1</a></td>
7
+ <td/>
8
+ </tr>
9
+ <tr>
10
+ <td class="content" colspan="2"></td>
11
+ <td><a href="#small_component_form_0" class="slot_link">2</a></td>
12
+ <td><a href="#small_component_form_1" class="slot_link">3</a></td>
13
+ </tr>
14
+ <tr>
15
+ <td><a href="#small_component_form_2" class="slot_link">4</a></td>
16
+ <td><a href="#small_component_form_3" class="slot_link">5</a></td>
17
+ <td><a href="#small_component_form_4" class="slot_link">6</a></td>
18
+ <td><a href="#small_component_form_5" class="slot_link">7</a></td>
19
+ </tr>
20
+ <tr>
21
+ <td><a href="#small_component_form_6" class="slot_link">8</a></td>
22
+ <td><a href="#small_component_form_7" class="slot_link">9</a></td>
23
+ <td><a href="#small_component_form_8" class="slot_link">10</a></td>
24
+ <td><a href="#small_component_form_9" class="slot_link">11</a></td>
25
+ </tr>
26
+ </table>
27
+ <% end -%>
@@ -0,0 +1,16 @@
1
+ <div class="component_form_wrap">
2
+ <div id="<%= type %>_component_form_<%= index %>" class="component_form <%= type %>-slot">
3
+ <p class="select_component">
4
+ <%= label_tag "#{ slot_name }_type", "Select the type of component." %>
5
+ <span class="input-wrap"><%= select_tag "#{ slot_name }_type", options, :class => 'component-selector' %></span>
6
+ </p>
7
+ <div id="<%= type %>_component_form_<%= index %>_detail" class="component_form_detail">
8
+ <%= render :partial => "admin/components/#{ component.class.name.underscore.downcase }", :locals => {:component => component, :slot_name => slot_name } unless component.nil? %>
9
+ </div>
10
+ <div class="component_buttons">
11
+ <button class="button form-save" href="#" title="Set this information and close.">Save</button>
12
+ <span class="button form-delete" href="#" title="Remove information and close.">Delete</span>
13
+ <span class="button form-reset" href="#" title="Reset information to last saved state">Cancel</span>
14
+ </div>
15
+ </div>
16
+ </div>
@@ -0,0 +1,38 @@
1
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
2
+
3
+ <h1>Change Template</h1>
4
+
5
+ <%= form_for(@node, :as => :node, :url => noodall_admin_node_path(@node), :html => {:method => :put, :id => "node-form"}) do |f| %>
6
+ <%= f.error_messages %>
7
+
8
+ <div id="main-form">
9
+
10
+ <p>Changing a page's template removes all information like modules that will not fit in the new page template.</p>
11
+ <p><strong>This change cannot be undone!</strong></p>
12
+
13
+ <fieldset class="template">
14
+ <legend>Select a template *</legend>
15
+ <% for template_name in @template_names.reject{|t| t == @node.class.name.titleize } -%>
16
+ <label>
17
+ <%= template_name %> <%= f.radio_button :template, template_name %><br/>
18
+ <%= image_tag "admin/templates/#{template_name.parameterize}.gif", :title => template_name %>
19
+ </label><br/>
20
+ <% end -%>
21
+ </fieldset>
22
+
23
+
24
+ <div id="templates">
25
+ <span id="current-label">Current</span>
26
+ <span id="new-label">New</span><br /><br />
27
+ <%= image_tag "admin/templates/#{@node.template.parameterize}.gif", :title => @node.template %>
28
+ </div>
29
+ </div>
30
+
31
+ <div class="fixed-form">
32
+ <div id="buttons">
33
+ <%= f.submit 'Change', :class => 'change', :name => 'commit' %>
34
+ <%= link_to 'Cancel', noodall_admin_node_path(@node), :class => 'cancel' %>
35
+ </div>
36
+ </div>
37
+
38
+ <% end %>
@@ -0,0 +1,69 @@
1
+ <h1><%= @parent.nil? ? 'Content Tree' : "Content under '#{@parent.title}'" %></h1>
2
+
3
+ <ul class="choices">
4
+
5
+ <% if !@parent.nil? -%>
6
+ <li><%= link_to 'New', new_noodall_admin_node_node_path(@parent), :class => 'button', :title => "Add content under #{@parent.title}" %></li>
7
+ <% else %>
8
+ <li><%= link_to 'New', new_noodall_admin_node_path, :class => 'button', :title => "Add new" %></li>
9
+ <% end -%>
10
+
11
+ <% if !@parent.nil? and @parent.parent.nil? %>
12
+ <li><%= link_to "Top Level", noodall_admin_nodes_path, :class => "top button" %></li>
13
+ <% elsif !@parent.nil? %>
14
+ <li><%= link_to "Up to #{@parent.parent.title}", noodall_admin_node_nodes_path(@parent.parent), :class => "up button" %></li>
15
+ <% end %>
16
+
17
+
18
+ </ul>
19
+
20
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
21
+
22
+ <div id="content-table">
23
+ <table border="0" cellspacing="0" cellpadding="0" class="content">
24
+ <thead>
25
+ <tr>
26
+ <th>Title</th>
27
+ <th>Type</th>
28
+ <th colspan="2">Arrange</th>
29
+ <th width="120">Sub Section</th>
30
+ <th>Updated</th>
31
+ <th width="45">Show</th>
32
+ <th width="45">Published</th>
33
+ <th width="45">Delete</th>
34
+ </tr>
35
+ </thead>
36
+ <tbody>
37
+ <% @nodes.each do |node| %>
38
+ <tr id="node-<%= node.id %>" class="<%=cycle('odd', 'even')%>">
39
+ <td class="edit"><%= link_to h(node.title), noodall_admin_node_path(node), :class => 'edit', :title => "Edit #{node.title}" %></td>
40
+ <td><%= node.class.name.titleize %></td>
41
+ <td width="25"><%= link_to 'up', move_up_noodall_admin_node_path(node), { :class => "page_up", :title => 'Move this content higher in the navigation' } unless node.first? %></td>
42
+ <td width="30" class="down"><%= link_to 'down', move_down_noodall_admin_node_path(node), { :class => 'page_down', :title => 'Move this content lower in the navigation' } unless node.last? %></td>
43
+ <td class="child">
44
+ <% unless node.class.template_classes.blank? -%>
45
+ <%= link_to pluralize(node.children.size, "Child"), noodall_admin_node_nodes_path(node), :title => "View content under #{h(node.title)}", :class => 'child-no' %>
46
+ <%= link_to 'Add', new_noodall_admin_node_node_path(node), :title => "Add content under #{h(node.title)}", :class => 'child' %>
47
+ <% end -%>
48
+ </td>
49
+ <td class="date" title="by <%= node.updater.full_name if node.updater %>"><%=h node.updated_at.to_formatted_s(:short_ordinal) %></td>
50
+ <td class=""><%= link_to 'Show', node_path(node), :class => 'show', :title => 'View this content' if node.published? %></td>
51
+ <td class="date" title="<%= node.published? ? 'Published ':'Draft' %><%= node.published_at.to_formatted_s(:short_ordinal) unless node.published_at.nil? %><%= " - #{node.published_to.to_formatted_s(:short_ordinal)}" unless node.published_to.nil? %>"><%= (node.published? ? '<span class="check">Published</span>' : '<span class="draft">Draft</span>').html_safe %></td>
52
+ <td><%= link_to 'Delete', noodall_admin_node_path(node), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this content' %></td>
53
+ </tr>
54
+ <% end %>
55
+ </tbody>
56
+ <tfoot>
57
+ <tr>
58
+ <th>Title</th>
59
+ <th>Type</th>
60
+ <th colspan="2">Arrange</th>
61
+ <th width="100"># Sub-Section</th>
62
+ <th>Updated</th>
63
+ <th width="45">Show</th>
64
+ <th width="45">Published</th>
65
+ <th width="45">Delete</th>
66
+ </tr>
67
+ </tfoot>
68
+ </table>
69
+ </div>
@@ -0,0 +1,30 @@
1
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
2
+
3
+ <h1>New Content<%= " under '#{@parent.title}'" unless @parent.nil? %></h1>
4
+ <p>* Required Fields</p>
5
+
6
+ <%= form_for(@node, :as => :node, :url => noodall_admin_nodes_path) do |f| %>
7
+ <%= f.error_messages %>
8
+ <%= f.hidden_field :parent, :value => @node.parent_id %>
9
+
10
+ <div id="main-form">
11
+ <p>
12
+ <span class="tooltip" title="Enter a title for this page">&nbsp;</span>
13
+ <%= f.label :title, 'Title *' %><br/>
14
+ <span class="input-wrap"><%= f.text_field :title %></span>
15
+ </p>
16
+ <fieldset class="template">
17
+ <legend>Select a template *</legend>
18
+ <% for template_name in @template_names -%>
19
+ <label>
20
+ <%= template_name %> <%= f.radio_button :template, template_name, :checked => (template_name == @template_names.first) %><br/>
21
+ <%= image_tag "admin/templates/#{template_name.parameterize}.gif", :title => template_name %>
22
+ </label>
23
+ <% end -%>
24
+ </fieldset>
25
+ <p class="fixed-form">
26
+ <span><%= f.submit 'Create', :class => 'create' %> <%= link_to 'Cancel', noodall_admin_nodes_path, :class => 'cancel' %></span>
27
+ </p>
28
+ <% end %>
29
+
30
+ </div>
@@ -0,0 +1,144 @@
1
+ <a class="tooltip" href="/cms_help.pdf">&nbsp;</a>
2
+
3
+ <% content_for :header, javascript_include_tag( 'tiny_mce/jquery.tinymce.js', 'admin/tiny_mce_config', 'admin/nodes', 'admin/assets' ) %>
4
+
5
+
6
+ <h1>Editing Content</h1>
7
+ <p>* Required Fields</p>
8
+
9
+ <%= form_for(@node, :as => :node, :url => noodall_admin_node_path(@node), :html => {:method => :put, :id => "node-form"}) do |f| %>
10
+ <%= f.error_messages %>
11
+
12
+ <div id="main-form">
13
+
14
+ <p>
15
+ <span class="tooltip" title="Enter a title for this page">&nbsp;</span>
16
+ <%= f.label :title, 'Title *' %><br/>
17
+ <span class="input-wrap"><%= f.text_field :title %></span>
18
+ </p>
19
+
20
+ <%= render :partial => "admin/nodes/#{@node.class.name.underscore}", :locals => { :f => f } %>
21
+
22
+ <p>
23
+ <span class="tooltip" title="Enter a short summary of this content.">&nbsp;</span>
24
+ <%= f.label :description, "Short Description" %><br/>
25
+ <span class="input-wrap"><%= f.text_area :description, :class => 'description' %></span>
26
+ </p>
27
+
28
+ <p>
29
+ <span class="tooltip" title="Enter a comma seperated list of keywords to describe this content.&quot;website,launch,event&quot;">&nbsp;</span>
30
+ <%= f.label :keywords, "Keywords" %><br/>
31
+ <span class="input-wrap"><%= f.text_field :keywords %></span>
32
+ </p>
33
+
34
+ <p>
35
+ <span class="tooltip" title="Enter a custom url or leave it as the default value shown.">&nbsp;</span>
36
+ <%= f.label :permalink, 'Page Url' %><br/>
37
+ <span class="input-wrap"><%= f.text_field :permalink %></span>
38
+ </p>
39
+
40
+ </div>
41
+
42
+ <div class="fixed-form">
43
+ <div id="buttons">
44
+ <%= f.submit 'Publish', :class => 'publish', :name => 'node[publish]' if can_publish?(@node) %>
45
+ <%= f.submit 'Draft', :name => 'node[hide]', :class => 'draft' %>
46
+ <%= link_to 'Cancel', noodall_admin_nodes_path, :class => 'cancel' %>
47
+ </div>
48
+
49
+ <% if can_publish?(@node) %>
50
+ <!-- Advanced Publishing Options -->
51
+ <div class="show-advanced">
52
+ <fieldset>
53
+ <legend class="advanced">Advanced</legend>
54
+ <div id="advanced">
55
+ <p class="published">
56
+ <%= f.label :published_at, "Publish at" %><br/>
57
+ <span class="input-wrap"><%= f.datetime_select :published_at, :include_blank => true %></span>
58
+ </p>
59
+
60
+ <p class="published">
61
+ <%= f.label :published_to, "Publish until" %><br/>
62
+ <%
63
+ # Remove select for far future dates
64
+ @node.published_to = nil unless @node.published_to.nil? or @node.published_to < 5.years.from_now
65
+ %>
66
+ <span class="input-wrap"><%= f.datetime_select :published_to, :include_blank => true %></span>
67
+ </p>
68
+
69
+ <p>
70
+ <span class="node-mover">Parent Content</span>
71
+ <span class="input-wrap" id="parent-title">
72
+ <%= @node.root? ? "Root" : @node.parent.title %>
73
+ <a href="#" class="edit-item">Edit</a>
74
+ </span>
75
+ <%= f.hidden_field :parent, :value => @node.parent_id %>
76
+ <%= hidden_field_tag :parent_types, @node.class.parent_classes.join(','), :disabled => true %>
77
+ </p>
78
+
79
+
80
+ <% if current_user.admin? -%>
81
+ <fieldset>
82
+ <span class="tooltip" title="User Permissions">&nbsp;</span>
83
+ <legend>User Permission</legend>
84
+ <span class="input-wrap">
85
+ <table>
86
+ <thead>
87
+ <tr>
88
+ <th width="85">Action</th>
89
+ <th width="90%">Groups</th>
90
+ </tr>
91
+ </thead>
92
+ <tbody>
93
+ <tr>
94
+ <th><%= f.label :updatable_groups_list, "Update" %></th>
95
+ <td><%= f.text_field :updatable_groups_list, :class => "groups-completer" %></td>
96
+ </tr>
97
+ <tr>
98
+ <th><%= f.label :publishable_groups_list, "Publish" %></th>
99
+ <td><%= f.text_field :publishable_groups_list, :class => "groups-completer" %></td>
100
+ </tr>
101
+ <tr>
102
+ <th><%= f.label :destroyable_groups_list, "Delete" %></th>
103
+ <td><%= f.text_field :destroyable_groups_list, :class => "groups-completer" %></td>
104
+ </tr>
105
+ </tbody>
106
+ </table>
107
+ </span>
108
+ </fieldset>
109
+ <% end -%>
110
+ </div>
111
+ </fieldset>
112
+ </div>
113
+ <% end -%>
114
+ </div>
115
+
116
+ <div id="sub-form">
117
+
118
+ <h2>Page Components</h2>
119
+
120
+ <span class="tooltip" title="Please choose where you would like to place each component">&nbsp;</span>
121
+
122
+ <%= yield :component_table %>
123
+ <% if can_publish?(@node) %>
124
+ <%= link_to "Change Template", change_template_noodall_admin_node_path(@node), :class => 'change' %>
125
+ <% end -%>
126
+ <div id="modules-list">
127
+ <!-- Component lightbox related stuff -->
128
+ <ol id="slot-list">
129
+ <%
130
+ Noodall::Component.possible_slots.each do |type|
131
+ @node.class.send("#{type}_slots_count").to_i.times do |index| %>
132
+ <li>
133
+ <%= slot_link(@node,type,index) %>
134
+ <%= slot_form(@node,type,index) %>
135
+ </li>
136
+
137
+ <% end
138
+ end %>
139
+ </ol>
140
+ </div>
141
+
142
+ </div>
143
+
144
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <h1>Tree</h1>
2
+
3
+ <%= render :partial => 'branch', :locals => { :nodes => Noodall:Node.roots(@options), :options => @options } %>
@@ -0,0 +1,2 @@
1
+ $('#tree-browser').html( "<%= escape_javascript(render :partial => 'branch', :locals => { :nodes => Noodall::Node.roots(@options), :options => @options }) %>" );
2
+ $('#tree-browser ol.tree ol').hide();
File without changes
@@ -0,0 +1,14 @@
1
+ <h1>Search results for <span class="term"><%= h params[:q] %></span></h1>
2
+
3
+ <%= will_paginate(@nodes, :previous_label => 'Previous', :next_label => 'Next') %>
4
+
5
+ <dl id="search-results">
6
+ <% for node in @nodes -%>
7
+ <dt><%= link_to h(node.title), node_path(node) %></dt>
8
+ <dd class="<%= "with-description" unless node.description.blank? %>">
9
+ <%= h(node.description) %>
10
+ </dd>
11
+ <% end -%>
12
+ </dl>
13
+
14
+ <%= will_paginate(@nodes, :previous_label => 'Previous', :next_label => 'Next') %>
@@ -0,0 +1,3 @@
1
+ <h1>Sitemap</h1>
2
+
3
+ <%= sitemap(node_tree) %>
@@ -0,0 +1,22 @@
1
+ xml.instruct!
2
+
3
+ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
4
+ # homepage
5
+ xml.url do
6
+ xml.loc root_path(:only_path => false)
7
+ xml.lastmod File.new("#{RAILS_ROOT}/app/views/nodes/home.html.erb").mtime.to_formatted_s(:w3c)
8
+ xml.changefreq "daily"
9
+ xml.priority 1
10
+ end
11
+
12
+ # nodes
13
+ @nodes.each do |node|
14
+ xml.url do
15
+ xml.loc node_path(node,:only_path => false)
16
+ xml.lastmod node.updated_at.to_formatted_s(:w3c)
17
+ xml.changefreq "daily"
18
+ xml.priority 1
19
+ end
20
+ end
21
+
22
+ end
@@ -0,0 +1,29 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ # require "active_record/railtie"
5
+ require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ require "active_resource/railtie"
8
+
9
+ # If you have a Gemfile, require the gems listed there, including any gems
10
+ # you've limited to :test, :development, or :production.
11
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
12
+
13
+ require 'noodall-core'
14
+ require 'lib/noodall/permalinks'
15
+
16
+ module Noodall
17
+ class Application < Rails::Application
18
+ # Configure the default encoding used in templates for Ruby 1.9.
19
+ config.encoding = "utf-8"
20
+
21
+ paths.app << 'demo'
22
+ paths.app.views << 'demo/views'
23
+ paths.app.controllers << 'demo/controllers'
24
+ paths.config.routes 'demo/routes.rb'
25
+ paths.config.initializers << "demo/initializers"
26
+
27
+ config.middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :noodall_assets, '/media'
28
+ end
29
+ end
data/config/boot.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ gemfile = File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ ENV['BUNDLE_GEMFILE'] = gemfile
7
+ require 'bundler'
8
+ Bundler.setup
9
+ rescue Bundler::GemNotFound => e
10
+ STDERR.puts e.message
11
+ STDERR.puts "Try running `bundle install`."
12
+ exit!
13
+ end if File.exist?(gemfile)
@@ -0,0 +1,8 @@
1
+ <%
2
+ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
+ rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
+ std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
5
+ %>
6
+ default: --drb <%= std_opts %> features
7
+ wip: --drb --tags @wip:3 --wip features
8
+ rerun: --drb <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip