releaf 0.1.2 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +19 -21
  3. data/lib/releaf.rb +1 -34
  4. data/lib/releaf/all.rb +3 -0
  5. data/lib/releaf/rspec.rb +4 -0
  6. data/lib/releaf/rspec/features_matchers.rb +76 -0
  7. data/lib/releaf/rspec/helpers.rb +227 -0
  8. data/lib/releaf/rspec/matchers.rb +16 -0
  9. data/lib/releaf/test.rb +5 -0
  10. data/spec/factories/author.rb +6 -0
  11. data/spec/factories/book.rb +5 -0
  12. data/spec/factories/chapter.rb +7 -0
  13. data/spec/factories/common.rb +5 -0
  14. data/spec/factories/home_page.rb +5 -0
  15. data/spec/factories/node.rb +43 -0
  16. data/spec/factories/node_route.rb +7 -0
  17. data/spec/factories/publisher.rb +5 -0
  18. data/spec/factories/role.rb +21 -0
  19. data/spec/factories/text_page.rb +5 -0
  20. data/spec/factories/user.rb +22 -0
  21. data/spec/rails_helper.rb +122 -0
  22. data/spec/spec_helper.rb +81 -24
  23. data/spec/support/controller_macros.rb +8 -0
  24. data/spec/support/excel_helpers.rb +63 -0
  25. data/spec/support/shared/service_includer.rb +9 -0
  26. data/spec/support/wait_steps.rb +23 -0
  27. metadata +141 -499
  28. data/README.md +0 -77
  29. data/Rakefile +0 -70
  30. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  31. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_flat_75_ffffff_40x100.png +0 -0
  32. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  33. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_65_ffffff_1x400.png +0 -0
  34. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_75_dadada_1x400.png +0 -0
  35. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  36. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  37. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  38. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_222222_256x240.png +0 -0
  39. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_2e83ff_256x240.png +0 -0
  40. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_454545_256x240.png +0 -0
  41. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_888888_256x240.png +0 -0
  42. data/app/assets/images/releaf/3rd_party/jquery-ui-1.9.2.custom/ui-icons_cd0a0a_256x240.png +0 -0
  43. data/app/assets/images/releaf/3rd_party/lightbox/close.png +0 -0
  44. data/app/assets/images/releaf/3rd_party/lightbox/loading.gif +0 -0
  45. data/app/assets/images/releaf/3rd_party/lightbox/next.png +0 -0
  46. data/app/assets/images/releaf/3rd_party/lightbox/prev.png +0 -0
  47. data/app/assets/images/releaf/add.png +0 -0
  48. data/app/assets/images/releaf/background.jpg +0 -0
  49. data/app/assets/images/releaf/button/button_bgr.gif +0 -0
  50. data/app/assets/images/releaf/button/button_hover_bgr.png +0 -0
  51. data/app/assets/images/releaf/controllers/content/close.gif +0 -0
  52. data/app/assets/images/releaf/controllers/content/close_active.gif +0 -0
  53. data/app/assets/images/releaf/controllers/content/close_hover.gif +0 -0
  54. data/app/assets/images/releaf/controllers/content/global_fields_bgr.png +0 -0
  55. data/app/assets/images/releaf/controllers/content/open.gif +0 -0
  56. data/app/assets/images/releaf/controllers/content/open_2.gif +0 -0
  57. data/app/assets/images/releaf/controllers/content/open_active.gif +0 -0
  58. data/app/assets/images/releaf/controllers/content/open_hover.gif +0 -0
  59. data/app/assets/images/releaf/controllers/sessions/background.jpg +0 -0
  60. data/app/assets/images/releaf/controllers/sessions/logo.jpg +0 -0
  61. data/app/assets/images/releaf/expand_tool/close.png +0 -0
  62. data/app/assets/images/releaf/expand_tool/close_hover.png +0 -0
  63. data/app/assets/images/releaf/expand_tool/close_hover_shim.png +0 -0
  64. data/app/assets/images/releaf/expand_tool/close_shim.png +0 -0
  65. data/app/assets/images/releaf/expand_tool/loader.gif +0 -0
  66. data/app/assets/images/releaf/expand_tool/open.png +0 -0
  67. data/app/assets/images/releaf/expand_tool/open_hover.png +0 -0
  68. data/app/assets/images/releaf/expand_tool/open_hover_shim.png +0 -0
  69. data/app/assets/images/releaf/expand_tool/open_shim.png +0 -0
  70. data/app/assets/images/releaf/favicon.ico +0 -0
  71. data/app/assets/images/releaf/globalFieldContainerBgr.png +0 -0
  72. data/app/assets/images/releaf/icons/129.png +0 -0
  73. data/app/assets/images/releaf/icons/130.png +0 -0
  74. data/app/assets/images/releaf/icons/accept.png +0 -0
  75. data/app/assets/images/releaf/icons/add.png +0 -0
  76. data/app/assets/images/releaf/icons/arrow_down.png +0 -0
  77. data/app/assets/images/releaf/icons/arrow_left.png +0 -0
  78. data/app/assets/images/releaf/icons/arrow_refresh.png +0 -0
  79. data/app/assets/images/releaf/icons/arrow_up.png +0 -0
  80. data/app/assets/images/releaf/icons/bin_empty.png +0 -0
  81. data/app/assets/images/releaf/icons/bullet_black.png +0 -0
  82. data/app/assets/images/releaf/icons/bullet_connect.png +0 -0
  83. data/app/assets/images/releaf/icons/bullet_start.png +0 -0
  84. data/app/assets/images/releaf/icons/bullet_tick.png +0 -0
  85. data/app/assets/images/releaf/icons/chrome.png +0 -0
  86. data/app/assets/images/releaf/icons/control_play.png +0 -0
  87. data/app/assets/images/releaf/icons/date.png +0 -0
  88. data/app/assets/images/releaf/icons/delete.png +0 -0
  89. data/app/assets/images/releaf/icons/disk.png +0 -0
  90. data/app/assets/images/releaf/icons/drag-handle.png +0 -0
  91. data/app/assets/images/releaf/icons/error.png +0 -0
  92. data/app/assets/images/releaf/icons/eye.png +0 -0
  93. data/app/assets/images/releaf/icons/firefox.png +0 -0
  94. data/app/assets/images/releaf/icons/google-not-available.gif +0 -0
  95. data/app/assets/images/releaf/icons/google.gif +0 -0
  96. data/app/assets/images/releaf/icons/keyboard.png +0 -0
  97. data/app/assets/images/releaf/icons/left_16.png +0 -0
  98. data/app/assets/images/releaf/icons/link.png +0 -0
  99. data/app/assets/images/releaf/icons/magnifier.png +0 -0
  100. data/app/assets/images/releaf/icons/notAllowed.png +0 -0
  101. data/app/assets/images/releaf/icons/page_white_add.png +0 -0
  102. data/app/assets/images/releaf/icons/page_white_edit.png +0 -0
  103. data/app/assets/images/releaf/icons/page_white_put.png +0 -0
  104. data/app/assets/images/releaf/icons/page_white_text.png +0 -0
  105. data/app/assets/images/releaf/icons/pencil.png +0 -0
  106. data/app/assets/images/releaf/icons/picture.png +0 -0
  107. data/app/assets/images/releaf/icons/right_16.png +0 -0
  108. data/app/assets/images/releaf/icons/tick.png +0 -0
  109. data/app/assets/images/releaf/icons/warning.png +0 -0
  110. data/app/assets/images/releaf/icons/world_go.png +0 -0
  111. data/app/assets/images/releaf/icons/world_link.png +0 -0
  112. data/app/assets/images/releaf/input/autocompleteExpandIcon.png +0 -0
  113. data/app/assets/images/releaf/input/input_bgr.gif +0 -0
  114. data/app/assets/images/releaf/language_root.png +0 -0
  115. data/app/assets/images/releaf/loader.gif +0 -0
  116. data/app/assets/images/releaf/logout.png +0 -0
  117. data/app/assets/images/releaf/main_menu/active_bgr.png +0 -0
  118. data/app/assets/images/releaf/main_menu/bgr.png +0 -0
  119. data/app/assets/images/releaf/main_menu/hover_bgr.png +0 -0
  120. data/app/assets/images/releaf/module.png +0 -0
  121. data/app/assets/images/releaf/panel_layout/active_bgr.png +0 -0
  122. data/app/assets/images/releaf/panel_layout/secondary_panel_horizontal_bgr.png +0 -0
  123. data/app/assets/images/releaf/panel_layout/secondary_panel_vertical_bgr.png +0 -0
  124. data/app/assets/images/releaf/releaf_table/selected_bgr.png +0 -0
  125. data/app/assets/images/releaf/releaf_table/th_bgr.gif +0 -0
  126. data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/README.md +0 -73
  127. data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/jquery.cookie.js +0 -47
  128. data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/server.js +0 -24
  129. data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/test.html +0 -19
  130. data/app/assets/javascripts/releaf/3rd_party/jquery-cookie/test.js +0 -80
  131. data/app/assets/javascripts/releaf/3rd_party/jquery-ui-timepicker-addon.js +0 -1882
  132. data/app/assets/javascripts/releaf/3rd_party/lightbox.js.erb +0 -379
  133. data/app/assets/javascripts/releaf/application.js +0 -14
  134. data/app/assets/javascripts/releaf/controllers/base.js +0 -130
  135. data/app/assets/javascripts/releaf/controllers/releaf/content.js +0 -90
  136. data/app/assets/javascripts/releaf/controllers/releaf/translations.js +0 -31
  137. data/app/assets/javascripts/releaf/include/continuous_scroll.js +0 -321
  138. data/app/assets/javascripts/releaf/include/field.type_autocomplete.js +0 -58
  139. data/app/assets/javascripts/releaf/include/field.type_date_or_datetime_or_time.js +0 -43
  140. data/app/assets/javascripts/releaf/include/field.type_richtext.js +0 -90
  141. data/app/assets/javascripts/releaf/include/localization.js +0 -12
  142. data/app/assets/javascripts/releaf/include/nested_fields.js +0 -64
  143. data/app/assets/javascripts/releaf/include/sortable.js +0 -29
  144. data/app/assets/javascripts/releaf/lib/request_url.js +0 -183
  145. data/app/assets/stylesheets/releaf/3rd_party/jquery-ui-1.9.2.custom.css.erb +0 -464
  146. data/app/assets/stylesheets/releaf/3rd_party/jquery-ui-timepicker-addon.css +0 -10
  147. data/app/assets/stylesheets/releaf/3rd_party/lightbox.css.erb +0 -157
  148. data/app/assets/stylesheets/releaf/application.css.erb +0 -122
  149. data/app/assets/stylesheets/releaf/controllers/base.css.erb +0 -205
  150. data/app/assets/stylesheets/releaf/controllers/releaf/content.css.erb +0 -422
  151. data/app/assets/stylesheets/releaf/controllers/releaf/sessions.css.scss.erb +0 -116
  152. data/app/assets/stylesheets/releaf/controllers/releaf/translations.css.erb +0 -205
  153. data/app/assets/stylesheets/releaf/include/button.css.erb +0 -176
  154. data/app/assets/stylesheets/releaf/include/field.css.erb +0 -281
  155. data/app/assets/stylesheets/releaf/include/input.css.erb +0 -40
  156. data/app/assets/stylesheets/releaf/include/main_menu.css.erb +0 -66
  157. data/app/assets/stylesheets/releaf/include/pagination.css.erb +0 -29
  158. data/app/assets/stylesheets/releaf/include/panel_layout.css.erb +0 -251
  159. data/app/assets/stylesheets/releaf/include/releaf_table.css.erb +0 -112
  160. data/app/assets/stylesheets/releaf/include/sortable.css.erb +0 -12
  161. data/app/controllers/releaf/admins_controller.rb +0 -55
  162. data/app/controllers/releaf/application_controller.rb +0 -11
  163. data/app/controllers/releaf/base_application_controller.rb +0 -18
  164. data/app/controllers/releaf/base_controller.rb +0 -571
  165. data/app/controllers/releaf/content_controller.rb +0 -183
  166. data/app/controllers/releaf/roles_controller.rb +0 -38
  167. data/app/controllers/releaf/sessions_controller.rb +0 -27
  168. data/app/controllers/releaf/tinymce_assets_controller.rb +0 -26
  169. data/app/controllers/releaf/translations_controller.rb +0 -117
  170. data/app/helpers/releaf/admin_helper.rb +0 -59
  171. data/app/helpers/releaf/application_helper.rb +0 -4
  172. data/app/helpers/releaf/pagination_renderer.rb +0 -44
  173. data/app/helpers/releaf/releaf_devise_helper.rb +0 -8
  174. data/app/models/releaf/admin.rb +0 -60
  175. data/app/models/releaf/blank_node_base.rb +0 -29
  176. data/app/models/releaf/node.rb +0 -222
  177. data/app/models/releaf/node_base.rb +0 -31
  178. data/app/models/releaf/role.rb +0 -126
  179. data/app/models/releaf/tinymce_asset.rb +0 -6
  180. data/app/views/layouts/releaf/admin.html.haml +0 -57
  181. data/app/views/layouts/releaf/devise.html.haml +0 -32
  182. data/app/views/releaf/aliases/_edit.body.html.haml +0 -50
  183. data/app/views/releaf/aliases/_edit.header.html.haml +0 -19
  184. data/app/views/releaf/aliases/_index.row.html.haml +0 -5
  185. data/app/views/releaf/aliases/_secondary_panel.html.haml +0 -13
  186. data/app/views/releaf/base/_edit.body.html.haml +0 -11
  187. data/app/views/releaf/base/_edit.field.html.haml +0 -23
  188. data/app/views/releaf/base/_edit.field_type_autocomplete.html.haml +0 -15
  189. data/app/views/releaf/base/_edit.field_type_boolean.html.haml +0 -5
  190. data/app/views/releaf/base/_edit.field_type_date.html.haml +0 -8
  191. data/app/views/releaf/base/_edit.field_type_datetime.html.haml +0 -8
  192. data/app/views/releaf/base/_edit.field_type_delete_nested.html.haml +0 -3
  193. data/app/views/releaf/base/_edit.field_type_file.html.haml +0 -10
  194. data/app/views/releaf/base/_edit.field_type_image.html.haml +0 -12
  195. data/app/views/releaf/base/_edit.field_type_item.html.haml +0 -31
  196. data/app/views/releaf/base/_edit.field_type_link.html.haml +0 -4
  197. data/app/views/releaf/base/_edit.field_type_link_i18n.html.haml +0 -26
  198. data/app/views/releaf/base/_edit.field_type_password.html.haml +0 -4
  199. data/app/views/releaf/base/_edit.field_type_richtext.html.haml +0 -4
  200. data/app/views/releaf/base/_edit.field_type_richtext_i18n.html.haml +0 -27
  201. data/app/views/releaf/base/_edit.field_type_text.html.haml +0 -4
  202. data/app/views/releaf/base/_edit.field_type_text_i18n.html.haml +0 -27
  203. data/app/views/releaf/base/_edit.field_type_textarea.html.haml +0 -4
  204. data/app/views/releaf/base/_edit.field_type_textarea_i18n.html.haml +0 -27
  205. data/app/views/releaf/base/_edit.field_type_time.html.haml +0 -8
  206. data/app/views/releaf/base/_edit.fields.association.html.haml +0 -48
  207. data/app/views/releaf/base/_edit.fields.has_many_template.html.haml +0 -15
  208. data/app/views/releaf/base/_edit.fields.html.haml +0 -20
  209. data/app/views/releaf/base/_edit.footer.html.haml +0 -14
  210. data/app/views/releaf/base/_edit.form.html.haml +0 -4
  211. data/app/views/releaf/base/_edit.header.html.haml +0 -3
  212. data/app/views/releaf/base/_index.body.html.haml +0 -6
  213. data/app/views/releaf/base/_index.cell.html.haml +0 -20
  214. data/app/views/releaf/base/_index.footer.html.haml +0 -28
  215. data/app/views/releaf/base/_index.header.html.haml +0 -4
  216. data/app/views/releaf/base/_index.row.html.haml +0 -6
  217. data/app/views/releaf/base/_index.search.html.haml +0 -5
  218. data/app/views/releaf/base/_index.table.html.haml +0 -24
  219. data/app/views/releaf/base/_secondary_panel.html.haml +0 -10
  220. data/app/views/releaf/base/_show.body.html.haml +0 -3
  221. data/app/views/releaf/base/_show.field.html.haml +0 -20
  222. data/app/views/releaf/base/_show.field_type_date.html.haml +0 -9
  223. data/app/views/releaf/base/_show.field_type_date_time.html.haml +0 -9
  224. data/app/views/releaf/base/_show.field_type_email.html.haml +0 -6
  225. data/app/views/releaf/base/_show.field_type_file.html.haml +0 -7
  226. data/app/views/releaf/base/_show.field_type_image.html.haml +0 -10
  227. data/app/views/releaf/base/_show.field_type_item.html.haml +0 -11
  228. data/app/views/releaf/base/_show.field_type_link.html.haml +0 -14
  229. data/app/views/releaf/base/_show.field_type_password.html.haml +0 -6
  230. data/app/views/releaf/base/_show.field_type_richtext.html.haml +0 -6
  231. data/app/views/releaf/base/_show.field_type_text.html.haml +0 -6
  232. data/app/views/releaf/base/_show.field_type_textarea.html.haml +0 -6
  233. data/app/views/releaf/base/_show.field_type_time.html.haml +0 -9
  234. data/app/views/releaf/base/_show.field_type_url.html.haml +0 -7
  235. data/app/views/releaf/base/_show.fields.association.html.haml +0 -36
  236. data/app/views/releaf/base/_show.fields.has_many_template.html.haml +0 -12
  237. data/app/views/releaf/base/_show.fields.html.haml +0 -17
  238. data/app/views/releaf/base/_show.footer.html.haml +0 -18
  239. data/app/views/releaf/base/_show.header.html.haml +0 -3
  240. data/app/views/releaf/base/confirm_destroy.html.haml +0 -17
  241. data/app/views/releaf/base/edit.html.haml +0 -1
  242. data/app/views/releaf/base/index.html.haml +0 -3
  243. data/app/views/releaf/base/new.html.haml +0 -1
  244. data/app/views/releaf/base/show.html.haml +0 -3
  245. data/app/views/releaf/content/_edit.body.html.haml +0 -46
  246. data/app/views/releaf/content/_edit.content_fields.html.haml +0 -11
  247. data/app/views/releaf/content/_edit.fields.html.haml +0 -17
  248. data/app/views/releaf/content/_edit.slug.html.haml +0 -12
  249. data/app/views/releaf/content/_get_content_form.html.haml +0 -7
  250. data/app/views/releaf/content/_secondary_panel.html.haml +0 -3
  251. data/app/views/releaf/content/_tree_level.html.haml +0 -16
  252. data/app/views/releaf/content/ajax.new.html.haml +0 -3
  253. data/app/views/releaf/content/index.html.haml +0 -0
  254. data/app/views/releaf/roles/_edit.field.permissions.html.haml +0 -5
  255. data/app/views/releaf/roles/_show.field.default.html.haml +0 -6
  256. data/app/views/releaf/roles/_show.field.permissions.html.haml +0 -11
  257. data/app/views/releaf/sessions/new.html.haml +0 -17
  258. data/app/views/releaf/translations/_edit.body.html.haml +0 -50
  259. data/app/views/releaf/translations/_edit.header.html.haml +0 -19
  260. data/app/views/releaf/translations/_index.row.html.haml +0 -5
  261. data/app/views/releaf/translations/_secondary_panel.html.haml +0 -13
  262. data/bin/releaf +0 -25
  263. data/lib/generators/releaf/install_generator.rb +0 -87
  264. data/lib/generators/releaf/templates/config/common_fields.yml.example +0 -17
  265. data/lib/generators/releaf/templates/controllers/home_controller.rb +0 -4
  266. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  267. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  268. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  269. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  270. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  271. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  272. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  273. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  274. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_222222_256x240.png +0 -0
  275. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  276. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_454545_256x240.png +0 -0
  277. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_888888_256x240.png +0 -0
  278. data/lib/generators/releaf/templates/images/3rd_party/jquery_ui/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  279. data/lib/generators/releaf/templates/images/3rd_party/lightbox/close.png +0 -0
  280. data/lib/generators/releaf/templates/images/3rd_party/lightbox/loading.gif +0 -0
  281. data/lib/generators/releaf/templates/images/3rd_party/lightbox/next.png +0 -0
  282. data/lib/generators/releaf/templates/images/3rd_party/lightbox/prev.png +0 -0
  283. data/lib/generators/releaf/templates/initializers/releaf.rb +0 -20
  284. data/lib/generators/releaf/templates/initializers/releaf_i18n.rb +0 -25
  285. data/lib/generators/releaf/templates/initializers/releaf_store_current_template.rb +0 -25
  286. data/lib/generators/releaf/templates/javascripts/3rd_party/jquery.jcarousel.js +0 -1058
  287. data/lib/generators/releaf/templates/javascripts/3rd_party/jquery_ui.js +0 -14850
  288. data/lib/generators/releaf/templates/javascripts/3rd_party/lightbox.js.erb +0 -379
  289. data/lib/generators/releaf/templates/javascripts/application.js +0 -15
  290. data/lib/generators/releaf/templates/javascripts/lib/init_jcarousel.js +0 -40
  291. data/lib/generators/releaf/templates/javascripts/lib/js_check.js +0 -8
  292. data/lib/generators/releaf/templates/javascripts/lib/request_url.js +0 -169
  293. data/lib/generators/releaf/templates/javascripts/lib/sortable.js +0 -29
  294. data/lib/generators/releaf/templates/migrations/create_releaf_admins.rb +0 -53
  295. data/lib/generators/releaf/templates/migrations/create_releaf_nodes.rb +0 -25
  296. data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +0 -12
  297. data/lib/generators/releaf/templates/migrations/create_releaf_tinymce_assets.rb +0 -11
  298. data/lib/generators/releaf/templates/migrations/create_releaf_translations.rb +0 -31
  299. data/lib/generators/releaf/templates/models/admin_ability.rb +0 -51
  300. data/lib/generators/releaf/templates/seeds.rb +0 -64
  301. data/lib/generators/releaf/templates/stylesheets/3rd_party/jquery_ui/smoothness.css.erb +0 -1174
  302. data/lib/generators/releaf/templates/stylesheets/3rd_party/lightbox.css.erb +0 -157
  303. data/lib/generators/releaf/templates/stylesheets/3rd_party/reset.css +0 -48
  304. data/lib/generators/releaf/templates/stylesheets/application.scss +0 -15
  305. data/lib/generators/releaf/templates/stylesheets/style.scss +0 -45
  306. data/lib/generators/releaf/templates/views/home/index.html.haml +0 -1
  307. data/lib/generators/releaf/templates/views/layouts/application.html.haml +0 -26
  308. data/lib/i18n/backend/releaf.rb +0 -97
  309. data/lib/i18n/backend/releaf/translation.rb +0 -61
  310. data/lib/i18n/backend/releaf/translation_data.rb +0 -39
  311. data/lib/i18n/backend/releaf/translation_group.rb +0 -34
  312. data/lib/i18n/releaf.rb +0 -1
  313. data/lib/releaf/boolean_at.rb +0 -77
  314. data/lib/releaf/engine.rb +0 -4
  315. data/lib/releaf/globalize3/fallbacks.rb +0 -19
  316. data/lib/releaf/resources.rb +0 -101
  317. data/lib/releaf/slug.rb +0 -118
  318. data/lib/releaf/version.rb +0 -3
  319. data/lib/tasks/releaf_tasks.rake +0 -4
  320. data/spec/factories/factories.rb +0 -24
  321. data/spec/features/admin_spec.rb +0 -41
  322. data/templates/releaf/installer.rb +0 -207
