constructor-cms 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (305) hide show
  1. data/lib/constructor-cms/engine.rb +6 -0
  2. data/lib/constructor-cms.rb +1 -1
  3. metadata +4 -305
  4. data/.idea/.name +0 -1
  5. data/.idea/constructor.iml +0 -62
  6. data/.idea/encodings.xml +0 -5
  7. data/.idea/misc.xml +0 -5
  8. data/.idea/modules.xml +0 -9
  9. data/.idea/scopes/scope_settings.xml +0 -5
  10. data/.idea/vcs.xml +0 -7
  11. data/.idea/workspace.xml +0 -873
  12. data/.rspec +0 -2
  13. data/cap/app/assets/images/constructor_cap/cross.png +0 -0
  14. data/cap/app/assets/images/constructor_cap/page_white_edit.png +0 -0
  15. data/cap/app/controllers/constructor_cap/emails_controller.rb +0 -71
  16. data/cap/app/models/constructor_cap/email.rb +0 -15
  17. data/cap/app/views/constructor_cap/emails/_form.haml +0 -17
  18. data/cap/app/views/constructor_cap/emails/edit.haml +0 -5
  19. data/cap/app/views/constructor_cap/emails/index.haml +0 -27
  20. data/cap/app/views/constructor_cap/emails/new.haml +0 -5
  21. data/cap/app/views/constructor_cap/emails/show.haml +0 -54
  22. data/cap/config/initializers/admin_menu.rb +0 -4
  23. data/cap/config/locales/ru.yml +0 -23
  24. data/cap/config/routes.rb +0 -9
  25. data/cap/constructor-cap.gemspec +0 -19
  26. data/cap/db/migrate/20110510182404_create_emails.rb +0 -12
  27. data/cap/lib/constructor-cap.rb +0 -2
  28. data/cap/lib/constructor_cap/engine.rb +0 -6
  29. data/constructor-cms.gemspec +0 -21
  30. data/core/app/assets/images/constructor_core/glyphicons-halflings-white.png +0 -0
  31. data/core/app/assets/images/constructor_core/glyphicons-halflings.png +0 -0
  32. data/core/app/assets/images/constructor_core/minus.gif +0 -0
  33. data/core/app/assets/images/constructor_core/plus.gif +0 -0
  34. data/core/app/assets/images/constructor_core/rss.png +0 -0
  35. data/core/app/assets/images/constructor_core/treeview-black-line.gif +0 -0
  36. data/core/app/assets/images/constructor_core/treeview-black.gif +0 -0
  37. data/core/app/assets/images/constructor_core/treeview-default-line.gif +0 -0
  38. data/core/app/assets/images/constructor_core/treeview-default.gif +0 -0
  39. data/core/app/assets/images/constructor_core/treeview-famfamfam-line.gif +0 -0
  40. data/core/app/assets/images/constructor_core/treeview-famfamfam.gif +0 -0
  41. data/core/app/assets/images/constructor_core/treeview-gray-line.gif +0 -0
  42. data/core/app/assets/images/constructor_core/treeview-gray.gif +0 -0
  43. data/core/app/assets/images/constructor_core/treeview-red-line.gif +0 -0
  44. data/core/app/assets/images/constructor_core/treeview-red.gif +0 -0
  45. data/core/app/assets/images/constructor_core/twitter.png +0 -0
  46. data/core/app/assets/images/constructor_core/widgets.png +0 -0
  47. data/core/app/assets/javascripts/constructor_core/application.js.coffee +0 -57
  48. data/core/app/assets/javascripts/constructor_core/bootstrap.js +0 -2276
  49. data/core/app/assets/javascripts/constructor_core/jquery.cookie.js +0 -92
  50. data/core/app/assets/javascripts/constructor_core/jquery.treeview.js +0 -256
  51. data/core/app/assets/javascripts/constructor_core/jquery_bundle.js.coffee +0 -4
  52. data/core/app/assets/javascripts/constructor_core/urlify.js +0 -82
  53. data/core/app/assets/stylesheets/constructor_core/application.css.scss +0 -57
  54. data/core/app/assets/stylesheets/constructor_core/bootstrap-responsive.css +0 -1109
  55. data/core/app/assets/stylesheets/constructor_core/bootstrap.css +0 -6158
  56. data/core/app/assets/stylesheets/constructor_core/jquery.treeview.css +0 -73
  57. data/core/app/controllers/constructor_core/admin_controller.rb +0 -6
  58. data/core/app/controllers/constructor_core/sessions_controller.rb +0 -15
  59. data/core/app/helpers/constructor_core/devise_helper.rb +0 -24
  60. data/core/app/models/constructor_core/user.rb +0 -10
  61. data/core/app/views/constructor_core/devise/confirmations/new.html.haml +0 -10
  62. data/core/app/views/constructor_core/devise/mailer/confirmation_instructions.html.haml +0 -5
  63. data/core/app/views/constructor_core/devise/mailer/reset_password_instructions.html.haml +0 -7
  64. data/core/app/views/constructor_core/devise/mailer/unlock_instructions.html.haml +0 -5
  65. data/core/app/views/constructor_core/devise/passwords/edit.html.haml +0 -21
  66. data/core/app/views/constructor_core/devise/passwords/new.html.haml +0 -13
  67. data/core/app/views/constructor_core/devise/registrations/edit.html.haml +0 -28
  68. data/core/app/views/constructor_core/devise/registrations/new.html.haml +0 -20
  69. data/core/app/views/constructor_core/devise/shared/_links.html.haml +0 -19
  70. data/core/app/views/constructor_core/devise/unlocks/new.html.haml +0 -9
  71. data/core/app/views/constructor_core/sessions/new.html.haml +0 -24
  72. data/core/app/views/layouts/constructor_core/application_admin.haml +0 -65
  73. data/core/config/environments/production.rb +0 -3
  74. data/core/config/initializers/devise.rb +0 -223
  75. data/core/config/locales/devise.en.yml +0 -56
  76. data/core/config/locales/devise.ru.yml +0 -52
  77. data/core/config/locales/ru.yml +0 -12
  78. data/core/config/routes.rb +0 -9
  79. data/core/constructor-core.gemspec +0 -16
  80. data/core/db/migrate/1_devise_users.rb +0 -56
  81. data/core/db/migrate/2_add_default_user.rb +0 -9
  82. data/core/lib/constructor-core.rb +0 -23
  83. data/core/lib/constructor_core/engine.rb +0 -6
  84. data/core/spec/factories.rb +0 -2
  85. data/core/spec/lib/nav/group_spec.rb +0 -61
  86. data/core/spec/lib/nav/item_spec.rb +0 -151
  87. data/core/spec/lib/nav_lib_spec.rb +0 -60
  88. data/core/spec/spec_helper.rb +0 -34
  89. data/core/vendor/assets/javascripts/.gitkeep +0 -0
  90. data/core/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -913
  91. data/core/vendor/assets/javascripts/ckeditor/config.js +0 -38
  92. data/core/vendor/assets/javascripts/ckeditor/lang/en.js +0 -5
  93. data/core/vendor/assets/javascripts/ckeditor/lang/ru.js +0 -5
  94. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
  95. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
  96. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -9
  97. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -9
  98. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -9
  99. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -10
  100. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -9
  101. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -9
  102. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -10
  103. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -10
  104. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -9
  105. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -10
  106. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -10
  107. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -9
  108. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -9
  109. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -10
  110. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -10
  111. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -9
  112. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -9
  113. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -9
  114. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -9
  115. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -9
  116. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -10
  117. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
  118. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -9
  119. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -10
  120. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -9
  121. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -10
  122. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -9
  123. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -9
  124. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -9
  125. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -10
  126. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -9
  127. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -10
  128. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -9
  129. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -9
  130. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -9
  131. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -9
  132. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -10
  133. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -9
  134. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -10
  135. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -9
  136. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -10
  137. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -9
  138. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -9
  139. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -9
  140. data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -7
  141. data/core/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
  142. data/core/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  143. data/core/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
  144. data/core/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -13
  145. data/core/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  146. data/core/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
  147. data/core/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
  148. data/core/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -24
  149. data/core/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  150. data/core/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  151. data/core/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  152. data/core/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -43
  153. data/core/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  154. data/core/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
  155. data/core/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -36
  156. data/core/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  157. data/core/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
  158. data/core/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  159. data/core/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -31
  160. data/core/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -10
  161. data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
  162. data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
  163. data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -20
  164. data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
  165. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  166. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  167. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  168. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  169. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  170. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  171. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  172. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  173. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  174. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  175. data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  176. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
  177. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -13
  178. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
  179. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
  180. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
  181. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
  182. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
  183. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
  184. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
  185. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
  186. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
  187. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -11
  188. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -13
  189. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
  190. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
  191. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
  192. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
  193. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
  194. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
  195. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
  196. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
  197. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
  198. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
  199. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
  200. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
  201. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
  202. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
  203. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
  204. data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
  205. data/core/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
  206. data/core/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -16
  207. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
  208. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
  209. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
  210. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  211. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  212. data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  213. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
  214. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
  215. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
  216. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  217. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  218. data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -11
  219. data/core/vendor/assets/javascripts/ckeditor/styles.js +0 -111
  220. data/core/vendor/assets/stylesheets/.gitkeep +0 -0
  221. data/core/vendor/assets/stylesheets/ckeditor/contents.css +0 -103
  222. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +0 -5
  223. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +0 -5
  224. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +0 -5
  225. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +0 -5
  226. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +0 -5
  227. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +0 -5
  228. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +0 -5
  229. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +0 -5
  230. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +0 -5
  231. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +0 -5
  232. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/icons.png +0 -0
  233. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/arrow.png +0 -0
  234. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/close.png +0 -0
  235. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/mini.png +0 -0
  236. data/core/vendor/assets/stylesheets/ckeditor/skins/moono/readme.md +0 -51
  237. data/lib/constructor/engine.rb +0 -6
  238. data/pages/app/assets/images/constructor_pages/arrow_down.png +0 -0
  239. data/pages/app/assets/images/constructor_pages/arrow_up.png +0 -0
  240. data/pages/app/assets/images/constructor_pages/information.png +0 -0
  241. data/pages/app/assets/images/constructor_pages/page_white_edit.png +0 -0
  242. data/pages/app/assets/images/constructor_pages/photos.png +0 -0
  243. data/pages/app/controllers/constructor_pages/fields_controller.rb +0 -60
  244. data/pages/app/controllers/constructor_pages/pages_controller.rb +0 -207
  245. data/pages/app/controllers/constructor_pages/templates_controller.rb +0 -71
  246. data/pages/app/helpers/constructor_pages/fields_helper.rb +0 -18
  247. data/pages/app/helpers/constructor_pages/pages_helper.rb +0 -15
  248. data/pages/app/helpers/constructor_pages/templates_helper.rb +0 -11
  249. data/pages/app/models/constructor_pages/field.rb +0 -60
  250. data/pages/app/models/constructor_pages/page.rb +0 -117
  251. data/pages/app/models/constructor_pages/template.rb +0 -30
  252. data/pages/app/models/constructor_pages/types/boolean_type.rb +0 -12
  253. data/pages/app/models/constructor_pages/types/date_type.rb +0 -16
  254. data/pages/app/models/constructor_pages/types/float_type.rb +0 -12
  255. data/pages/app/models/constructor_pages/types/html_type.rb +0 -12
  256. data/pages/app/models/constructor_pages/types/image_type.rb +0 -18
  257. data/pages/app/models/constructor_pages/types/integer_type.rb +0 -12
  258. data/pages/app/models/constructor_pages/types/string_type.rb +0 -12
  259. data/pages/app/models/constructor_pages/types/text_type.rb +0 -12
  260. data/pages/app/views/constructor_pages/fields/_form.haml +0 -28
  261. data/pages/app/views/constructor_pages/fields/edit.haml +0 -6
  262. data/pages/app/views/constructor_pages/fields/new.haml +0 -6
  263. data/pages/app/views/constructor_pages/fields/types/_boolean.haml +0 -1
  264. data/pages/app/views/constructor_pages/fields/types/_date.haml +0 -1
  265. data/pages/app/views/constructor_pages/fields/types/_float.haml +0 -1
  266. data/pages/app/views/constructor_pages/fields/types/_html.haml +0 -1
  267. data/pages/app/views/constructor_pages/fields/types/_image.haml +0 -4
  268. data/pages/app/views/constructor_pages/fields/types/_integer.haml +0 -1
  269. data/pages/app/views/constructor_pages/fields/types/_string.haml +0 -1
  270. data/pages/app/views/constructor_pages/fields/types/_text.haml +0 -1
  271. data/pages/app/views/constructor_pages/pages/_breadcrumbs.haml +0 -7
  272. data/pages/app/views/constructor_pages/pages/_form.haml +0 -98
  273. data/pages/app/views/constructor_pages/pages/_menu.haml +0 -8
  274. data/pages/app/views/constructor_pages/pages/_submenu.haml +0 -6
  275. data/pages/app/views/constructor_pages/pages/edit.haml +0 -6
  276. data/pages/app/views/constructor_pages/pages/error_404.haml +0 -23
  277. data/pages/app/views/constructor_pages/pages/index.haml +0 -50
  278. data/pages/app/views/constructor_pages/pages/new.haml +0 -6
  279. data/pages/app/views/constructor_pages/pages/show.haml +0 -5
  280. data/pages/app/views/constructor_pages/pages/sitemap.haml +0 -12
  281. data/pages/app/views/constructor_pages/templates/_form.haml +0 -48
  282. data/pages/app/views/constructor_pages/templates/edit.haml +0 -6
  283. data/pages/app/views/constructor_pages/templates/index.haml +0 -38
  284. data/pages/app/views/constructor_pages/templates/new.haml +0 -6
  285. data/pages/config/initializers/dragonfly.rb +0 -9
  286. data/pages/config/locales/ru.yml +0 -39
  287. data/pages/config/routes.rb +0 -34
  288. data/pages/constructor-pages.gemspec +0 -21
  289. data/pages/db/migrate/10_create_html_types.rb +0 -15
  290. data/pages/db/migrate/11_create_image_types.rb +0 -16
  291. data/pages/db/migrate/12_add_default_template.rb +0 -13
  292. data/pages/db/migrate/1_create_pages.rb +0 -27
  293. data/pages/db/migrate/2_create_templates.rb +0 -18
  294. data/pages/db/migrate/3_create_fields.rb +0 -17
  295. data/pages/db/migrate/4_create_string_types.rb +0 -15
  296. data/pages/db/migrate/5_create_float_types.rb +0 -15
  297. data/pages/db/migrate/6_create_boolean_types.rb +0 -15
  298. data/pages/db/migrate/7_create_integer_types.rb +0 -15
  299. data/pages/db/migrate/8_create_text_types.rb +0 -15
  300. data/pages/db/migrate/9_create_date_types.rb +0 -15
  301. data/pages/lib/constructor-pages.rb +0 -7
  302. data/pages/lib/constructor_pages/engine.rb +0 -6
  303. data/pages/public/hello.txt +0 -1
  304. data/pages/spec/factories.rb +0 -7
  305. data/pages/spec/models/page_model_spec.rb +0 -113
