ds-kitsune 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (372) hide show
  1. data/.gitignore +4 -0
  2. data/.specification +447 -0
  3. data/README.textile +16 -0
  4. data/Rakefile +30 -0
  5. data/VERSION +1 -0
  6. data/app/controllers/admin/kitsune/application_controller.rb +3 -0
  7. data/app/controllers/admin/kitsune/kitsune_controller.rb +87 -0
  8. data/app/controllers/admin/kitsune/kitsune_users_controller.rb +20 -0
  9. data/app/controllers/admin/kitsune/media_controller.rb +27 -0
  10. data/app/controllers/admin/kitsune/models_controller.rb +10 -0
  11. data/app/controllers/admin/kitsune/pages_controller.rb +35 -0
  12. data/app/controllers/admin/kitsune/records_controller.rb +98 -0
  13. data/app/controllers/admin/kitsune/sessions_controller.rb +23 -0
  14. data/app/controllers/kitsune_controller.rb +8 -0
  15. data/app/helpers/admin/kitsune/records_helper.rb +39 -0
  16. data/app/views/admin/kitsune/kitsune_users/index.html.haml +19 -0
  17. data/app/views/admin/kitsune/kitsune_users/new.html.haml +19 -0
  18. data/app/views/admin/kitsune/media/new.html.erb +49 -0
  19. data/app/views/admin/kitsune/models/index.html.haml +1 -0
  20. data/app/views/admin/kitsune/pages/_form.html.erb +13 -0
  21. data/app/views/admin/kitsune/pages/edit.html.erb +7 -0
  22. data/app/views/admin/kitsune/pages/index.html.erb +5 -0
  23. data/app/views/admin/kitsune/pages/new.html.erb +7 -0
  24. data/app/views/admin/kitsune/records/_form.html.haml +27 -0
  25. data/app/views/admin/kitsune/records/_list.html.haml +26 -0
  26. data/app/views/admin/kitsune/records/edit.html.haml +6 -0
  27. data/app/views/admin/kitsune/records/index.html.haml +13 -0
  28. data/app/views/admin/kitsune/records/new.html.haml +6 -0
  29. data/app/views/admin/kitsune/records/show.html.haml +11 -0
  30. data/app/views/admin/kitsune/sessions/new.html.haml +12 -0
  31. data/app/views/admin/kitsune/shared/_flashes.html.haml +6 -0
  32. data/app/views/kitsune/show.html.erb +8 -0
  33. data/app/views/kitsune/show.html.haml +5 -0
  34. data/app/views/layouts/admin/kitsune.html.erb +66 -0
  35. data/config/kitsune_routes.rb +21 -0
  36. data/doc/developers.html +38 -0
  37. data/generators/kitsune/USAGE +1 -0
  38. data/generators/kitsune/kitsune_generator.rb +67 -0
  39. data/generators/kitsune/lib/insert_commands.rb +31 -0
  40. data/generators/kitsune/templates/README +18 -0
  41. data/generators/kitsune/templates/VERSIONED_README +19 -0
  42. data/generators/kitsune/templates/images/back-arrow.gif +0 -0
  43. data/generators/kitsune/templates/images/bg.jpg +0 -0
  44. data/generators/kitsune/templates/images/box-shadow.png +0 -0
  45. data/generators/kitsune/templates/images/content-bg.gif +0 -0
  46. data/generators/kitsune/templates/images/form-bg.gif +0 -0
  47. data/generators/kitsune/templates/images/grey-btn.png +0 -0
  48. data/generators/kitsune/templates/images/header-bg.gif +0 -0
  49. data/generators/kitsune/templates/images/header-link.png +0 -0
  50. data/generators/kitsune/templates/images/nicEditorIcons.gif +0 -0
  51. data/generators/kitsune/templates/javascripts/jquery.js +19 -0
  52. data/generators/kitsune/templates/javascripts/kitsune_jquery.js +10 -0
  53. data/generators/kitsune/templates/javascripts/tiny_mce/langs/en.js +154 -0
  54. data/generators/kitsune/templates/javascripts/tiny_mce/license.txt +504 -0
  55. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  56. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  57. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +54 -0
  58. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
  59. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
  60. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm +62 -0
  61. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  62. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  63. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +47 -0
  64. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
  65. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  66. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
  67. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
  68. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  69. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  70. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
  71. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
  72. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
  73. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
  74. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  75. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +114 -0
  76. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  77. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
  78. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  79. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +117 -0
  80. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  81. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +95 -0
  82. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  83. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +79 -0
  84. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  85. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
  86. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
  87. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  88. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  89. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  90. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  91. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  92. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  93. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  94. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  95. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  96. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  97. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  98. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  99. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  100. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  101. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  102. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  103. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  104. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  105. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm +27 -0
  106. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
  107. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +81 -0
  108. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
  109. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
  110. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
  111. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  112. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  113. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  114. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +146 -0
  115. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +576 -0
  116. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +461 -0
  117. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  118. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  119. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +145 -0
  120. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
  121. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  122. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +51 -0
  123. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  124. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +632 -0
  125. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  126. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  127. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  128. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  129. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  130. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  131. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  132. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  133. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  134. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  135. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +80 -0
  136. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  137. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +209 -0
  138. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
  139. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
  140. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
  141. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +411 -0
  142. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
  143. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
  144. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
  145. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
  146. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
  147. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
  148. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
  149. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
  150. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
  151. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
  152. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm +822 -0
  153. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  154. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
  155. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  156. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +87 -0
  157. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
  158. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  159. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  160. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
  161. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
  162. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  163. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +531 -0
  164. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  165. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  166. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  167. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm +33 -0
  168. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm +27 -0
  169. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  170. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +50 -0
  171. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html +28 -0
  172. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  173. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
  174. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
  175. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +31 -0
  176. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
  177. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
  178. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +438 -0
  179. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
  180. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +98 -0
  181. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  182. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  183. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +54 -0
  184. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +126 -0
  185. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  186. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +104 -0
  187. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  188. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  189. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +338 -0
  190. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  191. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
  192. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
  193. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +52 -0
  194. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
  195. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
  196. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm +730 -0
  197. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  198. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +109 -0
  199. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm +183 -0
  200. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
  201. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
  202. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
  203. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
  204. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
  205. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js +269 -0
  206. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js +29 -0
  207. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js +212 -0
  208. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js +440 -0
  209. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  210. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm +37 -0
  211. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm +160 -0
  212. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm +192 -0
  213. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
  214. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
  215. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
  216. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +156 -0
  217. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
  218. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  219. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm +38 -0
  220. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  221. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +73 -0
  222. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  223. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +95 -0
  224. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +148 -0
  225. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +148 -0
  226. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +153 -0
  227. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +148 -0
  228. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  229. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  230. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +169 -0
  231. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  232. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +136 -0
  233. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +169 -0
  234. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +25 -0
  235. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +25 -0
  236. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +123 -0
  237. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +25 -0
  238. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +60 -0
  239. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
  240. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +59 -0
  241. data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  242. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm +56 -0
  243. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm +31 -0
  244. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
  245. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm +75 -0
  246. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
  247. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1153 -0
  248. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm +85 -0
  249. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  250. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  251. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
  252. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
  253. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js +325 -0
  254. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
  255. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
  256. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
  257. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
  258. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
  259. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
  260. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm +63 -0
  261. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css +32 -0
  262. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +116 -0
  263. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  264. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  265. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  266. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  267. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  268. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  269. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
  270. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +32 -0
  271. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +115 -0
  272. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  273. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  274. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  275. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  276. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  277. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  278. data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm +31 -0
  279. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/about.htm +56 -0
  280. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/anchor.htm +31 -0
  281. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/charmap.htm +53 -0
  282. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/color_picker.htm +75 -0
  283. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template.js +1153 -0
  284. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template_src.js +1153 -0
  285. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/image.htm +65 -0
  286. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/images.json +8 -0
  287. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/colorpicker.jpg +0 -0
  288. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/icons.gif +0 -0
  289. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/about.js +72 -0
  290. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/anchor.js +37 -0
  291. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/charmap.js +325 -0
  292. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/color_picker.js +253 -0
  293. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/image.js +260 -0
  294. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/link.js +156 -0
  295. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/source_editor.js +62 -0
  296. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en.js +62 -0
  297. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en_dlg.js +51 -0
  298. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/link.htm +63 -0
  299. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/content.css +32 -0
  300. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/dialog.css +184 -0
  301. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/buttons.png +0 -0
  302. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/items.gif +0 -0
  303. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_arrow.gif +0 -0
  304. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_check.gif +0 -0
  305. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/progress.gif +0 -0
  306. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/tabs.gif +0 -0
  307. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/ui.css +214 -0
  308. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/content.css +32 -0
  309. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/dialog.css +115 -0
  310. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg.png +0 -0
  311. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_black.png +0 -0
  312. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_silver.png +0 -0
  313. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui.css +215 -0
  314. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_black.css +8 -0
  315. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_silver.css +5 -0
  316. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/source_editor.htm +31 -0
  317. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
  318. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
  319. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
  320. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
  321. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
  322. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  323. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  324. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  325. data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  326. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js +1 -0
  327. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
  328. data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js +13231 -0
  329. data/generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js +69 -0
  330. data/generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js +199 -0
  331. data/generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js +76 -0
  332. data/generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js +219 -0
  333. data/generators/kitsune/templates/javascripts/upload_maker.js +19 -0
  334. data/generators/kitsune/templates/kitsune_user.rb +3 -0
  335. data/generators/kitsune/templates/migrations/create_kitsune_users.rb +15 -0
  336. data/generators/kitsune/templates/migrations/create_pages.rb +16 -0
  337. data/generators/kitsune/templates/page.rb +3 -0
  338. data/generators/kitsune/templates/stylesheets/global.css +445 -0
  339. data/generators/kitsune/templates/stylesheets/ie.css +3 -0
  340. data/generators/kitsune_flat_files/kitsune_flat_files_generator.rb +8 -0
  341. data/generators/kitsune_flat_files/templates/index.html.erb +35 -0
  342. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/_form.html.erb +16 -0
  343. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/index.html.erb +2 -0
  344. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/_form.html.erb +13 -0
  345. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/edit.html.erb +7 -0
  346. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/index.html.erb +5 -0
  347. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/new.html.erb +7 -0
  348. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_form.html.erb +21 -0
  349. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_list.html.erb +38 -0
  350. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/edit.html.erb +15 -0
  351. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/index.html.erb +13 -0
  352. data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/new.html.erb +8 -0
  353. data/generators/kitsune_flat_files/templates/views/erb/kitsune/show.html.erb +1 -0
  354. data/generators/kitsune_flat_files/templates/views/erb/layouts/admin/kitsune.html.erb +46 -0
  355. data/kitsune.gemspec +419 -0
  356. data/lib/kitsune/active_record.rb +36 -0
  357. data/lib/kitsune/builder.rb +236 -0
  358. data/lib/kitsune/extensions/routes.rb +15 -0
  359. data/lib/kitsune/faux_column.rb +8 -0
  360. data/lib/kitsune/form_helper_ext.rb +23 -0
  361. data/lib/kitsune/inspector.rb +268 -0
  362. data/lib/kitsune/layout.rb +15 -0
  363. data/lib/kitsune/mongo_mapper.rb +49 -0
  364. data/lib/kitsune/page.rb +70 -0
  365. data/lib/kitsune.rb +53 -0
  366. data/lib/kitsune_user.rb +49 -0
  367. data/rails/init.rb +7 -0
  368. data/test/builder_test.rb +9 -0
  369. data/test/inspector_test.rb +13 -0
  370. data/test/schema.rb +23 -0
  371. data/test/test_helper.rb +11 -0
  372. metadata +451 -0
