jc_cms 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/images/jc_cms/ok.png +0 -0
  5. data/app/assets/javascripts/jc_cms/application.js +16 -0
  6. data/app/assets/javascripts/jc_cms/bootstrap.js.coffee +4 -0
  7. data/app/assets/javascripts/jc_cms/dashboard/dashboard.js +2 -0
  8. data/app/assets/javascripts/jc_cms/dashboard/pages.js.coffee +3 -0
  9. data/app/assets/javascripts/jc_cms/home.js.coffee +3 -0
  10. data/app/assets/stylesheets/jc_cms/application.css +18 -0
  11. data/app/assets/stylesheets/jc_cms/bootstrap_and_overrides.css.less +34 -0
  12. data/app/assets/stylesheets/jc_cms/bootswatch.css.less +181 -0
  13. data/app/assets/stylesheets/jc_cms/dashboard/dashboard.css +4 -0
  14. data/app/assets/stylesheets/jc_cms/dashboard/pages.css.scss +3 -0
  15. data/app/assets/stylesheets/jc_cms/home.css.scss +3 -0
  16. data/app/assets/stylesheets/jc_cms/variables.css.less +301 -0
  17. data/app/cells/page/show.html.haml +4 -0
  18. data/app/cells/page_cell.rb +7 -0
  19. data/app/cells/pages_menu/show.html.haml +7 -0
  20. data/app/cells/pages_menu_cell.rb +8 -0
  21. data/app/controllers/jc_cms/application_controller.rb +17 -0
  22. data/app/controllers/jc_cms/dashboard/dashboard_controller.rb +10 -0
  23. data/app/controllers/jc_cms/dashboard/pages_controller.rb +42 -0
  24. data/app/controllers/jc_cms/home_controller.rb +6 -0
  25. data/app/helpers/jc_cms/application_helper.rb +4 -0
  26. data/app/helpers/jc_cms/dashboard/dashboard_helper.rb +4 -0
  27. data/app/models/ckeditor/asset.rb +7 -0
  28. data/app/models/ckeditor/attachment_file.rb +7 -0
  29. data/app/models/ckeditor/picture.rb +7 -0
  30. data/app/models/jc_cms/page.rb +11 -0
  31. data/app/models/jc_cms/user.rb +13 -0
  32. data/app/uploaders/ckeditor_attachment_file_uploader.rb +44 -0
  33. data/app/uploaders/ckeditor_picture_uploader.rb +55 -0
  34. data/app/views/jc_cms/dashboard/dashboard/index.html.erb +1 -0
  35. data/app/views/jc_cms/dashboard/pages/_form.html.haml +14 -0
  36. data/app/views/jc_cms/dashboard/pages/edit.html.haml +2 -0
  37. data/app/views/jc_cms/dashboard/pages/index.html.haml +25 -0
  38. data/app/views/jc_cms/dashboard/pages/new.html.haml +2 -0
  39. data/app/views/jc_cms/dashboard/pages/show.html.haml +2 -0
  40. data/app/views/jc_cms/home/index.html.haml +1 -0
  41. data/app/views/jc_cms/users/confirmations/new.html.erb +15 -0
  42. data/app/views/jc_cms/users/mailer/confirmation_instructions.html.erb +5 -0
  43. data/app/views/jc_cms/users/mailer/reset_password_instructions.html.erb +8 -0
  44. data/app/views/jc_cms/users/mailer/unlock_instructions.html.erb +7 -0
  45. data/app/views/jc_cms/users/passwords/edit.html.erb +19 -0
  46. data/app/views/jc_cms/users/passwords/new.html.erb +15 -0
  47. data/app/views/jc_cms/users/registrations/edit.html.erb +22 -0
  48. data/app/views/jc_cms/users/registrations/new.html.erb +17 -0
  49. data/app/views/jc_cms/users/sessions/new.html.erb +13 -0
  50. data/app/views/jc_cms/users/shared/_links.erb +25 -0
  51. data/app/views/jc_cms/users/unlocks/new.html.erb +15 -0
  52. data/app/views/layouts/jc_cms/application.html.erb +90 -0
  53. data/app/views/layouts/jc_cms/jc_cms.html.erb +86 -0
  54. data/config/application.rb +63 -0
  55. data/config/boot.rb +6 -0
  56. data/config/environment.rb +5 -0
  57. data/config/initializers/backtrace_silencers.rb +7 -0
  58. data/config/initializers/ckeditor.rb +18 -0
  59. data/config/initializers/devise.rb +233 -0
  60. data/config/initializers/inflections.rb +15 -0
  61. data/config/initializers/mime_types.rb +5 -0
  62. data/config/initializers/simple_form.rb +142 -0
  63. data/config/initializers/simple_form_bootstrap.rb +45 -0
  64. data/config/initializers/wrap_parameters.rb +14 -0
  65. data/config/locales/devise.en.yml +58 -0
  66. data/config/locales/devise.pl.yml +62 -0
  67. data/config/locales/en.yml +5 -0
  68. data/config/locales/pl.yml +246 -0
  69. data/config/locales/simple_form.en.yml +26 -0
  70. data/config/locales/simple_form.pl.yml +36 -0
  71. data/config/routes.rb +14 -0
  72. data/db/migrate/20121107230840_create_pages.rb +20 -0
  73. data/db/migrate/20121112234336_create_ckeditor_assets.rb +26 -0
  74. data/db/migrate/20121118205852_devise_create_cms_users.rb +46 -0
  75. data/lib/jc_cms/engine.rb +5 -0
  76. data/lib/jc_cms/version.rb +3 -0
  77. data/lib/jc_cms.rb +4 -0
  78. data/lib/tasks/jc_cms_tasks.rake +4 -0
  79. data/test/dummy/README.rdoc +261 -0
  80. data/test/dummy/Rakefile +7 -0
  81. data/test/dummy/app/assets/javascripts/application.js +15 -0
  82. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  83. data/test/dummy/app/controllers/application_controller.rb +3 -0
  84. data/test/dummy/app/helpers/application_helper.rb +2 -0
  85. data/test/dummy/app/models/ckeditor/asset.rb +7 -0
  86. data/test/dummy/app/models/ckeditor/attachment_file.rb +7 -0
  87. data/test/dummy/app/models/ckeditor/picture.rb +7 -0
  88. data/test/dummy/app/uploaders/ckeditor_attachment_file_uploader.rb +42 -0
  89. data/test/dummy/app/uploaders/ckeditor_picture_uploader.rb +53 -0
  90. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  91. data/test/dummy/config/application.rb +60 -0
  92. data/test/dummy/config/boot.rb +10 -0
  93. data/test/dummy/config/database.yml +25 -0
  94. data/test/dummy/config/environment.rb +5 -0
  95. data/test/dummy/config/environments/development.rb +37 -0
  96. data/test/dummy/config/environments/production.rb +67 -0
  97. data/test/dummy/config/environments/test.rb +37 -0
  98. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  99. data/test/dummy/config/initializers/ckeditor.rb +18 -0
  100. data/test/dummy/config/initializers/inflections.rb +15 -0
  101. data/test/dummy/config/initializers/mime_types.rb +5 -0
  102. data/test/dummy/config/initializers/secret_token.rb +7 -0
  103. data/test/dummy/config/initializers/session_store.rb +8 -0
  104. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  105. data/test/dummy/config/locales/en.yml +5 -0
  106. data/test/dummy/config/routes.rb +6 -0
  107. data/test/dummy/config.ru +4 -0
  108. data/test/dummy/db/development.sqlite3 +0 -0
  109. data/test/dummy/db/migrate/20121216213708_create_locations.jc_cms.rb +15 -0
  110. data/test/dummy/db/migrate/20121216213709_create_pages.jc_cms.rb +22 -0
  111. data/test/dummy/db/migrate/20121216213710_create_ckeditor_assets.jc_cms.rb +27 -0
  112. data/test/dummy/db/migrate/20121216213711_devise_create_cms_users.jc_cms.rb +47 -0
  113. data/test/dummy/db/migrate/20121216224201_create_ckeditor_assets.rb +26 -0
  114. data/test/dummy/db/schema.rb +70 -0
  115. data/test/dummy/log/development.log +21503 -0
  116. data/test/dummy/public/404.html +26 -0
  117. data/test/dummy/public/422.html +26 -0
  118. data/test/dummy/public/500.html +25 -0
  119. data/test/dummy/public/favicon.ico +0 -0
  120. data/test/dummy/public/uploads/ckeditor/pictures/1/Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  121. data/test/dummy/public/uploads/ckeditor/pictures/1/content_Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  122. data/test/dummy/public/uploads/ckeditor/pictures/1/thumb_Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  123. data/test/dummy/public/uploads/ckeditor/pictures/2/Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  124. data/test/dummy/public/uploads/ckeditor/pictures/2/content_Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  125. data/test/dummy/public/uploads/ckeditor/pictures/2/thumb_Zrzut_ekranu_z_2012-11-13_22_39_26.png +0 -0
  126. data/test/dummy/script/rails +6 -0
  127. data/test/dummy/tmp/cache/assets/C07/8C0/sprockets%2F64646b098528c9808ce15815c4496607 +0 -0
  128. data/test/dummy/tmp/cache/assets/C09/B90/sprockets%2F72126398325c80c78fd6678718473a84 +0 -0
  129. data/test/dummy/tmp/cache/assets/C46/520/sprockets%2Fee0865a4980d56313339e053a1218f20 +0 -0
  130. data/test/dummy/tmp/cache/assets/C59/490/sprockets%2F9600e95c2208a04b71582af3e8688854 +0 -0
  131. data/test/dummy/tmp/cache/assets/C5A/E90/sprockets%2F6d94f48b07e6690559f54061152154fa +0 -0
  132. data/test/dummy/tmp/cache/assets/C5D/6E0/sprockets%2F27494740406c86656742cf4e3128b9ce +0 -0
  133. data/test/dummy/tmp/cache/assets/C5E/310/sprockets%2Ff149155a6c5a09834cf158617963676a +0 -0
  134. data/test/dummy/tmp/cache/assets/C64/7E0/sprockets%2F4347701f6cd7118799d285377f38a5d2 +0 -0
  135. data/test/dummy/tmp/cache/assets/C66/760/sprockets%2Fc335e045119111f98632e9f62f6888f8 +0 -0
  136. data/test/dummy/tmp/cache/assets/C67/FE0/sprockets%2F67f52995585deb28a55c25394d601757 +0 -0
  137. data/test/dummy/tmp/cache/assets/C79/540/sprockets%2Fd40ecc5f0532937936b7c83101e43614 +0 -0
  138. data/test/dummy/tmp/cache/assets/C87/890/sprockets%2F6093c36edd443ed062379a9966c55023 +0 -0
  139. data/test/dummy/tmp/cache/assets/C8B/D60/sprockets%2Fa42a3175cd067427e36648605ee69f84 +0 -0
  140. data/test/dummy/tmp/cache/assets/C8E/6E0/sprockets%2Fa8b21b14c23c038a2473c2b58304530c +0 -0
  141. data/test/dummy/tmp/cache/assets/C92/500/sprockets%2F1058b7805167e75c2b97121d78e97de7 +0 -0
  142. data/test/dummy/tmp/cache/assets/CA3/130/sprockets%2F469beac37850c6141bf41882018b601b +0 -0
  143. data/test/dummy/tmp/cache/assets/CA7/3B0/sprockets%2Ffd1e83a3755907b8a606f30a41307a19 +0 -0
  144. data/test/dummy/tmp/cache/assets/CB0/F70/sprockets%2Fd9043423e669960cf03ae665c5b427a3 +0 -0
  145. data/test/dummy/tmp/cache/assets/CB4/4B0/sprockets%2F5847a771ed4b27500f51e73a91e6b934 +0 -0
  146. data/test/dummy/tmp/cache/assets/CB9/650/sprockets%2Fec2d52e0987701dd208d18c8996e3351 +0 -0
  147. data/test/dummy/tmp/cache/assets/CBB/D10/sprockets%2F1b2c89754d436451d980455e8fca09a7 +0 -0
  148. data/test/dummy/tmp/cache/assets/CBB/F10/sprockets%2F5ebb0567b58c43c0773b686546b295c8 +0 -0
  149. data/test/dummy/tmp/cache/assets/CC7/A50/sprockets%2F81f095124c73bdb22433c6a65a3d10c3 +0 -0
  150. data/test/dummy/tmp/cache/assets/CC9/B70/sprockets%2Ff9856126986468185e48fbc6b2da155e +0 -0
  151. data/test/dummy/tmp/cache/assets/CCD/E70/sprockets%2Fb6162d50af74a01c7cd2565082d3e181 +0 -0
  152. data/test/dummy/tmp/cache/assets/CD0/070/sprockets%2F5412439eb13284f0a3b08c28273febd1 +0 -0
  153. data/test/dummy/tmp/cache/assets/CD0/5B0/sprockets%2F681bb88d099369e235d531892e9d9a8f +0 -0
  154. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  155. data/test/dummy/tmp/cache/assets/CD9/D10/sprockets%2F33ba9401ac4819f676d06ea642e614d3 +0 -0
  156. data/test/dummy/tmp/cache/assets/CDE/F50/sprockets%2Fa7e186ae00816cf344cae8394246a087 +0 -0
  157. data/test/dummy/tmp/cache/assets/CDF/0D0/sprockets%2Fe45b3bd832715a12e9c1f6cc91470838 +0 -0
  158. data/test/dummy/tmp/cache/assets/CE2/8E0/sprockets%2F9b322b80baee847d191297c1be634863 +0 -0
  159. data/test/dummy/tmp/cache/assets/CE4/0B0/sprockets%2F58e822726dd1560cff2cd626542c5c74 +0 -0
  160. data/test/dummy/tmp/cache/assets/CE9/8E0/sprockets%2Fd2c16c246539568db289da6c98fc1026 +0 -0
  161. data/test/dummy/tmp/cache/assets/CEB/010/sprockets%2F84229e36d60efb34c64354c4c9eb3938 +0 -0
  162. data/test/dummy/tmp/cache/assets/CEC/D50/sprockets%2F92c13f7d07456dad81dd5246bd859349 +0 -0
  163. data/test/dummy/tmp/cache/assets/CEE/CA0/sprockets%2Feda89fff0c47312925a8918192e178c2 +0 -0
  164. data/test/dummy/tmp/cache/assets/CEF/E90/sprockets%2F92f31af9445568181cf8068a5a5a9f4e +0 -0
  165. data/test/dummy/tmp/cache/assets/CF4/520/sprockets%2F1114f42d76e827c6a9758966bf9dbb45 +0 -0
  166. data/test/dummy/tmp/cache/assets/D00/DB0/sprockets%2F88e2ffc1c52a23d43921baf530d71315 +0 -0
  167. data/test/dummy/tmp/cache/assets/D01/170/sprockets%2F0b5555cc3795f64eaaab40272c9a0443 +0 -0
  168. data/test/dummy/tmp/cache/assets/D03/780/sprockets%2F397bfee3e1000d0581f8c375bb0245a7 +0 -0
  169. data/test/dummy/tmp/cache/assets/D03/C60/sprockets%2F97f47db90e6fc62c4d7c6387828397d5 +0 -0
  170. data/test/dummy/tmp/cache/assets/D08/060/sprockets%2F69dde8caa562064090b325ae8045bc92 +0 -0
  171. data/test/dummy/tmp/cache/assets/D09/2C0/sprockets%2F360a0f84dbf6b2a3106df55d0d881469 +0 -0
  172. data/test/dummy/tmp/cache/assets/D0D/560/sprockets%2Fae539b122faaf679d9e32247e050682a +0 -0
  173. data/test/dummy/tmp/cache/assets/D0F/C80/sprockets%2F5780677e72a94f1af9da0e24a30e84c0 +0 -0
  174. data/test/dummy/tmp/cache/assets/D11/0A0/sprockets%2Ff05fb4198cd543304f9cd14a412be969 +0 -0
  175. data/test/dummy/tmp/cache/assets/D11/DA0/sprockets%2F601da0adf47d60282972e473b64eeb97 +0 -0
  176. data/test/dummy/tmp/cache/assets/D15/2C0/sprockets%2Fdeb34df73f715b491c843655606b06ee +0 -0
  177. data/test/dummy/tmp/cache/assets/D17/690/sprockets%2Fa75ae0c2703ef284758d27620f84ef6d +0 -0
  178. data/test/dummy/tmp/cache/assets/D1E/950/sprockets%2F91d9e2e8575267cea4a2cb342669d67c +0 -0
  179. data/test/dummy/tmp/cache/assets/D20/670/sprockets%2F5f24e9ae131b4909f779ead84d4474a7 +0 -0
  180. data/test/dummy/tmp/cache/assets/D28/AA0/sprockets%2Fe9f5960dc9465591182cd6c1ff1a98c8 +0 -0
  181. data/test/dummy/tmp/cache/assets/D2A/1B0/sprockets%2F042e74be6a1c2862c1fbdd433a1127d6 +0 -0
  182. data/test/dummy/tmp/cache/assets/D2A/5F0/sprockets%2Ff4dcb9ce765ea4667a6925613c68289f +0 -0
  183. data/test/dummy/tmp/cache/assets/D2C/CB0/sprockets%2F12d3089b5b4aed1055b9413ee05cfd04 +0 -0
  184. data/test/dummy/tmp/cache/assets/D2F/6A0/sprockets%2Fbe0da0721240eba9ec280c3f65595d42 +0 -0
  185. data/test/dummy/tmp/cache/assets/D30/BA0/sprockets%2F7434264acdbb0a912f2325a92dd625ee +0 -0
  186. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  187. data/test/dummy/tmp/cache/assets/D36/A00/sprockets%2F794a48f8e74df2f775ab5e289f385a87 +0 -0
  188. data/test/dummy/tmp/cache/assets/D36/C00/sprockets%2F31d5b05a9ef64c11c99038b8f3ea024c +0 -0
  189. data/test/dummy/tmp/cache/assets/D39/370/sprockets%2F8617aa36e80a726daf01548abecf7514 +0 -0
  190. data/test/dummy/tmp/cache/assets/D3B/D80/sprockets%2Fb54b6d7431d3fa350fd4860ec48376ba +0 -0
  191. data/test/dummy/tmp/cache/assets/D3C/2F0/sprockets%2F51cdd57d7fb8dd62a0c62c76b3185621 +0 -0
  192. data/test/dummy/tmp/cache/assets/D44/880/sprockets%2F4a4c96693e3a1a39c3f8b91228eeb54c +0 -0
  193. data/test/dummy/tmp/cache/assets/D44/BF0/sprockets%2Fa595dfd60f55332e66ed0e2a536883ad +0 -0
  194. data/test/dummy/tmp/cache/assets/D45/960/sprockets%2F36d2078b56c85b2e7e83bb1ebc3509f8 +0 -0
  195. data/test/dummy/tmp/cache/assets/D45/B00/sprockets%2Fc738c84515abd254264ebce779ed63d0 +0 -0
  196. data/test/dummy/tmp/cache/assets/D45/F80/sprockets%2Fe43ea8a1ded751a980c53a850889de33 +0 -0
  197. data/test/dummy/tmp/cache/assets/D48/7D0/sprockets%2F36f7c25f24e292b18fde7638f08aa9c0 +0 -0
  198. data/test/dummy/tmp/cache/assets/D48/C10/sprockets%2F6fcf9db784da5ae76551831162eb76c1 +0 -0
  199. data/test/dummy/tmp/cache/assets/D4C/860/sprockets%2F7e45fa7bc38e7fe824e248f2a496f300 +0 -0
  200. data/test/dummy/tmp/cache/assets/D4C/E70/sprockets%2Fd925ba6277eb18ccee7826175149d5ce +0 -0
  201. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  202. data/test/dummy/tmp/cache/assets/D52/550/sprockets%2F0e729ff182c56eac9cb66f61885ac746 +0 -0
  203. data/test/dummy/tmp/cache/assets/D53/720/sprockets%2F06e82479780b08ef39ee251d5ff1ecf8 +0 -0
  204. data/test/dummy/tmp/cache/assets/D54/A00/sprockets%2F3df92468167df36c8fe4985fca50cd16 +0 -0
  205. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  206. data/test/dummy/tmp/cache/assets/D5E/CC0/sprockets%2F11ff861f4f3307eb12da5333f34a9aba +0 -0
  207. data/test/dummy/tmp/cache/assets/D5F/F70/sprockets%2F4b083a83b2d19280ecf82d80cb0ec35a +0 -0
  208. data/test/dummy/tmp/cache/assets/D60/D30/sprockets%2Ff42c2090b3b42edbb29b14b8ca8c9381 +0 -0
  209. data/test/dummy/tmp/cache/assets/D63/FE0/sprockets%2F7c06e0b1e3f36943b4b6ac29ea2f03b8 +0 -0
  210. data/test/dummy/tmp/cache/assets/D70/260/sprockets%2Fec4232a583d51ebb6f61f3733dfe773d +0 -0
  211. data/test/dummy/tmp/cache/assets/D70/E40/sprockets%2F9be15c072df1cf29447f13c75fcea462 +0 -0
  212. data/test/dummy/tmp/cache/assets/D72/8B0/sprockets%2Fa6a44539fe3bd2f93df1d758acc81640 +0 -0
  213. data/test/dummy/tmp/cache/assets/D72/E50/sprockets%2F9fb77b92c0d85bef0e58e52d1c4202b9 +0 -0
  214. data/test/dummy/tmp/cache/assets/D73/5A0/sprockets%2F7c6389b8bb1dd2a68aa4c36734cb98e0 +0 -0
  215. data/test/dummy/tmp/cache/assets/D75/360/sprockets%2F293ef946e8f2bd1c0302fd97cc43ea39 +0 -0
  216. data/test/dummy/tmp/cache/assets/D7A/B20/sprockets%2F4fae9bff57ef326bc3263b7864730b5f +0 -0
  217. data/test/dummy/tmp/cache/assets/D7B/9A0/sprockets%2F769e91c33d9359c2dc9a1aa64ebf89b0 +0 -0
  218. data/test/dummy/tmp/cache/assets/D7D/C10/sprockets%2Fb0b77d34568b99bf0e1bf912ec8cf378 +0 -0
  219. data/test/dummy/tmp/cache/assets/D7E/DD0/sprockets%2F971cab035c4a28fc46bb20ab01a8c14c +0 -0
  220. data/test/dummy/tmp/cache/assets/D84/9E0/sprockets%2F57ec681758c9ce6c50bad69b835bf9c3 +0 -0
  221. data/test/dummy/tmp/cache/assets/D8D/E00/sprockets%2Ff08e1adc2ab7550fabf4210b7cf21587 +0 -0
  222. data/test/dummy/tmp/cache/assets/D8E/E50/sprockets%2F3a83cb2dd3c1df4c4e45037bef17a244 +0 -0
  223. data/test/dummy/tmp/cache/assets/D94/C30/sprockets%2Fec42b5f7ac9042dd6d3ce26f002de616 +0 -0
  224. data/test/dummy/tmp/cache/assets/D98/380/sprockets%2Fcf1c474c0bb8c73996ac31a5db5465ac +0 -0
  225. data/test/dummy/tmp/cache/assets/D99/BE0/sprockets%2Fd7a16c2e0d6d3b4265bb4d6eb5be7484 +0 -0
  226. data/test/dummy/tmp/cache/assets/D9F/7A0/sprockets%2F419e4ca288cce5faa35ec702cce63674 +0 -0
  227. data/test/dummy/tmp/cache/assets/DA0/CE0/sprockets%2F9f2b2767dfb1bbfd32ed538278a0f72a +0 -0
  228. data/test/dummy/tmp/cache/assets/DA1/480/sprockets%2F4c7b27d4ebedd93a0da0628e36f6809c +0 -0
  229. data/test/dummy/tmp/cache/assets/DA2/CD0/sprockets%2Fa99c7b02f4a462d48f68ac7a1d24dbf7 +0 -0
  230. data/test/dummy/tmp/cache/assets/DA3/F20/sprockets%2Fc05a73e30703be304fd9fe8db4cf598e +0 -0
  231. data/test/dummy/tmp/cache/assets/DB9/3D0/sprockets%2F02571f86c7cfe0fc11bfc3d1bbb1c208 +0 -0
  232. data/test/dummy/tmp/cache/assets/DC4/540/sprockets%2Fadee232b4e5d1dc4537d796d64ac2ac1 +0 -0
  233. data/test/dummy/tmp/cache/assets/DC4/590/sprockets%2F2dc05e1dc0a167e4735ac1dd76dafa97 +0 -0
  234. data/test/dummy/tmp/cache/assets/DC5/FE0/sprockets%2Fe41e0b207ecd4cd2e8284cfbb30e557e +0 -0
  235. data/test/dummy/tmp/cache/assets/DC7/100/sprockets%2F11ac5c4013dd9e91fde638af50c3f1ff +0 -0
  236. data/test/dummy/tmp/cache/assets/DC7/990/sprockets%2F5c956d26ecca1dfe4fb9eaa394301f01 +0 -0
  237. data/test/dummy/tmp/cache/assets/DCA/190/sprockets%2F18a3206d6ecdd1eb90afb684ae9ec345 +0 -0
  238. data/test/dummy/tmp/cache/assets/DCE/380/sprockets%2Fb8f50d4e2dedd941e46a4bc23dd7e391 +0 -0
  239. data/test/dummy/tmp/cache/assets/DDA/D50/sprockets%2F61e799bee7414e75bafc34fae4bd049f +0 -0
  240. data/test/dummy/tmp/cache/assets/DDB/B60/sprockets%2Fb9f5599ad317c420899cebe81bbefa3d +0 -0
  241. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  242. data/test/dummy/tmp/cache/assets/DDD/EA0/sprockets%2Ff7ece9144ddb7c4e33667f76caa8d3b6 +0 -0
  243. data/test/dummy/tmp/cache/assets/DFF/1B0/sprockets%2Fc12c9bb21df8b6797b49adc1c7aaf8e2 +0 -0
  244. data/test/dummy/tmp/cache/assets/E04/5E0/sprockets%2F38bfd5bbb49de4a45f5a51971cdf6be5 +0 -0
  245. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  246. data/test/dummy/tmp/cache/assets/E05/CD0/sprockets%2Fc8ea7dcae5c0f1974e75cbf110d9ca99 +0 -0
  247. data/test/dummy/tmp/cache/assets/E06/F80/sprockets%2Fc89d2b450fccd9e2efcdcb0446b4679d +0 -0
  248. data/test/dummy/tmp/cache/assets/E08/BA0/sprockets%2Fbe24d2682f98eea5a7fa60fa62fded56 +0 -0
  249. data/test/dummy/tmp/cache/assets/E1F/2A0/sprockets%2F0cf165eccecfa19ad5dc2944403a1cfd +0 -0
  250. data/test/dummy/tmp/cache/assets/E26/430/sprockets%2Fc2823ee45c2582bcec34a905fcacbdef +0 -0
  251. data/test/dummy/tmp/cache/assets/E2B/A30/sprockets%2Fdccc7eaad9b961b83f453b65b4b5cc0f +0 -0
  252. data/test/dummy/tmp/cache/assets/E39/4E0/sprockets%2Fee2fd1f87ee7cd516ea52e8c1ebc9e16 +0 -0
  253. data/test/dummy/tmp/cache/assets/E3B/EB0/sprockets%2Fa8e36f0a9d6869490d5da55cbcfccfec +0 -0
  254. data/test/dummy/tmp/cache/assets/E58/840/sprockets%2Fadeedcbe177fa92bf217db08f504d5bd +0 -0
  255. data/test/dummy/tmp/cache/assets/E7B/380/sprockets%2F1bccb9b3a0bf0b9d92f3fad21fafca56 +0 -0
  256. data/test/dummy/tmp/pids/server.pid +1 -0
  257. data/test/fixtures/jc_cms/cms_users.yml +11 -0
  258. data/test/functional/jc_cms/dashboard/dashboard_controller_test.rb +11 -0
  259. data/test/integration/navigation_test.rb +10 -0
  260. data/test/jc_cms_test.rb +7 -0
  261. data/test/test_helper.rb +15 -0
  262. data/test/unit/helpers/jc_cms/dashboard/dashboard_helper_test.rb +6 -0
  263. data/test/unit/jc_cms/cms_user_test.rb +9 -0
  264. metadata +525 -0
