jc_cms 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = JcCms
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'JcCms'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+
28
+ Bundler::GemHelper.install_tasks
29
+
30
+ require 'rake/testtask'
31
+
32
+ Rake::TestTask.new(:test) do |t|
33
+ t.libs << 'lib'
34
+ t.libs << 'test'
35
+ t.pattern = 'test/**/*_test.rb'
36
+ t.verbose = false
37
+ end
38
+
39
+
40
+ task :default => :test
Binary file
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require twitter/bootstrap
16
+ //= require ckeditor/init
@@ -0,0 +1,4 @@
1
+ jQuery ->
2
+ $("a[rel=popover]").popover()
3
+ $(".tooltip").tooltip()
4
+ $("a[rel=tooltip]").tooltip()
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,18 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require jc_cms/bootstrap_and_overrides
13
+ */
14
+
15
+ i .icon .icon-ok{
16
+ background-image: url('ok.png');
17
+ background-repeat:no-repeat;
18
+ }
@@ -0,0 +1,34 @@
1
+ @import "twitter/bootstrap/bootstrap";
2
+ body {
3
+ padding-top: 60px;
4
+ }
5
+
6
+ @import "twitter/bootstrap/responsive";
7
+ @import "jc_cms/variables.css";
8
+ @import "jc_cms/bootswatch.css";
9
+
10
+ // Set the correct sprite paths
11
+ @iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
12
+ @iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
13
+
14
+ // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
15
+ // Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not
16
+ // have the proper paths. So for now we use the absolute path.
17
+ //@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot';
18
+ //@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff';
19
+ //@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf';
20
+ //@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg';
21
+
22
+ // Font Awesome
23
+ //@import "fontawesome";
24
+
25
+ // Your custom LESS stylesheets goes here
26
+ //
27
+ // Since bootstrap was imported above you have access to its mixins which
28
+ // you may use and inherit here
29
+ //
30
+ // If you'd like to override bootstrap's own variables, you can do so here as well
31
+ // See http://twitter.github.com/bootstrap/less.html for their names and documentation
32
+ //
33
+ // Example:
34
+ // @linkColor: #ff0000;
@@ -0,0 +1,181 @@
1
+ // Cerulean 2.2.1
2
+ // Bootswatch
3
+ // -----------------------------------------------------
4
+
5
+
6
+ // TYPOGRAPHY
7
+ // -----------------------------------------------------
8
+
9
+ @import url(https://fonts.googleapis.com/css?family=Telex);
10
+
11
+ // SCAFFOLDING
12
+ // -----------------------------------------------------
13
+
14
+ // NAVBAR
15
+ // -----------------------------------------------------
16
+
17
+ .navbar {
18
+
19
+
20
+ .brand {
21
+ padding: 14px 20px 16px;
22
+ font-family: @headingsFontFamily;
23
+ text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
24
+ }
25
+
26
+ li {
27
+ line-height: 20px;
28
+ }
29
+
30
+ .nav > li > a {
31
+ padding: 16px 10px 14px;
32
+ font-family: @headingsFontFamily;
33
+ text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
34
+ }
35
+
36
+ .search-query {
37
+ border: 1px solid darken(@linkColor, 10%);
38
+ line-height: normal;
39
+ }
40
+
41
+ .navbar-text {
42
+ padding: 19px 10px 18px;
43
+ line-height: 13px;
44
+ color: rgba(0, 0, 0, 0.5);
45
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
46
+ }
47
+
48
+ &-inverse {
49
+
50
+ .navbar-search .search-query {
51
+ color: @textColor;
52
+ }
53
+ }
54
+ }
55
+
56
+ @media (max-width: @navbarCollapseWidth) {
57
+
58
+ .navbar .nav-collapse {
59
+
60
+ .nav li > a {
61
+
62
+ font-family: @headingsFontFamily;
63
+ font-weight: normal;
64
+ color: @white;
65
+ text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
66
+
67
+ &:hover {
68
+ background-color: #2B7CAC;
69
+ }
70
+ }
71
+
72
+ .nav .active > a {
73
+ .box-shadow(none);
74
+ background-color: #2B7CAC;
75
+ }
76
+
77
+ .dropdown-menu li > a:hover,
78
+ .dropdown-menu li > a:focus,
79
+ .dropdown-submenu:hover > a {
80
+ background-image: none;
81
+ }
82
+
83
+ .navbar-form,
84
+ .navbar-search {
85
+ border: none;
86
+ }
87
+
88
+ .nav-header {
89
+ color: #2B7CAC;
90
+ }
91
+ }
92
+
93
+ .navbar-inverse .nav-collapse {
94
+
95
+ .nav li > a {
96
+ color: @navbarInverseLinkColor;
97
+
98
+ &:hover {
99
+ background-color: rgba(0, 0, 0, 0.1);
100
+ }
101
+ }
102
+
103
+ .nav .active > a,
104
+ .nav > li > a:hover,
105
+ .dropdown-menu a:hover {
106
+ background-color: rgba(0, 0, 0, 0.1) !important;
107
+ }
108
+ }
109
+ }
110
+
111
+ div.subnav {
112
+
113
+ font-family: @headingsFontFamily;
114
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
115
+
116
+ &-fixed {
117
+ top: @navbarHeight;
118
+ }
119
+ }
120
+
121
+ // NAV
122
+ // -----------------------------------------------------
123
+
124
+ // BUTTONS
125
+ // -----------------------------------------------------
126
+
127
+ .btn {
128
+ #gradient > .vertical-three-colors(@white, @white, 5%, darken(@white, 0%));
129
+ @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
130
+ .box-shadow(@shadow);
131
+
132
+ &:hover {
133
+ background-position: 0 0;
134
+ }
135
+ }
136
+
137
+ .btn-primary {
138
+ .buttonBackground(lighten(@btnPrimaryBackground, 5%), @btnPrimaryBackground);
139
+ }
140
+
141
+ .btn-info {
142
+ .buttonBackground(lighten(@btnInfoBackground, 5%), @btnInfoBackground);
143
+ }
144
+
145
+ .btn-success {
146
+ .buttonBackground(lighten(@btnSuccessBackground, 5%), @btnSuccessBackground);
147
+ }
148
+
149
+ .btn-warning {
150
+ .buttonBackground(lighten(@btnWarningBackground, 5%), @btnWarningBackground);
151
+ }
152
+
153
+ .btn-danger {
154
+ .buttonBackground(lighten(@btnDangerBackground, 5%), @btnDangerBackground);
155
+ }
156
+
157
+ .btn-inverse {
158
+ .buttonBackground(lighten(@btnInverseBackground, 5%), @btnInverseBackground);
159
+ }
160
+
161
+ // TABLES
162
+ // -----------------------------------------------------
163
+
164
+ // FORMS
165
+ // -----------------------------------------------------
166
+
167
+ // DROPDOWNS
168
+ // -----------------------------------------------------
169
+
170
+ // ALERTS, LABELS, BADGES
171
+ // -----------------------------------------------------
172
+
173
+ // MISC
174
+ // -----------------------------------------------------
175
+
176
+ i[class^="icon-"]{
177
+ opacity: 0.8;
178
+ }
179
+
180
+ // MEDIA QUERIES
181
+ // -----------------------------------------------------
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the dashboard/pages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the home controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,301 @@
1
+ // Cerulean 2.2.1
2
+ // Variables
3
+ // --------------------------------------------------
4
+
5
+
6
+ // GLOBAL VALUES
7
+ // --------------------------------------------------
8
+
9
+
10
+ // Grays
11
+ // -------------------------
12
+ @black: #000;
13
+ @grayDarker: #222;
14
+ @grayDark: #333;
15
+ @gray: #555;
16
+ @grayLight: #999;
17
+ @grayLighter: #F5F5F5;
18
+ @white: #fff;
19
+
20
+
21
+ // Accent colors
22
+ // -------------------------
23
+ @blue: #2FA4E7;
24
+ @blueDark: #033C73;
25
+ @green: #73A839;
26
+ @red: #C71C22;
27
+ @yellow: #F7B42C;
28
+ @orange: #DD5600;
29
+ @pink: #F49AC1;
30
+ @purple: #9760B3;
31
+
32
+
33
+ // Scaffolding
34
+ // -------------------------
35
+ @bodyBackground: @white;
36
+ @textColor: @gray;
37
+
38
+
39
+ // Links
40
+ // -------------------------
41
+ @linkColor: @blue;
42
+ @linkColorHover: darken(@linkColor, 15%);
43
+
44
+
45
+ // Typography
46
+ // -------------------------
47
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
48
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
49
+ @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
50
+
51
+ @baseFontSize: 14px;
52
+ @baseFontFamily: @sansFontFamily;
53
+ @baseLineHeight: 20px;
54
+ @altFontFamily: @monoFontFamily;
55
+
56
+ @headingsFontFamily: 'Telex', sans-serif; // empty to use BS default, @baseFontFamily
57
+ @headingsFontWeight: bold; // instead of browser default, bold
58
+ @headingsColor: #317EAC; // empty to use BS default, @textColor
59
+
60
+
61
+ // Component sizing
62
+ // -------------------------
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ @fontSizeLarge: @baseFontSize * 1.25; // ~18px
66
+ @fontSizeSmall: @baseFontSize * 0.85; // ~12px
67
+ @fontSizeMini: @baseFontSize * 0.75; // ~11px
68
+
69
+ @paddingLarge: 11px 19px; // 44px
70
+ @paddingSmall: 2px 10px; // 26px
71
+ @paddingMini: 1px 6px; // 24px
72
+
73
+ @baseBorderRadius: 4px;
74
+ @borderRadiusLarge: 6px;
75
+ @borderRadiusSmall: 3px;
76
+
77
+
78
+ // Tables
79
+ // -------------------------
80
+ @tableBackground: transparent; // overall background-color
81
+ @tableBackgroundAccent: #f9f9f9; // for striping
82
+ @tableBackgroundHover: #f5f5f5; // for hover
83
+ @tableBorder: #ddd; // table and cell border
84
+
85
+ // Buttons
86
+ // -------------------------
87
+ @btnBackground: @white;
88
+ @btnBackgroundHighlight: darken(@white, 10%);
89
+ @btnBorder: darken(@white, 20%);
90
+
91
+ @btnPrimaryBackground: @linkColor;
92
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
93
+
94
+ @btnInfoBackground: @purple;
95
+ @btnInfoBackgroundHighlight: #2f96b4;
96
+
97
+ @btnSuccessBackground: @green;
98
+ @btnSuccessBackgroundHighlight: #51a351;
99
+
100
+ @btnWarningBackground: @orange;
101
+ @btnWarningBackgroundHighlight: @orange;
102
+
103
+ @btnDangerBackground: @red;
104
+ @btnDangerBackgroundHighlight: #bd362f;
105
+
106
+ @btnInverseBackground: @blueDark;
107
+ @btnInverseBackgroundHighlight: @grayDarker;
108
+
109
+
110
+ // Forms
111
+ // -------------------------
112
+ @inputBackground: @white;
113
+ @inputBorder: #ccc;
114
+ @inputBorderRadius: @baseBorderRadius;
115
+ @inputDisabledBackground: @grayLighter;
116
+ @formActionsBackground: #f5f5f5;
117
+ @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
+
119
+
120
+ // Dropdowns
121
+ // -------------------------
122
+ @dropdownBackground: @white;
123
+ @dropdownBorder: rgba(0,0,0,.2);
124
+ @dropdownDividerTop: #e5e5e5;
125
+ @dropdownDividerBottom: @white;
126
+
127
+ @dropdownLinkColor: @grayDark;
128
+ @dropdownLinkColorHover: @white;
129
+ @dropdownLinkColorActive: @dropdownLinkColor;
130
+
131
+ @dropdownLinkBackgroundActive: @linkColor;
132
+ @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
133
+
134
+
135
+
136
+ // COMPONENT VARIABLES
137
+ // --------------------------------------------------
138
+
139
+
140
+ // Z-index master list
141
+ // -------------------------
142
+ // Used for a bird's eye view of components dependent on the z-axis
143
+ // Try to avoid customizing these :)
144
+ @zindexDropdown: 1000;
145
+ @zindexPopover: 1010;
146
+ @zindexTooltip: 1020;
147
+ @zindexFixedNavbar: 1030;
148
+ @zindexModalBackdrop: 1040;
149
+ @zindexModal: 1050;
150
+
151
+
152
+ // Sprite icons path
153
+ // -------------------------
154
+ @iconSpritePath: "../img/glyphicons-halflings.png";
155
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
156
+
157
+
158
+ // Input placeholder text color
159
+ // -------------------------
160
+ @placeholderText: @grayLight;
161
+
162
+
163
+ // Hr border color
164
+ // -------------------------
165
+ @hrBorder: @grayLighter;
166
+
167
+
168
+ // Horizontal forms & lists
169
+ // -------------------------
170
+ @horizontalComponentOffset: 180px;
171
+
172
+
173
+ // Wells
174
+ // -------------------------
175
+ @wellBackground: #f5f5f5;
176
+
177
+
178
+ // Navbar
179
+ // -------------------------
180
+ @navbarCollapseWidth: 979px;
181
+ @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
182
+
183
+ @navbarHeight: 50px;
184
+ @navbarBackgroundHighlight: lighten(@navbarBackground, 8%);
185
+ @navbarBackground: @blue;
186
+ @navbarBorder: darken(@navbarBackground, 8%);
187
+
188
+ @navbarText: @grayLighter;
189
+ @navbarLinkColor: @white;
190
+ @navbarLinkColorHover: @white;
191
+ @navbarLinkColorActive: @navbarLinkColorHover;
192
+ @navbarLinkBackgroundHover: darken(@navbarBackground, 12%);
193
+ @navbarLinkBackgroundActive: darken(@navbarBackground, 12%);
194
+
195
+ @navbarBrandColor: @navbarLinkColor;
196
+
197
+ // Inverted navbar
198
+ @navbarInverseBackground: @blueDark;
199
+ @navbarInverseBackgroundHighlight: lighten(@navbarInverseBackground, 5%);
200
+ @navbarInverseBorder: darken(@navbarInverseBackground, 3%);
201
+
202
+ @navbarInverseText: @white;
203
+ @navbarInverseLinkColor: @white;
204
+ @navbarInverseLinkColorHover: @white;
205
+ @navbarInverseLinkColorActive: @white;
206
+ @navbarInverseLinkBackgroundHover: darken(@navbarInverseBackground, 6%);
207
+ @navbarInverseLinkBackgroundActive: darken(@navbarInverseBackground, 6%);
208
+
209
+ @navbarInverseSearchBackground: @white;
210
+ @navbarInverseSearchBackgroundFocus: @white;
211
+ @navbarInverseSearchBorder: @navbarInverseBackground;
212
+ @navbarInverseSearchPlaceholderColor: @grayLight;
213
+
214
+ @navbarInverseBrandColor: @navbarInverseLinkColor;
215
+
216
+
217
+ // Pagination
218
+ // -------------------------
219
+ @paginationBackground: #fff;
220
+ @paginationBorder: #ddd;
221
+ @paginationActiveBackground: #f5f5f5;
222
+
223
+
224
+ // Hero unit
225
+ // -------------------------
226
+ @heroUnitBackground: @grayLighter;
227
+ @heroUnitHeadingColor: inherit;
228
+ @heroUnitLeadColor: inherit;
229
+
230
+
231
+ // Form states and alerts
232
+ // -------------------------
233
+ @warningText: darken(@linkColor, 20%);
234
+ @warningBackground: lighten(@linkColor, 20%);
235
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
236
+
237
+ @errorText: darken(#C45559, 5%);
238
+ @errorBackground: #EDDBE3;
239
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
240
+
241
+ @successText: darken(@green, 5%);
242
+ @successBackground: #CDB;
243
+ @successBorder: darken(spin(@successBackground, -10), 5%);
244
+
245
+ @infoText: darken(#908A62, 5%);
246
+ @infoBackground: #A7DFF1;
247
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
248
+
249
+
250
+ // Tooltips and popovers
251
+ // -------------------------
252
+ @tooltipColor: #fff;
253
+ @tooltipBackground: #000;
254
+ @tooltipArrowWidth: 5px;
255
+ @tooltipArrowColor: @tooltipBackground;
256
+
257
+ @popoverBackground: #fff;
258
+ @popoverArrowWidth: 10px;
259
+ @popoverArrowColor: #fff;
260
+ @popoverTitleBackground: darken(@popoverBackground, 3%);
261
+
262
+ // Special enhancement for popovers
263
+ @popoverArrowOuterWidth: @popoverArrowWidth + 1;
264
+ @popoverArrowOuterColor: rgba(0,0,0,.25);
265
+
266
+
267
+
268
+ // GRID
269
+ // --------------------------------------------------
270
+
271
+
272
+ // Default 940px grid
273
+ // -------------------------
274
+ @gridColumns: 12;
275
+ @gridColumnWidth: 60px;
276
+ @gridGutterWidth: 20px;
277
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
278
+
279
+ // 1200px min
280
+ @gridColumnWidth1200: 70px;
281
+ @gridGutterWidth1200: 30px;
282
+ @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
283
+
284
+ // 768px-979px
285
+ @gridColumnWidth768: 42px;
286
+ @gridGutterWidth768: 20px;
287
+ @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
288
+
289
+
290
+ // Fluid grid
291
+ // -------------------------
292
+ @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
293
+ @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
294
+
295
+ // 1200px min
296
+ @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
297
+ @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
298
+
299
+ // 768px-979px
300
+ @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
301
+ @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
@@ -0,0 +1,4 @@
1
+ %h1
2
+ Page#show
3
+ %p
4
+ Find me in app/cells/page/show.html.haml
@@ -0,0 +1,7 @@
1
+ class PageCell < Cell::Rails
2
+
3
+ def show
4
+ render
5
+ end
6
+
7
+ end
@@ -0,0 +1,7 @@
1
+ .navbar.navbar-inner.container
2
+ .brand
3
+ = "Przedszkole Nutki"
4
+ .nav-collapse.nav-collapse.nav-stacked
5
+ %ul.nav
6
+ - @pages.each do |p|
7
+ %li= link_to p.name, ''
@@ -0,0 +1,8 @@
1
+ class PagesMenuCell < Cell::Rails
2
+
3
+ def show
4
+ @pages = Location.first.pages
5
+ render
6
+ end
7
+
8
+ end