@@ -1,92 +0,0 @@
1
- /**
2
- * Cookie plugin
3
- *
4
- * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
5
- * Dual licensed under the MIT and GPL licenses:
6
- * http://www.opensource.org/licenses/mit-license.php
7
- * http://www.gnu.org/licenses/gpl.html
8
- *
9
- */
10
-
11
- /**
12
- * Create a cookie with the given name and value and other optional parameters.
13
- *
14
- * @example $.cookie('the_cookie', 'the_value');
15
- * @desc Set the value of a cookie.
16
- * @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});
17
- * @desc Create a cookie with all available options.
18
- * @example $.cookie('the_cookie', 'the_value');
19
- * @desc Create a session cookie.
20
- * @example $.cookie('the_cookie', null);
21
- * @desc Delete a cookie by passing null as value.
22
- *
23
- * @param String name The name of the cookie.
24
- * @param String value The value of the cookie.
25
- * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
26
- * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
27
- * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
28
- * If set to null or omitted, the cookie will be a session cookie and will not be retained
29
- * when the the browser exits.
30
- * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
31
- * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
32
- * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
33
- * require a secure protocol (like HTTPS).
34
- * @type undefined
35
- *
36
- * @name $.cookie
37
- * @cat Plugins/Cookie
38
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
39
- */
40
-
41
- /**
42
- * Get the value of a cookie with the given name.
43
- *
44
- * @example $.cookie('the_cookie');
45
- * @desc Get the value of a cookie.
46
- *
47
- * @param String name The name of the cookie.
48
- * @return The value of the cookie.
49
- * @type String
50
- *
51
- * @name $.cookie
52
- * @cat Plugins/Cookie
53
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
54
- */
55
- jQuery.cookie = function(name, value, options) {
56
- if (typeof value != 'undefined') { // name and value given, set cookie
57
- options = options || {};
58
- if (value === null) {
59
- value = '';
60
- options.expires = -1;
61
- }
62
- var expires = '';
63
- if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
64
- var date;
65
- if (typeof options.expires == 'number') {
66
- date = new Date();
67
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
68
- } else {
69
- date = options.expires;
70
- }
71
- expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
72
- }
73
- var path = options.path ? '; path=' + options.path : '';
74
- var domain = options.domain ? '; domain=' + options.domain : '';
75
- var secure = options.secure ? '; secure' : '';
76
- document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
77
- } else { // only name given, get cookie
78
- var cookieValue = null;
79
- if (document.cookie && document.cookie != '') {
80
- var cookies = document.cookie.split(';');
81
- for (var i = 0; i < cookies.length; i++) {
82
- var cookie = jQuery.trim(cookies[i]);
83
- // Does this cookie string begin with the name we want?
84
- if (cookie.substring(0, name.length + 1) == (name + '=')) {
85
- cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
86
- break;
87
- }
88
- }
89
- }
90
- return cookieValue;
91
- }
92
- };
@@ -1,256 +0,0 @@
1
- /*
2
- * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
3
- *
4
- * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
5
- * http://docs.jquery.com/Plugins/Treeview
6
- *
7
- * Copyright (c) 2007 Jörn Zaefferer
8
- *
9
- * Dual licensed under the MIT and GPL licenses:
10
- * http://www.opensource.org/licenses/mit-license.php
11
- * http://www.gnu.org/licenses/gpl.html
12
- *
13
- * Revision: $Id: jquery.treeview.js 5759 2008-07-01 07:50:28Z joern.zaefferer $
14
- *
15
- */
16
-
17
- ;(function($) {
18
-
19
- // TODO rewrite as a widget, removing all the extra plugins
20
- $.extend($.fn, {
21
- swapClass: function(c1, c2) {
22
- var c1Elements = this.filter('.' + c1);
23
- this.filter('.' + c2).removeClass(c2).addClass(c1);
24
- c1Elements.removeClass(c1).addClass(c2);
25
- return this;
26
- },
27
- replaceClass: function(c1, c2) {
28
- return this.filter('.' + c1).removeClass(c1).addClass(c2).end();
29
- },
30
- hoverClass: function(className) {
31
- className = className || "hover";
32
- return this.hover(function() {
33
- $(this).addClass(className);
34
- }, function() {
35
- $(this).removeClass(className);
36
- });
37
- },
38
- heightToggle: function(animated, callback) {
39
- animated ?
40
- this.animate({ height: "toggle" }, animated, callback) :
41
- this.each(function(){
42
- jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
43
- if(callback)
44
- callback.apply(this, arguments);
45
- });
46
- },
47
- heightHide: function(animated, callback) {
48
- if (animated) {
49
- this.animate({ height: "hide" }, animated, callback);
50
- } else {
51
- this.hide();
52
- if (callback)
53
- this.each(callback);
54
- }
55
- },
56
- prepareBranches: function(settings) {
57
- if (!settings.prerendered) {
58
- // mark last tree items
59
- this.filter(":last-child:not(ul)").addClass(CLASSES.last);
60
- // collapse whole tree, or only those marked as closed, anyway except those marked as open
61
- this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide();
62
- }
63
- // return all items with sublists
64
- return this.filter(":has(>ul)");
65
- },
66
- applyClasses: function(settings, toggler) {
67
- // TODO use event delegation
68
- this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) {
69
- // don't handle click events on children, eg. checkboxes
70
- if ( this == event.target )
71
- toggler.apply($(this).next());
72
- }).add( $("a", this) ).hoverClass();
73
-
74
- if (!settings.prerendered) {
75
- // handle closed ones first
76
- this.filter(":has(>ul:hidden)")
77
- .addClass(CLASSES.expandable)
78
- .replaceClass(CLASSES.last, CLASSES.lastExpandable);
79
-
80
- // handle open ones
81
- this.not(":has(>ul:hidden)")
82
- .addClass(CLASSES.collapsable)
83
- .replaceClass(CLASSES.last, CLASSES.lastCollapsable);
84
-
85
- // create hitarea if not present
86
- var hitarea = this.find("div." + CLASSES.hitarea);
87
- if (!hitarea.length)
88
- hitarea = this.prepend("<div class=\"" + CLASSES.hitarea + "\"/>").find("div." + CLASSES.hitarea);
89
- hitarea.removeClass().addClass(CLASSES.hitarea).each(function() {
90
- var classes = "";
91
- $.each($(this).parent().attr("class").split(" "), function() {
92
- classes += this + "-hitarea ";
93
- });
94
- $(this).addClass( classes );
95
- })
96
- }
97
-
98
- // apply event to hitarea
99
- this.find("div." + CLASSES.hitarea).click( toggler );
100
- },
101
- treeview: function(settings) {
102
-
103
- settings = $.extend({
104
- cookieId: "treeview"
105
- }, settings);
106
-
107
- if ( settings.toggle ) {
108
- var callback = settings.toggle;
109
- settings.toggle = function() {
110
- return callback.apply($(this).parent()[0], arguments);
111
- };
112
- }
113
-
114
- // factory for treecontroller
115
- function treeController(tree, control) {
116
- // factory for click handlers
117
- function handler(filter) {
118
- return function() {
119
- // reuse toggle event handler, applying the elements to toggle
120
- // start searching for all hitareas
121
- toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() {
122
- // for plain toggle, no filter is provided, otherwise we need to check the parent element
123
- return filter ? $(this).parent("." + filter).length : true;
124
- }) );
125
- return false;
126
- };
127
- }
128
- // click on first element to collapse tree
129
- $("a:eq(0)", control).click( handler(CLASSES.collapsable) );
130
- // click on second to expand tree
131
- $("a:eq(1)", control).click( handler(CLASSES.expandable) );
132
- // click on third to toggle tree
133
- $("a:eq(2)", control).click( handler() );
134
- }
135
-
136
- // handle toggle event
137
- function toggler() {
138
- $(this)
139
- .parent()
140
- // swap classes for hitarea
141
- .find(">.hitarea")
142
- .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
143
- .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
144
- .end()
145
- // swap classes for parent li
146
- .swapClass( CLASSES.collapsable, CLASSES.expandable )
147
- .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
148
- // find child lists
149
- .find( ">ul" )
150
- // toggle them
151
- .heightToggle( settings.animated, settings.toggle );
152
- if ( settings.unique ) {
153
- $(this).parent()
154
- .siblings()
155
- // swap classes for hitarea
156
- .find(">.hitarea")
157
- .replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
158
- .replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
159
- .end()
160
- .replaceClass( CLASSES.collapsable, CLASSES.expandable )
161
- .replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
162
- .find( ">ul" )
163
- .heightHide( settings.animated, settings.toggle );
164
- }
165
- }
166
- this.data("toggler", toggler);
167
-
168
- function serialize() {
169
- function binary(arg) {
170
- return arg ? 1 : 0;
171
- }
172
- var data = [];
173
- branches.each(function(i, e) {
174
- data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
175
- });
176
- $.cookie(settings.cookieId, data.join(""), settings.cookieOptions );
177
- }
178
-
179
- function deserialize() {
180
- var stored = $.cookie(settings.cookieId);
181
- if ( stored ) {
182
- var data = stored.split("");
183
- branches.each(function(i, e) {
184
- $(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ]();
185
- });
186
- }
187
- }
188
-
189
- // add treeview class to activate styles
190
- this.addClass("treeview");
191
-
192
- // prepare branches and find all tree items with child lists
193
- var branches = this.find("li").prepareBranches(settings);
194
-
195
- switch(settings.persist) {
196
- case "cookie":
197
- var toggleCallback = settings.toggle;
198
- settings.toggle = function() {
199
- serialize();
200
- if (toggleCallback) {
201
- toggleCallback.apply(this, arguments);
202
- }
203
- };
204
- deserialize();
205
- break;
206
- case "location":
207
- var current = this.find("a").filter(function() {
208
- return this.href.toLowerCase() == location.href.toLowerCase();
209
- });
210
- if ( current.length ) {
211
- // TODO update the open/closed classes
212
- var items = current.addClass("selected").parents("ul, li").add( current.next() ).show();
213
- if (settings.prerendered) {
214
- // if prerendered is on, replicate the basic class swapping
215
- items.filter("li")
216
- .swapClass( CLASSES.collapsable, CLASSES.expandable )
217
- .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
218
- .find(">.hitarea")
219
- .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
220
- .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea );
221
- }
222
- }
223
- break;
224
- }
225
-
226
- branches.applyClasses(settings, toggler);
227
-
228
- // if control option is set, create the treecontroller and show it
229
- if ( settings.control ) {
230
- treeController(this, settings.control);
231
- $(settings.control).show();
232
- }
233
-
234
- return this;
235
- }
236
- });
237
-
238
- // classes used by the plugin
239
- // need to be styled via external stylesheet, see first example
240
- $.treeview = {};
241
- var CLASSES = ($.treeview.classes = {
242
- open: "open",
243
- closed: "closed",
244
- expandable: "expandable",
245
- expandableHitarea: "expandable-hitarea",
246
- lastExpandableHitarea: "lastExpandable-hitarea",
247
- collapsable: "collapsable",
248
- collapsableHitarea: "collapsable-hitarea",
249
- lastCollapsableHitarea: "lastCollapsable-hitarea",
250
- lastCollapsable: "lastCollapsable",
251
- lastExpandable: "lastExpandable",
252
- last: "last",
253
- hitarea: "hitarea"
254
- });
255
-
256
- })(jQuery);
@@ -1,4 +0,0 @@
1
- #= require jquery
2
- #= require jquery_ujs
3
- #= require constructor_core/jquery.cookie
4
- #= require constructor_core/jquery.treeview
@@ -1,82 +0,0 @@
1
- var RUSSIAN_MAP = {
2
- 'а':'a', 'б':'b', 'в':'v', 'г':'g', 'д':'d', 'е':'e', 'ё':'yo', 'ж':'zh',
3
- 'з':'z', 'и':'i', 'й':'y', 'к':'k', 'л':'l', 'м':'m', 'н':'n', 'о':'o',
4
- 'п':'p', 'р':'r', 'с':'s', 'т':'t', 'у':'u', 'ф':'f', 'х':'h', 'ц':'ts',
5
- 'ч':'ch', 'ш':'sh', 'щ':'sch', 'ъ':'', 'ы':'y', 'ь':'', 'э':'e', 'ю':'yu',
6
- 'я':'ya',
7
- 'А':'A', 'Б':'B', 'В':'V', 'Г':'G', 'Д':'D', 'Е':'E', 'Ё':'Yo', 'Ж':'Zh',
8
- 'З':'Z', 'И':'I', 'Й':'J', 'К':'K', 'Л':'L', 'М':'M', 'Н':'N', 'О':'O',
9
- 'П':'P', 'Р':'R', 'С':'S', 'Т':'T', 'У':'U', 'Ф':'F', 'Х':'H', 'Ц':'Ts',
10
- 'Ч':'Ch', 'Ш':'Sh', 'Щ':'Sch', 'Ъ':'', 'Ы':'Y', 'Ь':'', 'Э':'E', 'Ю':'Yu',
11
- 'Я':'Ya'
12
- }
13
-
14
- var ALL_DOWNCODE_MAPS=new Array()
15
- ALL_DOWNCODE_MAPS[0]=RUSSIAN_MAP
16
-
17
- var Downcoder = new Object();
18
- Downcoder.Initialize = function()
19
- {
20
- if (Downcoder.map) // already made
21
- return ;
22
- Downcoder.map ={}
23
- Downcoder.chars = '' ;
24
- for(var i in ALL_DOWNCODE_MAPS)
25
- {
26
- var lookup = ALL_DOWNCODE_MAPS[i]
27
- for (var c in lookup)
28
- {
29
- Downcoder.map[c] = lookup[c] ;
30
- Downcoder.chars += c ;
31
- }
32
- }
33
- Downcoder.regex = new RegExp('[' + Downcoder.chars + ']|[^' + Downcoder.chars + ']+','g') ;
34
- }
35
-
36
- downcode= function( slug )
37
- {
38
- Downcoder.Initialize() ;
39
- var downcoded =""
40
- var pieces = slug.match(Downcoder.regex);
41
- if(pieces)
42
- {
43
- for (var i = 0 ; i < pieces.length ; i++)
44
- {
45
- if (pieces[i].length == 1)
46
- {
47
- var mapped = Downcoder.map[pieces[i]] ;
48
- if (mapped != null)
49
- {
50
- downcoded+=mapped;
51
- continue ;
52
- }
53
- }
54
- downcoded+=pieces[i];
55
- }
56
- }
57
- else
58
- {
59
- downcoded = slug;
60
- }
61
- return downcoded;
62
- }
63
-
64
-
65
- function URLify(s, num_chars) {
66
- // changes, e.g., "Petty theft" to "petty_theft"
67
- // remove all these words from the string before urlifying
68
- s = downcode(s);
69
- removelist = ["a", "an", "as", "at", "before", "but", "by", "for", "from",
70
- "is", "in", "into", "like", "of", "off", "on", "onto", "per",
71
- "since", "than", "the", "this", "that", "to", "up", "via",
72
- "with"];
73
- r = new RegExp('\\b(' + removelist.join('|') + ')\\b', 'gi');
74
- s = s.replace(r, '');
75
- // if downcode doesn't hit, the char will be stripped here
76
- s = s.replace(/[^-\w\s]/g, ''); // remove unneeded chars
77
- s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
78
- s = s.replace(/[-\s]+/g, '-'); // convert spaces to hyphens
79
- s = s.toLowerCase(); // convert to lowercase
80
- return s.substring(0, num_chars);// trim to first num_chars chars
81
- }
82
-
@@ -1,57 +0,0 @@
1
- //= require_self
2
- //= require ckeditor/contents
3
- //= require ckeditor/skins/moono/editor.css
4
- //= require constructor_core/bootstrap
5
- //= require constructor_core/bootstrap-responsive
6
- //= require constructor_core/jquery.treeview
7
-
8
- body {
9
- padding-top: 40px;
10
- }
11
-
12
- .images_controls {
13
- float: left;
14
- overflow: hidden;
15
- display: inline-block;
16
- width: 180px;
17
- margin-bottom: 20px;
18
-
19
- .actions {
20
- margin-top: 5px;
21
- margin-left: 28px;
22
- }
23
- }
24
-
25
- .sizes .controls {
26
- margin-bottom: 30px;
27
- }
28
-
29
- .url {
30
- font-size: 12px;
31
-
32
- .full_url {
33
- margin-top: 6px;
34
- float: left;
35
- }
36
-
37
- .icon-pencil {
38
- margin-top: 5px;
39
- margin-left: 3px;
40
- }
41
-
42
- .address {
43
- font-weight: bold;
44
-
45
- &:hover {
46
- background-color: #ffa;
47
- }
48
- }
49
- }
50
-
51
- .url .icon-pencil {
52
- display: none;
53
- }
54
-
55
- .url:hover .icon-pencil {
56
- display: inline-block;
57
- }