ds-kitsune 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.specification +447 -0
- data/README.textile +16 -0
- data/Rakefile +30 -0
- data/VERSION +1 -0
- data/app/controllers/admin/kitsune/application_controller.rb +3 -0
- data/app/controllers/admin/kitsune/kitsune_controller.rb +87 -0
- data/app/controllers/admin/kitsune/kitsune_users_controller.rb +20 -0
- data/app/controllers/admin/kitsune/media_controller.rb +27 -0
- data/app/controllers/admin/kitsune/models_controller.rb +10 -0
- data/app/controllers/admin/kitsune/pages_controller.rb +35 -0
- data/app/controllers/admin/kitsune/records_controller.rb +98 -0
- data/app/controllers/admin/kitsune/sessions_controller.rb +23 -0
- data/app/controllers/kitsune_controller.rb +8 -0
- data/app/helpers/admin/kitsune/records_helper.rb +39 -0
- data/app/views/admin/kitsune/kitsune_users/index.html.haml +19 -0
- data/app/views/admin/kitsune/kitsune_users/new.html.haml +19 -0
- data/app/views/admin/kitsune/media/new.html.erb +49 -0
- data/app/views/admin/kitsune/models/index.html.haml +1 -0
- data/app/views/admin/kitsune/pages/_form.html.erb +13 -0
- data/app/views/admin/kitsune/pages/edit.html.erb +7 -0
- data/app/views/admin/kitsune/pages/index.html.erb +5 -0
- data/app/views/admin/kitsune/pages/new.html.erb +7 -0
- data/app/views/admin/kitsune/records/_form.html.haml +27 -0
- data/app/views/admin/kitsune/records/_list.html.haml +26 -0
- data/app/views/admin/kitsune/records/edit.html.haml +6 -0
- data/app/views/admin/kitsune/records/index.html.haml +13 -0
- data/app/views/admin/kitsune/records/new.html.haml +6 -0
- data/app/views/admin/kitsune/records/show.html.haml +11 -0
- data/app/views/admin/kitsune/sessions/new.html.haml +12 -0
- data/app/views/admin/kitsune/shared/_flashes.html.haml +6 -0
- data/app/views/kitsune/show.html.erb +8 -0
- data/app/views/kitsune/show.html.haml +5 -0
- data/app/views/layouts/admin/kitsune.html.erb +66 -0
- data/config/kitsune_routes.rb +21 -0
- data/doc/developers.html +38 -0
- data/generators/kitsune/USAGE +1 -0
- data/generators/kitsune/kitsune_generator.rb +67 -0
- data/generators/kitsune/lib/insert_commands.rb +31 -0
- data/generators/kitsune/templates/README +18 -0
- data/generators/kitsune/templates/VERSIONED_README +19 -0
- data/generators/kitsune/templates/images/back-arrow.gif +0 -0
- data/generators/kitsune/templates/images/bg.jpg +0 -0
- data/generators/kitsune/templates/images/box-shadow.png +0 -0
- data/generators/kitsune/templates/images/content-bg.gif +0 -0
- data/generators/kitsune/templates/images/form-bg.gif +0 -0
- data/generators/kitsune/templates/images/grey-btn.png +0 -0
- data/generators/kitsune/templates/images/header-bg.gif +0 -0
- data/generators/kitsune/templates/images/header-link.png +0 -0
- data/generators/kitsune/templates/images/nicEditorIcons.gif +0 -0
- data/generators/kitsune/templates/javascripts/jquery.js +19 -0
- data/generators/kitsune/templates/javascripts/kitsune_jquery.js +10 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/langs/en.js +154 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/license.txt +504 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/css/advhr.css +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +54 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/js/rule.js +43 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advhr/rule.htm +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/css/advimage.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +47 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/image.htm +237 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/js/image.js +443 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +43 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/css/advlink.css +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +58 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/js/advlink.js +528 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +52 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/advlink/link.htm +338 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +114 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +117 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +95 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +79 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +40 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/emotions.htm +40 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/js/emotions.js +22 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/dialog.htm +27 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/editor_plugin_src.js +81 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/img/example.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/js/dialog.js +19 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en.js +3 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +146 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +576 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +461 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +145 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +632 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +80 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +209 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/content.css +6 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/css/media.css +16 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +411 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/embed.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/js/media.js +630 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +103 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/media/media.htm +822 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +50 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +87 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/css/content.css +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +531 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pastetext.htm +33 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/paste/pasteword.htm +27 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +50 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/example.html +28 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/preview/preview.html +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/blank.htm +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +438 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +98 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +54 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +126 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +104 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/css/content.css +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +338 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/css/props.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +52 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/js/props.js +641 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +63 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/style/props.htm +730 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +109 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/cell.htm +183 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/cell.css +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/row.css +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/css/table.css +13 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +1202 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/cell.js +269 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/merge_cells.js +29 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/row.js +212 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/js/table.js +440 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/merge_cells.htm +37 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/row.htm +160 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/table/table.htm +192 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/blank.htm +12 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/css/template.css +23 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +156 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/js/template.js +106 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/template/template.htm +38 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +73 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +95 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +148 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +169 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +136 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +169 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +123 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +60 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +231 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +59 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/about.htm +56 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/anchor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/color_picker.htm +75 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/image.htm +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/about.js +72 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/anchor.js +37 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/charmap.js +325 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/color_picker.js +253 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/image.js +245 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/link.js +156 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/js/source_editor.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/link.htm +63 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +116 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +115 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/advanced/source_editor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/about.htm +56 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/anchor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/charmap.htm +53 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/color_picker.htm +75 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template.js +1153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template_src.js +1153 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/image.htm +65 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/images.json +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/colorpicker.jpg +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/icons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/about.js +72 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/anchor.js +37 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/charmap.js +325 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/color_picker.js +253 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/image.js +260 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/link.js +156 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/source_editor.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en.js +62 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en_dlg.js +51 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/link.htm +63 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/dialog.css +184 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/buttons.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/items.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_arrow.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_check.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/progress.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/tabs.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/ui.css +214 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/content.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/dialog.css +115 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_black.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_silver.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui.css +215 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_black.css +8 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_silver.css +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/source_editor.htm +31 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/editor_template_src.js +85 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/langs/en.js +11 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/content.css +25 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/default/ui.css +32 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce.js +1 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_popup.js +5 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/tiny_mce_src.js +13231 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/editable_selects.js +69 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/form_utils.js +199 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/mctabs.js +76 -0
- data/generators/kitsune/templates/javascripts/tiny_mce/utils/validate.js +219 -0
- data/generators/kitsune/templates/javascripts/upload_maker.js +19 -0
- data/generators/kitsune/templates/kitsune_user.rb +3 -0
- data/generators/kitsune/templates/migrations/create_kitsune_users.rb +15 -0
- data/generators/kitsune/templates/migrations/create_pages.rb +16 -0
- data/generators/kitsune/templates/page.rb +3 -0
- data/generators/kitsune/templates/stylesheets/global.css +445 -0
- data/generators/kitsune/templates/stylesheets/ie.css +3 -0
- data/generators/kitsune_flat_files/kitsune_flat_files_generator.rb +8 -0
- data/generators/kitsune_flat_files/templates/index.html.erb +35 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/_form.html.erb +16 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/models/index.html.erb +2 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/_form.html.erb +13 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/edit.html.erb +7 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/index.html.erb +5 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/pages/new.html.erb +7 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_form.html.erb +21 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/_list.html.erb +38 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/edit.html.erb +15 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/index.html.erb +13 -0
- data/generators/kitsune_flat_files/templates/views/erb/admin/kitsune/records/new.html.erb +8 -0
- data/generators/kitsune_flat_files/templates/views/erb/kitsune/show.html.erb +1 -0
- data/generators/kitsune_flat_files/templates/views/erb/layouts/admin/kitsune.html.erb +46 -0
- data/kitsune.gemspec +419 -0
- data/lib/kitsune/active_record.rb +36 -0
- data/lib/kitsune/builder.rb +236 -0
- data/lib/kitsune/extensions/routes.rb +15 -0
- data/lib/kitsune/faux_column.rb +8 -0
- data/lib/kitsune/form_helper_ext.rb +23 -0
- data/lib/kitsune/inspector.rb +268 -0
- data/lib/kitsune/layout.rb +15 -0
- data/lib/kitsune/mongo_mapper.rb +49 -0
- data/lib/kitsune/page.rb +70 -0
- data/lib/kitsune.rb +53 -0
- data/lib/kitsune_user.rb +49 -0
- data/rails/init.rb +7 -0
- data/test/builder_test.rb +9 -0
- data/test/inspector_test.rb +13 -0
- data/test/schema.rb +23 -0
- data/test/test_helper.rb +11 -0
- 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,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,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 @@
|
|
1
|
+
<%= @page.body %>
|