@@ -0,0 +1,445 @@
1
+ /* -------RESET------- */
2
+ html, body, div, span, applet, object, iframe,
3
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
4
+ a, abbr, acronym, address, big, cite, code,
5
+ del, dfn, font, img, ins, kbd, q, s, samp,
6
+ small, strike, sub, sup, tt, var,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td {
10
+ margin: 0;
11
+ padding: 0;
12
+ border: 0;
13
+ outline: 0;
14
+ font-weight: inherit;
15
+ font-style: inherit;
16
+ font-size: 100%;
17
+ font-family: inherit;
18
+ vertical-align: baseline;
19
+ }
20
+
21
+ body {
22
+ color: black;
23
+ background: white;
24
+ }
25
+
26
+ a {
27
+ color:#666;
28
+ text-decoration: none;
29
+ }
30
+
31
+ ol, ul {
32
+ list-style: none;
33
+ }
34
+
35
+ table {
36
+ border-collapse: separate;
37
+ border-spacing: 0;
38
+ }
39
+
40
+ caption, th, td {
41
+ text-align: left;
42
+ font-weight: normal;
43
+ }
44
+
45
+ blockquote:before, blockquote:after,
46
+ q:before, q:after {
47
+ content: "";
48
+ }
49
+
50
+ blockquote, q {
51
+ quotes: "" "";
52
+ }
53
+
54
+
55
+ /* -------COMMON------- */
56
+ body {
57
+ background-color: #eee;
58
+ color: #000;
59
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
60
+ font-size: 14px;
61
+ line-height: 1.3em;
62
+ }
63
+
64
+ h1 {
65
+ font-size: 1.4em;
66
+ }
67
+ h2 {
68
+ font-size: 2em;
69
+ }
70
+ h3 {
71
+ font-size: 1.5em;
72
+ }
73
+ h4 {
74
+ font-size: 1.25em;
75
+ }
76
+ h5 {
77
+ font-size: 1em;
78
+ }
79
+
80
+ p {
81
+ font-size: 1em;
82
+ }
83
+
84
+
85
+ form {
86
+ }
87
+ fieldset {
88
+ background: #F6F6F6;
89
+ border: 1px solid #eee;
90
+ padding: 30px 0 0 0;
91
+ }
92
+ h2.legend {
93
+ width: 100%;
94
+ border-bottom: 1px solid #eee;
95
+ font-size: 1.3em;
96
+ padding: 5px 0;
97
+ margin-bottom: 10px;
98
+ color: #555;
99
+ }
100
+ label {
101
+ font-weight: bold;
102
+ font-size: 1em;
103
+ margin: 0 0 3px 0;
104
+ text-transform: ;
105
+ color: #aaa;
106
+ }
107
+ input, textarea {
108
+ font-family: "Lucida Grande", "Lucida Sans", Arial, sans-serif;
109
+ font-size: .9em;
110
+ border: 1px solid #ccc;
111
+ padding: 5px;
112
+ }
113
+ input:focus, textarea:focus {
114
+ border: 1px solid #e1cd30;
115
+ background-color: #fbffeb;
116
+ }
117
+ select {
118
+ font-family: "Lucida Grande", "Lucida Sans", Arial, sans-serif;
119
+ font-size: .9em;
120
+ }
121
+
122
+ fieldset {
123
+ clear: both;
124
+ }
125
+
126
+ fieldset fieldset legend {
127
+ padding: 0 0 1.5em; font-size: 1em;
128
+ }
129
+ * html legend {
130
+ margin-left: -7px; /* ie6 */
131
+ }
132
+ *+html legend {
133
+ margin-left: -7px; /* ie7 */
134
+ }
135
+
136
+ form .field, form .buttons, form .submit_button {
137
+ clear: both;
138
+ margin: 0 0 1.5em;
139
+ padding:0 20px;
140
+ }
141
+ form .field label {
142
+ display: block;
143
+ }
144
+ form ul.fields {
145
+ margin: 0 0 1.5em;
146
+ padding: 0;
147
+ }
148
+ form ul.fields li {
149
+ list-style-type: none;
150
+ margin: 0;
151
+ }
152
+ form ul.inline li, form ul.inline label {
153
+ display: inline;
154
+ }
155
+ form ul.inline {
156
+
157
+ }
158
+ form ul.inline li {
159
+ padding: 0 .75em 0 0;
160
+ }
161
+ form .submit_button {
162
+ background-color:#eee;
163
+ border-top:1px solid #ddd;
164
+ margin:0;
165
+ padding:15px 20px;
166
+ }
167
+
168
+ input.radio, input.checkbox {
169
+ vertical-align: top;
170
+ }
171
+ label, button, input.submit, input.image {
172
+ cursor: pointer;
173
+ }
174
+ input.submit {
175
+ font-family: "Helvetica Neue", Arial, sans-serif;
176
+ font-weight: bold;
177
+ font-size: 1.3em;
178
+ background-color: #333;
179
+ color: #fff;
180
+ border: none;
181
+ padding: 4px 20px;
182
+ }
183
+ * html input.radio, * html input.checkbox {vertical-align: middle;} /* ie6 */
184
+ *+html input.radio, *+html input.checkbox {vertical-align: middle;} /* ie7 */
185
+
186
+ textarea {overflow: auto;}
187
+ input.text, input.password, textarea, select {margin: 0; vertical-align: baseline;}
188
+ input.text, input.password, textarea {border: 1px solid #444; padding: 2px;}
189
+
190
+ /* horizontal layout */
191
+ form.horizontal .field {padding-left: 150px;}
192
+ form.horizontal .field label {display: inline; float: left; width: 140px; margin-left: -150px;}
193
+
194
+
195
+ /* ----- TABLES ----- */
196
+
197
+ table {
198
+ width: 100%;
199
+ padding: 0;
200
+ background: #fff;
201
+ }
202
+
203
+ caption {
204
+ padding: 0 0 5px 0;
205
+ width: 700px;
206
+ text-align: right;
207
+ }
208
+
209
+ th {
210
+ color: #4f6b72;
211
+ border-bottom: 1px solid #ddd;
212
+ text-align: left;
213
+ padding: 6px 6px 6px 12px;
214
+ background: #fff;
215
+ color: #555;
216
+ }
217
+
218
+ th.nobg {
219
+ border-top: 0;
220
+ border-left: 0;
221
+ border-right: 1px solid #ddd;
222
+ background: none;
223
+ }
224
+
225
+ td {
226
+ border-bottom: 1px solid #eee;
227
+ background: #f6f6f6;
228
+ color: #333;
229
+ font-size: .9em;
230
+ overflow:hidden;
231
+ max-width:300px;
232
+ padding: 8px 6px 8px 12px;
233
+ white-space:nowrap;
234
+ }
235
+
236
+ tr.alt, td.alt {
237
+ background: #F5FAFA;
238
+ color: #797268;
239
+ }
240
+
241
+
242
+ /* BUTTON STYLES */
243
+ button {
244
+ position: relative;
245
+ border: 0;
246
+ padding: 0;
247
+ cursor: pointer;
248
+ overflow: visible; /* removes extra side padding in IE */
249
+ margin: 0 0;
250
+ }
251
+
252
+ button::-moz-focus-inner {
253
+ border: none; /* overrides extra padding in Firefox */
254
+ }
255
+
256
+ button span {
257
+ position: relative;
258
+ display: block;
259
+ white-space: nowrap;
260
+ }
261
+
262
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
263
+ /* Safari and Google Chrome only - fix margins */
264
+ button span {
265
+ margin-top: -1px;
266
+ }
267
+ }
268
+
269
+
270
+ /* OPTIONAL BUTTON STYLES */
271
+ button.submitBtn {
272
+ background: transparent url('/images/kitsune/grey-btn.png') no-repeat left top;
273
+ color: #000;
274
+ display:block;
275
+ height:38px;
276
+ text-indent:-9999em;
277
+ width:92px;
278
+ }
279
+ button.submitBtn:hover {
280
+ background-position:left bottom;
281
+ }
282
+
283
+ #header {
284
+ background:url('/images/kitsune/header-bg.gif') repeat-x left top;
285
+ height: 38px;
286
+ width: 100%;
287
+ }
288
+ #header a.view {
289
+ background: url('/images/kitsune/header-link.png') top left no-repeat;
290
+ display: block;
291
+ float: right;
292
+ height: 27px;
293
+ margin: 5px 15px 0 0;
294
+ text-indent: -9999em;
295
+ width: 92px;
296
+ }
297
+ #header a.sign_out {
298
+ display: block;
299
+ float: right;
300
+ color: #BBB;
301
+ height: 27px;
302
+ margin: 5px 15px 0 0;
303
+ width: 92px;
304
+ }
305
+ #header a.view:hover, #header a.sign_out:hover {
306
+ color: #FFF;
307
+ }
308
+ #header h1 {
309
+ float: left;
310
+ padding-top: 8px;
311
+ margin-left: 15px;
312
+ }
313
+ #header h1 a {
314
+ text-decoration: none;
315
+ color: #fff;
316
+ }
317
+
318
+ #flash_messages {padding:0px;}
319
+ .flash_notice {background:green; padding:5px; color:white;}
320
+ .flash_error {background:red; padding:5px; color:white;}
321
+
322
+ .kitsune_container {
323
+ background:url('/images/kitsune/content-bg.gif') repeat-x left top;
324
+ padding-top: 20px;
325
+ position: relative;
326
+ width: 100%;
327
+ }
328
+ .kitsune_left {
329
+ background:url('/images/kitsune/box-shadow.png') no-repeat right bottom;
330
+ left: 20px;
331
+ padding: 0 4px 4px 0;
332
+ position: absolute;
333
+ top: 20px;
334
+ width: 275px;
335
+ }
336
+ .kitsune_left .wrapper {
337
+ background:#fff;
338
+ border: 1px solid #ccc;
339
+ padding: 15px;
340
+ }
341
+
342
+ .kitsune_right_container {
343
+ background:url('/images/kitsune/box-shadow.png') no-repeat right bottom;
344
+ margin: 0 20px 0 310px;
345
+ padding: 0 4px 4px 0;
346
+ }
347
+ .kitsune_right {
348
+ background: #fff;
349
+ border: 1px solid #ccc;
350
+ padding: 0 15px 15px;
351
+ }
352
+ .kitsune_right p {
353
+ margin:1em 0;
354
+ }
355
+
356
+ #kitsune_record_header {
357
+ position:relative;
358
+ width: 100%;
359
+ margin-bottom: 15px;
360
+ }
361
+ #kitsune_record_header h2 {
362
+ padding-top:15px;
363
+ }
364
+ #kitsune_record_header #menu {
365
+ position:absolute;
366
+ right:0;
367
+ text-transform:lowercase;
368
+ top:15px;
369
+ }
370
+ #kitsune_record_header #menu a {
371
+ display: block;
372
+ line-height:1;
373
+ text-align:right;
374
+ width: 51px;
375
+ }
376
+ #kitsune_record_header #menu.with_form a {
377
+ background:url('/images/kitsune/back-arrow.gif') no-repeat left 100px;
378
+ }
379
+ #kitsune_record_header #menu a:hover {
380
+ background-position: left 5px;
381
+ }
382
+
383
+ #body {
384
+ width: 84%;
385
+ padding: 30px 3% 50px 3%;
386
+ margin: 40px 5% 10px 5%;
387
+ background-color: #fff;
388
+ }
389
+
390
+ /* Clearfix */
391
+ .wrapper:after {
392
+ content: ".";
393
+ display: block;
394
+ clear: both;
395
+ visibility: hidden;
396
+ line-height: 0;
397
+ height: 0;
398
+ }
399
+
400
+ .wrapper {
401
+ display: inline-block;
402
+ }
403
+
404
+ html[xmlns] .wrapper {
405
+ display: block;
406
+ }
407
+
408
+ * html .wrapper {
409
+ height: 1%;
410
+ }
411
+
412
+ .kitsune_left a {
413
+ display: block;
414
+ padding: 5px;
415
+ }
416
+ a:hover {
417
+ color: #222;
418
+ }
419
+ .kitsune_left a:hover {
420
+ color: #222 !important;
421
+ background-color: #eee;
422
+ }
423
+ .highlight td {
424
+ background-color: #e2e2e2;
425
+ }
426
+
427
+ .warning {
428
+ padding: 5px;
429
+ text-align: center;
430
+ background-color: #FF0;
431
+ border: 1px solid #FFD700;
432
+ color: #CB9603;
433
+ margin-bottom: 10px;
434
+ }
435
+
436
+ .record_details {
437
+ margin: 0 20px 20px 20px;
438
+ border: 1px solid #BEDCE7;
439
+ background: #EAF2F5;
440
+ padding: 10px;
441
+ }
442
+
443
+ .record_details a {
444
+ margin-right: 10px;
445
+ }
@@ -0,0 +1,3 @@
1
+ input {
2
+ height: 2.5em
3
+ }
@@ -0,0 +1,8 @@
1
+ class KitsuneFlatFilesGenerator < Rails::Generator::NamedBase
2
+ def manifest
3
+ record do |m|
4
+ # lets do something brilliant
5
+ puts "Some win..."
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,35 @@
1
+ <div id='kitsune_record_header'>
2
+ <h2><%= @model.admin_name %></h2>
3
+ <div id='menu'>
4
+ <%= link_to "New #{params[:id]}", new_admin_kitsune_model_record_path(params[:model_id]) %>
5
+ </div>
6
+ </div>
7
+ <% @model.tabs.each do |key, value|%>
8
+ <%= link_to key, value %>
9
+ <% end %>
10
+ <table>
11
+ <thead>
12
+ <tr>
13
+ <% @model.columns(:display).each do |column| %>
14
+ <th><%= sort_link_to(@model, column) %></th>
15
+ <% end %>
16
+ <th>Actions</th>
17
+ </tr>
18
+ </thead>
19
+ <tbody>
20
+ <% @records.each do |record| %>
21
+ <tr class="<%= cycle('odd', 'even') %>">
22
+ <% @model.columns(:display).each do |column| %>
23
+ <td><%= truncate(sanitize(record.send(column.name).to_s), :length => 20) %></td>
24
+ <% end %>
25
+ <td>
26
+ <%= link_to 'Edit', edit_admin_kitsune_model_record_path(params[:model_id], record.id) %>
27
+ -
28
+ <%= link_to 'Delete', admin_kitsune_model_record_path(params[:model_id], record.id), :method => :delete, :confirm => "Are you sure?" %>
29
+ </td>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+ </table>
34
+
35
+ <%= will_paginate @records %>
@@ -0,0 +1,16 @@
1
+ <% form_for @resource, :url => url_for(:action => (@resource.new_record? ? 'create' : 'update'), :model => @model.to_s), :method => (@resource.new_record? ? :post : :put) do |form| %>
2
+ <fieldset>
3
+ <%= form.error_messages %>
4
+ <% @columns.each do |column| %>
5
+ <% unless column.primary %>
6
+ <div class='field'>
7
+ <%= form.label column.name %>
8
+ <%= field_for(form, column, @resource.send(column.name)) %>
9
+ </div>
10
+ <% end %>
11
+ <% end %>
12
+ <div class="formSubmit">
13
+ <button value="submit" class="submitBtn"><span>Save</span></button>
14
+ </div>
15
+ </fieldset>
16
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <p>Use the left menu to manage your site. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
2
+
@@ -0,0 +1,13 @@
1
+ <% form_for [:admin, :kitsune, @page] do |f| %>
2
+ <div class='field'>
3
+ <%= f.label :title %>
4
+ <%= f.text_field :title %>
5
+ </div>
6
+ <div class='field'>
7
+ <%= f.label :body %>
8
+ <%= f.wysiwyg :body %>
9
+ </div>
10
+ <div class='submit_button'>
11
+ <%= f.submit 'Save' %>
12
+ </div>
13
+ <% end %>
@@ -0,0 +1,7 @@
1
+ <div id='menu' class='with_form'>
2
+ <%= link_to 'Back', :controller => 'admin/kitsune/pages' %>
3
+ </div>
4
+ <div id='body'>
5
+ <h2 class='legend'>Edit Page</h3>
6
+ <%= render 'form' %>
7
+ </div>
@@ -0,0 +1,5 @@
1
+ <% @pages.each do |page| %>
2
+ <%= page.title %>
3
+ <% end %>
4
+
5
+ <%= link_to 'New Page', :controller => 'admin/kitsune/pages', :action => :new %>
@@ -0,0 +1,7 @@
1
+ <div id='menu' class='with_form'>
2
+ <%= link_to 'Back', :controller => 'admin/kitsune/pages' %>
3
+ </div>
4
+ <div id='body'>
5
+ <h2 class='legend'>New Page</h3>
6
+ <%= render 'form' %>
7
+ </div>
@@ -0,0 +1,21 @@
1
+ <% form_for(@record, {:url => url_for_record(@record)}.merge(@model.form_options_for(@record))) do |form| %>
2
+ <fieldset>
3
+ <%= form.error_messages %>
4
+ <% @model.columns(:edit).each do |column| %>
5
+ <div class='field'>
6
+ <% unless params[column.name] %>
7
+ <%= form.label column.name %>
8
+ <%= form.send(@model.form_type(column), column.name, *@model.options_for(column)) %>
9
+ <%= additional_content_for(@model, @record, column) %>
10
+ <% else %>
11
+ <%= form.hidden_field column.name, :value => params[column.name] %>
12
+ <%= hidden_field_tag :redirect, column.name %>
13
+ <%= hidden_field_tag :redirect_id, params[column.name] %>
14
+ <% end %>
15
+ </div>
16
+ <% end %>
17
+ <div class="submit_button">
18
+ <button value="Save" type='submit' class="submitBtn"><span>Save</span></button>
19
+ </div>
20
+ </fieldset>
21
+ <% end %>
@@ -0,0 +1,38 @@
1
+ <table>
2
+ <thead>
3
+ <tr>
4
+ <% model.columns(:display).each do |column| %>
5
+ <th><%= sort_link_to(model, column) %></th>
6
+ <% end %>
7
+ <th>Actions</th>
8
+ </tr>
9
+ </thead>
10
+ <tbody>
11
+ <% records.each do |record| %>
12
+ <tr class="<%= cycle('odd', 'even') %>">
13
+ <% model.columns(:display).each do |column| %>
14
+ <td><%= sanitize(model.display_for(record, column.name).to_s) %></td>
15
+ <% end %>
16
+ <td>
17
+ <% unless model.disabled?(:edit) %>
18
+ <% if parent %>
19
+ <%= link_to 'Edit', :controller => 'admin/kitsune/records', :action => :edit, :model_id => model.object_class, :id => record.id, (parent.class.to_s.underscore+'_id').to_sym => parent.id %>
20
+ <% else %>
21
+ <%= link_to 'Edit', :controller => 'admin/kitsune/records', :action => :edit, :model_id => model.object_class, :id => record.id %>
22
+ <% end %>
23
+ <% end %>
24
+ <% unless model.disabled?(:edit) || model.disabled?(:delete) %>
25
+ -
26
+ <% end %>
27
+ <% unless model.disabled?(:delete) %>
28
+ <% if parent %>
29
+ <%= link_to('Delete', url_for(:controller => 'admin/kitsune/records', :model_id => model.object_class, :id => record.id, :action => :destroy, :redirect => (parent.class.to_s.underscore+'_id'), :redirect_id => parent.id), :method => :delete, :confirm => "Are you sure?") %>
30
+ <% else %>
31
+ <%= link_to('Delete', url_for(:controller => 'admin/kitsune/records', :model_id => model.object_class, :id => record.id, :action => :destroy), :method => :delete, :confirm => "Are you sure?") %>
32
+ <% end %>
33
+ <% end %>
34
+ </td>
35
+ </tr>
36
+ <% end %>
37
+ </tbody>
38
+ </table>
@@ -0,0 +1,15 @@
1
+ <div id='kitsune_record_header'>
2
+ <h2 class='legend'>Edit <%= params[:model_id] %></h2>
3
+ <div id='menu' class='with_form'>
4
+ <%= link_to 'Back', :controller => 'admin/kitsune/records', :model_id => params[:model_id] %>
5
+ </div>
6
+ </div>
7
+ <%= render 'form' %>
8
+
9
+ <% @model.columns(:reflections).each do |column| %>
10
+ <div class='reflection'>
11
+ <h3><%= column.name.to_s.titleize %></h3>
12
+ <%= link_to 'New', :controller => 'admin/kitsune/records', :action => :new, :model_id => column.name.to_s.classify, (@record.class.to_s.underscore+'_id').to_sym => @record.id %>
13
+ <%= render :partial => 'list', :locals => { :model => Kitsune::Inspector.new(column.name.to_s.classify.constantize), :records => @record.send(column.name), :parent => @record } %>
14
+ </div>
15
+ <% end %>
@@ -0,0 +1,13 @@
1
+ <div id='kitsune_record_header'>
2
+ <h2 class='legend'><%= @model.admin_name %></h2>
3
+ <% unless @model.disabled?(:new) %>
4
+ <div id='menu'>
5
+ <%= link_to "New #{params[:id]}", :controller => 'admin/kitsune/records', :action => :new, :model_id => params[:model_id] %>
6
+ </div>
7
+ <% end %>
8
+ </div>
9
+ <% @model.tabs.each do |key, value|%>
10
+ <%= link_to key, value %>
11
+ <% end %>
12
+ <%= render :partial => 'list', :locals => {:model => @model, :records => @records, :parent => nil } %>
13
+ <%= will_paginate @records %>
@@ -0,0 +1,8 @@
1
+ <div id='kitsune_record_header'>
2
+ <h2 class='legend'>New <%= params[:model_id] %></h2>
3
+ <div id='menu' class='with_form'>
4
+ <%= link_to 'Back', :controller => 'admin/kitsune/records', :model_id => params[:model_id] %>
5
+ </div>
6
+ </div>
7
+
8
+ <%= render 'form' %>