@@ -1,422 +0,0 @@
1
- .controller-releaf-content .secondary_panel
2
- {
3
- width: 23%;
4
- }
5
- .controller-releaf-content .secondary_panel .actions_toolbar
6
- {
7
- background-color: rgba(255, 255, 255, 0.2);
8
- border-color:
9
- #DBDCDF
10
- #CECFD2
11
- #C6C9D0;
12
- border-style: solid;
13
- border-width: 0 1px 1px 0;
14
- padding: 5px 5px 2px;
15
- margin-bottom: 5px;
16
- }
17
- .controller-releaf-content .secondary_panel .tree_container
18
- {
19
- position: absolute;
20
- top: 0;
21
- left: 0;
22
- right: 0;
23
- bottom: 0;
24
- overflow: auto;
25
-
26
- border: 1px solid #ABABAB;
27
- border-width: 0 1px 0px 0;
28
- outline: none;
29
- -moz-transition: bottom ease-out 0.2s;
30
- -webkit-transition: bottom ease-out 0.2s;
31
- transition: bottom ease-out 0.2s;
32
- z-index: 2;
33
-
34
- background: url("<%= asset_path 'releaf/panel_layout/secondary_panel_vertical_bgr.png' %>") repeat-y scroll left top #D6D7DA;
35
- }
36
- .controller-releaf-content .secondary_panel .tree_container .inner > ul
37
- {
38
- background-color: white;
39
- }
40
- .controller-releaf-content .tree_container .node
41
- {
42
- min-height: 25px;
43
- border-bottom: 1px solid #fff;
44
- background-color: #bce0b2;
45
- position: relative;
46
- padding-right: 20px;
47
- }
48
- .controller-releaf-content .tree_container .node a
49
- {
50
- text-decoration: none;
51
- }
52
- .controller-releaf-content .tree_container .node .create
53
- {
54
- position: absolute;
55
- top: 4px;
56
- right: 4px;
57
- opacity: 0.5;
58
- }
59
- .controller-releaf-content .tree_container .node .create:hover
60
- {
61
- opacity: 1;
62
- }
63
- .controller-releaf-content .tree_container .node input
64
- {
65
- margin-left: 7px;
66
- margin-right: 3px;
67
- vertical-align: -12%;
68
- }
69
- .controller-releaf-content .tree_container .node .toggle
70
- {
71
- display: inline-block;
72
- width: 20px;
73
- text-indent: -9999px;
74
- }
75
- .controller-releaf-content .tree_container .node button.toggle
76
- {
77
- background: transparent url("<%= asset_path 'releaf/controllers/content/open_2.gif' %>") no-repeat center center;
78
- vertical-align: -20%;
79
- }
80
- .controller-releaf-content .tree_container .node button.toggle:hover
81
- {
82
- background-image: url("<%= asset_path 'releaf/controllers/content/open_hover.gif' %>");
83
- }
84
- .controller-releaf-content .tree_container .node button.toggle:active
85
- {
86
- background-image: url("<%= asset_path 'releaf/controllers/content/open_active.gif' %>");
87
- }
88
- .controller-releaf-content .tree_container .node button.toggle.open
89
- {
90
- background-image: url("<%= asset_path 'releaf/controllers/content/close.gif' %>");
91
- }
92
- .controller-releaf-content .tree_container .node button.toggle.open:hover
93
- {
94
- background-image: url("<%= asset_path 'releaf/controllers/content/close_hover.gif' %>");
95
- }
96
- .controller-releaf-content .tree_container .node button.toggle.open:active
97
- {
98
- background-image: url("<%= asset_path 'releaf/controllers/content/close_active.gif' %>");
99
- }
100
- .controller-releaf-content .tree_container .node .edit
101
- {
102
- position: absolute;
103
- top: 0;
104
- right: 25px;
105
- bottom: 0;
106
- left: 43px;
107
- padding-top: 2px;
108
- overflow: hidden;
109
- white-space: nowrap;
110
- text-overflow: ellipsis;
111
- }
112
- .controller-releaf-content .tree_container .node .edit img
113
- {
114
- vertical-align: -20%;
115
- margin-right: 4px;
116
- }
117
- .controller-releaf-content .tree_container .node .edit:hover span
118
- {
119
- border-bottom: 1px solid gray;
120
- }
121
- .controller-releaf-content .tree_container .node.active .edit
122
- {
123
- font-weight: bold;
124
- }
125
-
126
-
127
- .controller-releaf-content .primary_panel .global_fields
128
- {
129
- border-bottom: 1px solid white;
130
- padding: 10px 5px 0;
131
- background: transparent url("<%= asset_path 'releaf/controllers/content/global_fields_bgr.png' %>") repeat-x bottom left;
132
- position: relative;
133
- }
134
- .controller-releaf-content .global_fields .field
135
- {
136
- display: inline-block;
137
- vertical-align: top;
138
- }
139
- .controller-releaf-content .global_fields .field[data-name="name"],
140
- .controller-releaf-content .global_fields .field[data-name="slug"]
141
- {
142
- width: 400px;
143
- }
144
- .controller-releaf-content .global_fields .field[data-name="visible"]
145
- {
146
- margin-left: 80px;
147
- }
148
- .controller-releaf-content .global_fields .label_wrap
149
- {
150
- float: none;
151
- display: inline-block;
152
- width: auto;
153
- vertical-align: top;
154
- min-width: 80px;
155
- padding-right: 0;
156
- }
157
- .controller-releaf-content .global_fields .value
158
- {
159
- margin-left: 0;
160
- display: inline-block;
161
- }
162
- .controller-releaf-content .global_fields .value span
163
- {
164
- padding-top: 2px;
165
- display: inline-block;
166
- }
167
- .controller-releaf-content .global_fields select
168
- {
169
- width: 158px;
170
- }
171
- .controller-releaf-content .global_fields input[type="checkbox"] + label
172
- {
173
- font-weight: bold;
174
- }
175
- .controller-releaf-content .global_fields .field[data-name="slug"] button
176
- {
177
- margin-left: -21px;
178
- vertical-align: 15%;
179
- }
180
- .controller-releaf-content .global_fields .field[data-name="slug"] a
181
- {
182
- color: #888888;
183
- margin-top: 3px;
184
- display: inline-block;
185
- }
186
- .controller-releaf-content .global_fields .field[data-name="slug"] a span
187
- {
188
- color: black;
189
- }
190
-
191
-
192
- #objectsSidebar {
193
- height: 100%;
194
- }
195
-
196
-
197
- #objectTools {
198
- height: 30px;
199
- }
200
-
201
-
202
- #objectTools li {
203
- display: inline;
204
- }
205
-
206
- #objectTools button {
207
- /* width: 32.6%; */
208
- width: 25.1%;
209
- margin-right: 1%;
210
- }
211
-
212
- #objectTools li.last button {
213
- margin-right: 0;
214
- }
215
-
216
-
217
- #objectsTree ul {
218
- list-style: none;
219
- padding: 0;
220
- margin: 0;
221
- }
222
-
223
- #objectsTree li {
224
- padding: 0;
225
- margin: 0;
226
- clear: both;
227
- display: block;
228
- }
229
-
230
- #objectsTree li .objectLiDiv {
231
- min-height: 25px;
232
- border-bottom: 1px solid
233
- #fff;
234
- background-color:
235
- #bce0b2;
236
- }
237
-
238
- #objectForm .objectLiDiv:hover .objectPanelHref {
239
- opacity: 1;
240
- }
241
-
242
- #objectForm .objectPanelHref {
243
- margin: 4px 4px 0 0;
244
- float: right;
245
- opacity: .5;
246
- }
247
-
248
- #objectForm .objectCheck {
249
- float: left;
250
- display: block;
251
- width: 23px;
252
- height: 20px;
253
- text-align: right;
254
- padding-top: 3px;
255
- }
256
-
257
- #objectsTree .groupBox {
258
- float: left;
259
- width: 20px;
260
- background-repeat: no-repeat;
261
- background-position: center;
262
- height: 25px;
263
- border: none;
264
- background-color:
265
- transparent;
266
- border-radius: 0;
267
- display: inline;
268
- }
269
-
270
- .objectsTree .groupBoxOpen {
271
- background-image: url("<%= asset_path 'releaf/content/open.gif' %>") ;
272
- }
273
-
274
-
275
- #objectsTree .objectHref {
276
- display: block;
277
- padding: 2px 3px 0 3px;
278
- }
279
-
280
- #objectsTree .objectHref a {
281
- text-decoration: none;
282
- margin: 0 1px;
283
- color: #000;
284
- }
285
-
286
- #objectsTree .objectHref a img {
287
- vertical-align: -20%;
288
- margin-right: 4px;
289
- }
290
-
291
-
292
-
293
-
294
- .collapsableSection .toggleSection {
295
- position: absolute;
296
- top: 4px;
297
- right: 3px;
298
- }
299
-
300
- .globalFieldContainer .label_wrap {
301
- margin: 0;
302
- padding: 3px 0;
303
- display: inline-block;
304
- min-width: 80px;
305
- text-align: right;
306
- }
307
-
308
- .objectNameContainer div {
309
- margin: 4px 0 3px;
310
- padding: 3px;
311
- }
312
-
313
-
314
- .globalFieldContainer .nameWrap, .globalFieldContainer .templateWrap, .globalFieldContainer .rewriteNameWrap, .globalFieldContainer .orderNoWrap, .globalFieldContainer .snapshotsWrap {
315
- width: 400px;
316
- float: left;
317
- }
318
-
319
- .globalFieldContainer .templateField {
320
- border-bottom: none;
321
- }
322
-
323
- .objectNameContainer {
324
- position: relative;
325
- }
326
-
327
- .body {
328
- padding: 5px 5px 50px 5px;
329
- }
330
-
331
- .templateField, #objectEditForm li {
332
- padding: 0 0 10px 0;
333
- border-bottom: 1px dotted
334
- #999;
335
- }
336
-
337
- #objectEditForm .globalFieldContainer label {
338
- display: inline;
339
- margin: 0;
340
- padding: 0;
341
- }
342
-
343
- #objectEditForm label {
344
- display: block;
345
- font-weight: bold;
346
- margin: 4px 0 3px 0;
347
- padding: 3px;
348
- font-size: 100%;
349
- }
350
-
351
- .globalFieldContainer .rewriteNameWrap button {
352
- margin-left: -28px;
353
- vertical-align: -25%;
354
- padding-right: 1px;
355
- }
356
-
357
- .globalFieldContainer .rewriteNameWrap input {
358
- padding-right: 23px;
359
- width: 230px;
360
- }
361
-
362
- .globalFieldContainer .visibleWrap {
363
- margin-left: 84px;
364
- }
365
-
366
- #objectEditForm .visibleWrap {
367
- margin-right: 60px;
368
- }
369
-
370
- #objectEditForm .sideLabel {
371
- float: left;
372
- }
373
-
374
- .duplicateRewriteNameWarning {
375
- display: none;
376
- margin: 0 0 0 6px;
377
- position: relative;
378
- top: 3px;
379
- }
380
-
381
-
382
-
383
- .controller-releaf-content #new_object_menu_wrapper {
384
- position: relative;
385
- }
386
- .controller-releaf-content #new_object_menu {
387
- position: absolute;
388
- top: 10px;
389
- left: 268px;
390
- background-color: #BCE0B0;
391
- /* z-index: 10; */
392
- border-left-color: 1px solid white;
393
- border-bottom-color: 1px solid white;
394
- box-shadow: 0px 2px 3px rgba(0, 0, 0, .8);
395
- }
396
- .controller-releaf-content #new_object_menu li {
397
- border-bottom: 1px solid white;
398
- }
399
- .controller-releaf-content #new_object_menu a {
400
- display: block;
401
- padding: 5px 10px;
402
- color: black;
403
- }
404
-
405
- .controller-releaf-content .nested_object .field .label_wrap {
406
- width: auto;
407
- float: none;
408
- text-align: left;
409
- }
410
- .controller-releaf-content .nested_object .field .value {
411
- margin-left: 0;
412
- }
413
- .controller-releaf-content .nested_object .field {
414
- border-bottom: 1px dotted #DDD;
415
- margin: 0;
416
- }
417
- .controller-releaf-content .field .object_url {
418
- padding-left: 85px;
419
- }
420
- .controller-releaf-content .field .object_url a {
421
- white-space: nowrap;
422
- }
@@ -1,116 +0,0 @@
1
- body
2
- {
3
- background-color: #f4f9f2;
4
- }
5
- .controller-releaf-sessions.action-new
6
- {
7
- color: #96ae8f;
8
- font-family: Arial, sans-serif;
9
- }
10
- .controller-releaf-sessions.action-new .login_form_container
11
- {
12
- position: absolute;
13
- left: 0;
14
- right: 0;
15
- top: 50%;
16
- width: 355px;
17
- height: 259px;
18
- margin: -192px auto 0;
19
- padding: 63px 43px 0 43px;
20
- background: transparent url("<%= asset_path 'releaf/controllers/sessions/background.jpg' %>") no-repeat 0 0;
21
- }
22
- @media screen and (min-height: 550px)
23
- {
24
- .controller-releaf-sessions.action-new .login_form_container
25
- {
26
- top: 40%;
27
- }
28
- }
29
- .controller-releaf-sessions.action-new .login_form
30
- {
31
- background-color: white;
32
- padding: 23px 32px 0px 29px;
33
- height: 226px;
34
- position: relative;
35
- }
36
- .controller-releaf-sessions.action-new .copy
37
- {
38
- font-size: 90%;
39
- color: #c7d4c3;
40
- font-family: arial narrow, arial, sans-serif;
41
- position: absolute;
42
- left: 10px;
43
- bottom: 6px;
44
- }
45
- .controller-releaf-sessions.action-new .copy a
46
- {
47
- color: inherit;
48
- }
49
- .controller-releaf-sessions.action-new .logo_container
50
- {
51
- height: 68px;
52
- }
53
- .controller-releaf-sessions.action-new .inputs
54
- {
55
- text-align: right;
56
- }
57
- .controller-releaf-sessions.action-new label
58
- {
59
- display: block;
60
- text-transform: uppercase;
61
- margin-bottom: 10px;
62
- }
63
- .controller-releaf-sessions.action-new .inputs span
64
- {
65
- vertical-align: 5%;
66
- }
67
- .controller-releaf-sessions.action-new .inputs input
68
- {
69
- width: 190px;
70
- margin-left: 2px;
71
- padding: 3px 7px 4px;
72
- font-family: verdana, arial, sans-serif;
73
- font-size: 130%;
74
- }
75
- .controller-releaf-sessions.action-new button[type="submit"]
76
- {
77
- margin-left: 81px;
78
- }
79
-
80
-
81
-
82
- .controller-releaf-sessions .browser-notice
83
- {
84
- margin-top: 21px;
85
- padding-right: 44px;
86
- text-align: right;
87
- }
88
- .controller-releaf-sessions .browser-notice .browsers,
89
- .controller-releaf-sessions .browser-notice .browsers li
90
- {
91
- list-style: none ;
92
- margin: 0;
93
- padding: 0;
94
- display: inline;
95
- }
96
-
97
- .controller-releaf-sessions .browser-notice a
98
- {
99
- text-decoration: none;
100
- }
101
- .controller-releaf-sessions .browser-notice img
102
- {
103
- vertical-align: middle;
104
- margin-left: 8px;
105
- opacity: 0.7;
106
- }
107
- .controller-releaf-sessions .browser-notice a:hover img
108
- {
109
- opacity: 1;
110
- }
111
-
112
- .controller-releaf-sessions .actions
113
- {
114
- padding-top: 10px;
115
- text-align: right;
116
- }