@@ -0,0 +1,58 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+
14
+ devise:
15
+ failure:
16
+ already_authenticated: 'You are already signed in.'
17
+ unauthenticated: 'You need to sign in or sign up before continuing.'
18
+ unconfirmed: 'You have to confirm your account before continuing.'
19
+ locked: 'Your account is locked.'
20
+ invalid: 'Invalid email or password.'
21
+ invalid_token: 'Invalid authentication token.'
22
+ timeout: 'Your session expired, please sign in again to continue.'
23
+ inactive: 'Your account was not activated yet.'
24
+ sessions:
25
+ signed_in: 'Signed in successfully.'
26
+ signed_out: 'Signed out successfully.'
27
+ passwords:
28
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
+ updated: 'Your password was changed successfully. You are now signed in.'
30
+ updated_not_active: 'Your password was changed successfully.'
31
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
32
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
+ confirmations:
34
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
35
+ send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
36
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
37
+ registrations:
38
+ signed_up: 'Welcome! You have signed up successfully.'
39
+ signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
40
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
41
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
42
+ updated: 'You updated your account successfully.'
43
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
44
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
45
+ unlocks:
46
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
47
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
48
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
49
+ omniauth_callbacks:
50
+ success: 'Successfully authenticated from %{kind} account.'
51
+ failure: 'Could not authenticate you from %{kind} because "%{reason}".'
52
+ mailer:
53
+ confirmation_instructions:
54
+ subject: 'Confirmation instructions'
55
+ reset_password_instructions:
56
+ subject: 'Reset password instructions'
57
+ unlock_instructions:
58
+ subject: 'Unlock Instructions'
@@ -0,0 +1,62 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ expired: 'stracił ważność, wyślij zapytanie o nowy'
5
+ not_found: 'nie znaleziono'
6
+ already_confirmed: 'już został aktywowany, możesz się zalogować'
7
+ not_locked: 'nie był zablokowany'
8
+ not_saved:
9
+ one: '%{resource} nie został zapisany z powodu błędu:'
10
+ other: '%{resource} nie został zapisany z powodu następujących błędów:'
11
+ devise:
12
+ login: 'Zaloguj'
13
+ remember_me: 'Zapamiętaj mnie'
14
+ login_title: 'Logowanie'
15
+ failure:
16
+ already_authenticated: 'Jesteś już zalogowany.'
17
+ unauthenticated: 'Zaloguj lub zarejestruj się, aby kontynuować.'
18
+ unconfirmed: 'Nie aktywowałeś jeszcze swojego konta - sprawdź swój e-mail.'
19
+ locked: 'Twoje konto jest zablokowane.'
20
+ invalid: 'Niepoprawny adres e-mail lub hasło.'
21
+ invalid_token: 'Niepoprawny token.'
22
+ timeout: 'Sesja wygasła - zaloguj się ponownie, aby kontynuować.'
23
+ inactive: 'Konto nie zostało jeszcze aktywowane.'
24
+ sessions:
25
+ signed_in: 'Witaj ponownie!'
26
+ signed_out: 'Wylogowałeś się. Zapraszamy ponownie!'
27
+ passwords:
28
+ send_instructions: 'Za chwilę wyślemy instrukcję zmiany hasła na Twój adres e-mail.'
29
+ updated: 'Zmieniłeś swoje hasło. Zostałeś automatycznie zalogowany.'
30
+ updated_not_active: 'Zmieniłeś swoje hasło.'
31
+ send_paranoid_instructions: 'Jeśli wpisałeś poprawny e-mail, za chwilę wyślemy instrukcję zmiany hasła na Twój adres e-mail.'
32
+ confirmations:
33
+ send_instructions: 'Za chwilę wyślemy instrukcję aktywowania konta na Twój adres e-mail.'
34
+ send_paranoid_instructions: 'Jeśli wpisałeś poprawny e-mail, za chwilę wyślemy instrukcję aktywowania konta na Twój adres e-mail.'
35
+ confirmed: 'Aktywowaliśmy Twoje konto. Zostałeś automatycznie zalogowany.'
36
+ registrations:
37
+ signed_up: 'Witaj! Zarejestrowałeś się pomyślnie.'
38
+ signed_up_but_unconfirmed: 'E-mail z linkiem aktywacyjnym został wysłany na Twój adres e-mail. Sprawdź e-mail, aby dokończyć rejestrację.'
39
+ signed_up_but_inactive: 'Zarejestrowałeś się pomyślnie. Niemniej jednak nie zostałeś zalogowany, ponieważ Twoje konto nie zostało jeszcze aktywowane.'
40
+ signed_up_but_locked: 'Zarejestrowałeś się pomyślnie. Niemniej jednak nie zostałeś zalogowany, ponieważ Twoje konto zostało zablokowane.'
41
+ updated: 'Zaktualizowałeś swoje dane.'
42
+ update_needs_confirmation: 'Aby potwierdzić zmiany, musimy zweryfikować Twój nowy adres e-mail. Za chwilę wyślemy instrukcję na nowy adres.'
43
+ destroyed: 'Usunąłeś swoje konto.'
44
+ # inactive_signed_up: 'Zarejestrowałeś się pomyślnie. Nie zostałeś jednak zalogowany ponieważ konto jest %{reason}.'
45
+ # reasons:
46
+ # inactive: 'nieaktywne'
47
+ # unconfirmed: 'niepotwierdzone'
48
+ # locked: 'zablokowane'
49
+ unlocks:
50
+ send_instructions: 'Za chwilę wyślemy instrukcję odblokowania konta na Twój adres e-mail.'
51
+ unlocked: 'Odblokowaliśmy Twoje konto. Jesteś już zalogowany.'
52
+ send_paranoid_instructions: 'Jeśli Twoje konto istnieje w naszej bazie, otrzymasz zaraz e-mail z instrukcją jak odblokować swoje konto.'
53
+ omniauth_callbacks:
54
+ success: 'Zalogowałeś się przez %{kind}.'
55
+ failure: 'Logowanie przez konto %{kind} zakończyło się błędem: "%{reason}".'
56
+ mailer:
57
+ confirmation_instructions:
58
+ subject: 'Instrukcja aktywacji konta'
59
+ reset_password_instructions:
60
+ subject: 'Instrukcja ustawienia nowego hasła'
61
+ unlock_instructions:
62
+ subject: 'Instrukcja odblokowania konta'
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,246 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ pl:
5
+ date:
6
+ abbr_day_names:
7
+ - nie
8
+ - pon
9
+ - wto
10
+ - śro
11
+ - czw
12
+ - pią
13
+ - sob
14
+ abbr_month_names:
15
+ -
16
+ - sty
17
+ - lut
18
+ - mar
19
+ - kwi
20
+ - maj
21
+ - cze
22
+ - lip
23
+ - sie
24
+ - wrz
25
+ - paź
26
+ - lis
27
+ - gru
28
+ day_names:
29
+ - niedziela
30
+ - poniedziałek
31
+ - wtorek
32
+ - środa
33
+ - czwartek
34
+ - piątek
35
+ - sobota
36
+ formats:
37
+ default: ! '%d-%m-%Y'
38
+ long: ! '%B %d, %Y'
39
+ short: ! '%d %b'
40
+ month_names:
41
+ -
42
+ - styczeń
43
+ - luty
44
+ - marzec
45
+ - kwiecień
46
+ - maj
47
+ - czerwiec
48
+ - lipiec
49
+ - sierpień
50
+ - wrzesień
51
+ - październik
52
+ - listopad
53
+ - grudzień
54
+ order:
55
+ - :day
56
+ - :month
57
+ - :year
58
+ datetime:
59
+ distance_in_words:
60
+ about_x_hours:
61
+ few: około %{count} godziny
62
+ one: około godziny
63
+ other: około %{count} godzin
64
+ many: około %{count} godzin
65
+ about_x_months:
66
+ few: około %{count} miesiące
67
+ one: około miesiąca
68
+ other: około %{count} miesięcy
69
+ many: około %{count} miesięcy
70
+ about_x_years:
71
+ few: około %{count} lata
72
+ one: około rok
73
+ other: około %{count} lat
74
+ many: około %{count} lat
75
+ almost_x_years:
76
+ few: prawie %{count} lata
77
+ one: prawie rok
78
+ other: prawie %{count} lat
79
+ many: prawie %{count} lat
80
+ half_a_minute: pół minuty
81
+ less_than_x_minutes:
82
+ few: mniej niż %{count} minuty
83
+ one: mniej niż minutę
84
+ other: mniej niż %{count} minut
85
+ many: mniej niż %{count} minut
86
+ less_than_x_seconds:
87
+ few: mniej niż %{count} sekundy
88
+ one: mniej niż sekundę
89
+ other: mniej niż %{count} sekund
90
+ many: mniej niż %{count} sekund
91
+ over_x_years:
92
+ few: ponad %{count} lata
93
+ one: ponad rok
94
+ other: ponad %{count} lat
95
+ many: ponad %{count} lat
96
+ x_days:
97
+ few: ! '%{count} dni'
98
+ one: 1 dzień
99
+ other: ! '%{count} dni'
100
+ many: ! '%{count} dni'
101
+ x_minutes:
102
+ few: ! '%{count} minuty'
103
+ one: 1 minuta
104
+ other: ! '%{count} minut'
105
+ many: ! '%{count} minut'
106
+ x_months:
107
+ few: ! '%{count} miesiące'
108
+ one: 1 miesiąc
109
+ other: ! '%{count} miesięcy'
110
+ many: ! '%{count} miesięcy'
111
+ x_seconds:
112
+ few: ! '%{count} sekundy'
113
+ one: 1 sekunda
114
+ other: ! '%{count} sekund'
115
+ many: ! '%{count} sekund'
116
+ prompts:
117
+ day: Dzień
118
+ hour: Godzina
119
+ minute: Minuta
120
+ month: Miesiąc
121
+ second: Sekundy
122
+ year: Rok
123
+ errors: &errors
124
+ format: ! '%{attribute} %{message}'
125
+ messages:
126
+ accepted: musi zostać zaakceptowane
127
+ blank: nie może być puste
128
+ confirmation: nie zgadza się z potwierdzeniem
129
+ empty: nie może być puste
130
+ equal_to: musi być równe %{count}
131
+ even: musi być parzyste
132
+ exclusion: jest zarezerwowane
133
+ greater_than: musi być większe od %{count}
134
+ greater_than_or_equal_to: musi być większe lub równe %{count}
135
+ inclusion: nie znajduje się na liście dopuszczalnych wartości
136
+ invalid: jest nieprawidłowe
137
+ less_than: musi być mniejsze od %{count}
138
+ less_than_or_equal_to: musi być mniejsze lub równe %{count}
139
+ not_a_number: nie jest liczbą
140
+ not_an_integer: musi być liczbą całkowitą
141
+ odd: musi być nieparzyste
142
+ record_invalid: ! 'Negatywne sprawdzenie poprawności: %{errors}'
143
+ taken: zostało już zajęte
144
+ too_long: jest za długie (maksymalnie %{count} znaków)
145
+ too_short: jest za krótkie (przynajmniej %{count} znaków)
146
+ wrong_length: ma nieprawidłową długość (powinna wynosić %{count} znaków)
147
+ template:
148
+ body: ! 'Błędy dotyczą następujących pól:'
149
+ header:
150
+ one: ! '%{model} nie został zachowany z powodu jednego błędu'
151
+ few: ! '%{model} nie został zachowany z powodu %{count} błędów'
152
+ other: ! '%{model} nie został zachowany z powodu %{count} błędów'
153
+ helpers:
154
+ select:
155
+ prompt: Proszę wybrać
156
+ submit:
157
+ create: Utwórz %{model}
158
+ submit: Zapisz %{model}
159
+ update: Aktualizuj %{model}
160
+ number:
161
+ currency:
162
+ format:
163
+ delimiter: ! ' '
164
+ format: ! '%u %n'
165
+ precision: 2
166
+ separator: ! ','
167
+ significant: false
168
+ strip_insignificant_zeros: true
169
+ unit: PLN
170
+ format:
171
+ delimiter: ! ' '
172
+ precision: 3
173
+ separator: ! ','
174
+ significant: false
175
+ strip_insignificant_zeros: false
176
+ human:
177
+ decimal_units:
178
+ format: ! '%n %u'
179
+ units:
180
+ billion: Miliard
181
+ million: Milion
182
+ quadrillion: Biliard
183
+ thousand: Tysiąc
184
+ trillion: Bilion
185
+ unit: ''
186
+ format:
187
+ delimiter: ''
188
+ precision: 3
189
+ significant: true
190
+ strip_insignificant_zeros: true
191
+ storage_units:
192
+ format: ! '%n %u'
193
+ units:
194
+ byte:
195
+ one: bajt
196
+ few: bajty
197
+ many: bajty
198
+ other: bajty
199
+ gb: GB
200
+ kb: KB
201
+ mb: MB
202
+ tb: TB
203
+ percentage:
204
+ format:
205
+ delimiter: ''
206
+ precision:
207
+ format:
208
+ delimiter: ''
209
+ support:
210
+ array:
211
+ last_word_connector: ! ' oraz '
212
+ two_words_connector: ! ' i '
213
+ words_connector: ! ', '
214
+ time:
215
+ am: przed południem
216
+ formats:
217
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
218
+ long: ! '%B %d, %Y %H:%M'
219
+ short: ! '%d %b %H:%M'
220
+ pm: po południu
221
+ # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
222
+ activemodel:
223
+ errors:
224
+ <<: *errors
225
+ activerecord:
226
+ errors:
227
+ <<: *errors
228
+
229
+ controllers:
230
+ dashboard:
231
+ pages:
232
+ new: Nowa strona
233
+ edit: Edytuj stronę
234
+ add_new: Dodaj nową stronę
235
+ show: Strona
236
+ actions:
237
+ save: Zapisz
238
+ new: Nowy
239
+ cancel: Anuluj
240
+ delete: Usuń
241
+ add: Dodaj
242
+ sidebar: Panel boczny
243
+ action: Akcja
244
+ actions: Akcje
245
+ show: Pokaż
246
+ edit: Edytuj
@@ -0,0 +1,26 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+
@@ -0,0 +1,36 @@
1
+ pl:
2
+ simple_form:
3
+ "yes": 'Tak'
4
+ "no": 'Nie'
5
+ required:
6
+ text: 'Wymagany'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ labels:
14
+ page:
15
+ name: Nazwa
16
+ active: Widoczna
17
+ position: Pozycja
18
+ location: Lokalizacja
19
+ page: Podstrona
20
+ meta_title: SEO tytuł
21
+ meta_description: SEO opis
22
+ meta_keywords: SEO słowa kluczowe
23
+ # Labels and hints examples
24
+ # labels:
25
+ # defaults:
26
+ # password: 'Password'
27
+ # user:
28
+ # new:
29
+ # email: 'E-mail to sign in.'
30
+ # edit:
31
+ # email: 'E-mail.'
32
+ # hints:
33
+ # defaults:
34
+ # username: 'User name to sign in.'
35
+ # password: 'No special characters, please.'
36
+
data/config/routes.rb ADDED
@@ -0,0 +1,14 @@
1
+ JcCms::Engine.routes.draw do
2
+
3
+ devise_for :users, :class_name => "JcCms::User", module: :devise
4
+
5
+ namespace :dashboard do
6
+ get "dashboard/index"
7
+ root :to => "dashboard#index"
8
+ resources :pages
9
+ end
10
+
11
+ mount Ckeditor::Engine => '/ckeditor'
12
+
13
+
14
+ end
@@ -0,0 +1,20 @@
1
+ class CreatePages < ActiveRecord::Migration
2
+ def up
3
+ create_table :jc_cms_pages do |t|
4
+ t.string :name
5
+ t.text :content
6
+ t.string :meta_title
7
+ t.string :meta_description
8
+ t.string :meta_keywords
9
+ t.integer :page_id
10
+ t.boolean :active
11
+ t.integer :position
12
+
13
+ t.timestamps
14
+ end
15
+ end
16
+
17
+ def down
18
+ drop_table :jc_cms_pages
19
+ end
20
+ end
@@ -0,0 +1,26 @@
1
+ class CreateCkeditorAssets < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :ckeditor_assets do |t|
4
+ t.string :data_file_name, :null => false
5
+ t.string :data_content_type
6
+ t.integer :data_file_size
7
+
8
+ t.integer :assetable_id
9
+ t.string :assetable_type, :limit => 30
10
+ t.string :type, :limit => 30
11
+
12
+ # Uncomment it to save images dimensions, if your need it
13
+ t.integer :width
14
+ t.integer :height
15
+
16
+ t.timestamps
17
+ end
18
+
19
+ add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type"
20
+ add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable"
21
+ end
22
+
23
+ def self.down
24
+ drop_table :ckeditor_assets
25
+ end
26
+ end
@@ -0,0 +1,46 @@
1
+ class DeviseCreateCmsUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table(:jc_cms_users) do |t|
4
+ ## Database authenticatable
5
+ t.string :email, :null => false, :default => ""
6
+ t.string :encrypted_password, :null => false, :default => ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
+
15
+ ## Trackable
16
+ t.integer :sign_in_count, :default => 0
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.string :current_sign_in_ip
20
+ t.string :last_sign_in_ip
21
+
22
+ ## Confirmable
23
+ # t.string :confirmation_token
24
+ # t.datetime :confirmed_at
25
+ # t.datetime :confirmation_sent_at
26
+ # t.string :unconfirmed_email # Only if using reconfirmable
27
+
28
+ ## Lockable
29
+ # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
30
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
31
+ # t.datetime :locked_at
32
+
33
+ ## Token authenticatable
34
+ # t.string :authentication_token
35
+
36
+
37
+ t.timestamps
38
+ end
39
+
40
+ add_index :jc_cms_users, :email, :unique => true
41
+ add_index :jc_cms_users, :reset_password_token, :unique => true
42
+ # add_index :cms_users, :confirmation_token, :unique => true
43
+ # add_index :cms_users, :unlock_token, :unique => true
44
+ # add_index :cms_users, :authentication_token, :unique => true
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ module JcCms
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace JcCms
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module JcCms
2
+ VERSION = "0.0.1"
3
+ end
data/lib/jc_cms.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "jc_cms/engine"
2
+
3
+ module JcCms
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :jc_cms do
3
+ # # Task goes here
4
+ # end