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.
- data/lib/constructor-cms/engine.rb +6 -0
- data/lib/constructor-cms.rb +1 -1
- metadata +4 -305
- data/.idea/.name +0 -1
- data/.idea/constructor.iml +0 -62
- data/.idea/encodings.xml +0 -5
- data/.idea/misc.xml +0 -5
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -873
- data/.rspec +0 -2
- data/cap/app/assets/images/constructor_cap/cross.png +0 -0
- data/cap/app/assets/images/constructor_cap/page_white_edit.png +0 -0
- data/cap/app/controllers/constructor_cap/emails_controller.rb +0 -71
- data/cap/app/models/constructor_cap/email.rb +0 -15
- data/cap/app/views/constructor_cap/emails/_form.haml +0 -17
- data/cap/app/views/constructor_cap/emails/edit.haml +0 -5
- data/cap/app/views/constructor_cap/emails/index.haml +0 -27
- data/cap/app/views/constructor_cap/emails/new.haml +0 -5
- data/cap/app/views/constructor_cap/emails/show.haml +0 -54
- data/cap/config/initializers/admin_menu.rb +0 -4
- data/cap/config/locales/ru.yml +0 -23
- data/cap/config/routes.rb +0 -9
- data/cap/constructor-cap.gemspec +0 -19
- data/cap/db/migrate/20110510182404_create_emails.rb +0 -12
- data/cap/lib/constructor-cap.rb +0 -2
- data/cap/lib/constructor_cap/engine.rb +0 -6
- data/constructor-cms.gemspec +0 -21
- data/core/app/assets/images/constructor_core/glyphicons-halflings-white.png +0 -0
- data/core/app/assets/images/constructor_core/glyphicons-halflings.png +0 -0
- data/core/app/assets/images/constructor_core/minus.gif +0 -0
- data/core/app/assets/images/constructor_core/plus.gif +0 -0
- data/core/app/assets/images/constructor_core/rss.png +0 -0
- data/core/app/assets/images/constructor_core/treeview-black-line.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-black.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-default-line.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-default.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-famfamfam-line.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-famfamfam.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-gray-line.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-gray.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-red-line.gif +0 -0
- data/core/app/assets/images/constructor_core/treeview-red.gif +0 -0
- data/core/app/assets/images/constructor_core/twitter.png +0 -0
- data/core/app/assets/images/constructor_core/widgets.png +0 -0
- data/core/app/assets/javascripts/constructor_core/application.js.coffee +0 -57
- data/core/app/assets/javascripts/constructor_core/bootstrap.js +0 -2276
- data/core/app/assets/javascripts/constructor_core/jquery.cookie.js +0 -92
- data/core/app/assets/javascripts/constructor_core/jquery.treeview.js +0 -256
- data/core/app/assets/javascripts/constructor_core/jquery_bundle.js.coffee +0 -4
- data/core/app/assets/javascripts/constructor_core/urlify.js +0 -82
- data/core/app/assets/stylesheets/constructor_core/application.css.scss +0 -57
- data/core/app/assets/stylesheets/constructor_core/bootstrap-responsive.css +0 -1109
- data/core/app/assets/stylesheets/constructor_core/bootstrap.css +0 -6158
- data/core/app/assets/stylesheets/constructor_core/jquery.treeview.css +0 -73
- data/core/app/controllers/constructor_core/admin_controller.rb +0 -6
- data/core/app/controllers/constructor_core/sessions_controller.rb +0 -15
- data/core/app/helpers/constructor_core/devise_helper.rb +0 -24
- data/core/app/models/constructor_core/user.rb +0 -10
- data/core/app/views/constructor_core/devise/confirmations/new.html.haml +0 -10
- data/core/app/views/constructor_core/devise/mailer/confirmation_instructions.html.haml +0 -5
- data/core/app/views/constructor_core/devise/mailer/reset_password_instructions.html.haml +0 -7
- data/core/app/views/constructor_core/devise/mailer/unlock_instructions.html.haml +0 -5
- data/core/app/views/constructor_core/devise/passwords/edit.html.haml +0 -21
- data/core/app/views/constructor_core/devise/passwords/new.html.haml +0 -13
- data/core/app/views/constructor_core/devise/registrations/edit.html.haml +0 -28
- data/core/app/views/constructor_core/devise/registrations/new.html.haml +0 -20
- data/core/app/views/constructor_core/devise/shared/_links.html.haml +0 -19
- data/core/app/views/constructor_core/devise/unlocks/new.html.haml +0 -9
- data/core/app/views/constructor_core/sessions/new.html.haml +0 -24
- data/core/app/views/layouts/constructor_core/application_admin.haml +0 -65
- data/core/config/environments/production.rb +0 -3
- data/core/config/initializers/devise.rb +0 -223
- data/core/config/locales/devise.en.yml +0 -56
- data/core/config/locales/devise.ru.yml +0 -52
- data/core/config/locales/ru.yml +0 -12
- data/core/config/routes.rb +0 -9
- data/core/constructor-core.gemspec +0 -16
- data/core/db/migrate/1_devise_users.rb +0 -56
- data/core/db/migrate/2_add_default_user.rb +0 -9
- data/core/lib/constructor-core.rb +0 -23
- data/core/lib/constructor_core/engine.rb +0 -6
- data/core/spec/factories.rb +0 -2
- data/core/spec/lib/nav/group_spec.rb +0 -61
- data/core/spec/lib/nav/item_spec.rb +0 -151
- data/core/spec/lib/nav_lib_spec.rb +0 -60
- data/core/spec/spec_helper.rb +0 -34
- data/core/vendor/assets/javascripts/.gitkeep +0 -0
- data/core/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -913
- data/core/vendor/assets/javascripts/ckeditor/config.js +0 -38
- data/core/vendor/assets/javascripts/ckeditor/lang/en.js +0 -5
- data/core/vendor/assets/javascripts/ckeditor/lang/ru.js +0 -5
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -7
- data/core/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
- data/core/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/core/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -24
- data/core/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -43
- data/core/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
- data/core/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -36
- data/core/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -31
- data/core/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
- data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
- data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -20
- data/core/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- data/core/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- data/core/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
- data/core/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -16
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- data/core/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -11
- data/core/vendor/assets/javascripts/ckeditor/styles.js +0 -111
- data/core/vendor/assets/stylesheets/.gitkeep +0 -0
- data/core/vendor/assets/stylesheets/ckeditor/contents.css +0 -103
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +0 -5
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/icons.png +0 -0
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/arrow.png +0 -0
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/close.png +0 -0
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/images/mini.png +0 -0
- data/core/vendor/assets/stylesheets/ckeditor/skins/moono/readme.md +0 -51
- data/lib/constructor/engine.rb +0 -6
- data/pages/app/assets/images/constructor_pages/arrow_down.png +0 -0
- data/pages/app/assets/images/constructor_pages/arrow_up.png +0 -0
- data/pages/app/assets/images/constructor_pages/information.png +0 -0
- data/pages/app/assets/images/constructor_pages/page_white_edit.png +0 -0
- data/pages/app/assets/images/constructor_pages/photos.png +0 -0
- data/pages/app/controllers/constructor_pages/fields_controller.rb +0 -60
- data/pages/app/controllers/constructor_pages/pages_controller.rb +0 -207
- data/pages/app/controllers/constructor_pages/templates_controller.rb +0 -71
- data/pages/app/helpers/constructor_pages/fields_helper.rb +0 -18
- data/pages/app/helpers/constructor_pages/pages_helper.rb +0 -15
- data/pages/app/helpers/constructor_pages/templates_helper.rb +0 -11
- data/pages/app/models/constructor_pages/field.rb +0 -60
- data/pages/app/models/constructor_pages/page.rb +0 -117
- data/pages/app/models/constructor_pages/template.rb +0 -30
- data/pages/app/models/constructor_pages/types/boolean_type.rb +0 -12
- data/pages/app/models/constructor_pages/types/date_type.rb +0 -16
- data/pages/app/models/constructor_pages/types/float_type.rb +0 -12
- data/pages/app/models/constructor_pages/types/html_type.rb +0 -12
- data/pages/app/models/constructor_pages/types/image_type.rb +0 -18
- data/pages/app/models/constructor_pages/types/integer_type.rb +0 -12
- data/pages/app/models/constructor_pages/types/string_type.rb +0 -12
- data/pages/app/models/constructor_pages/types/text_type.rb +0 -12
- data/pages/app/views/constructor_pages/fields/_form.haml +0 -28
- data/pages/app/views/constructor_pages/fields/edit.haml +0 -6
- data/pages/app/views/constructor_pages/fields/new.haml +0 -6
- data/pages/app/views/constructor_pages/fields/types/_boolean.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_date.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_float.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_html.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_image.haml +0 -4
- data/pages/app/views/constructor_pages/fields/types/_integer.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_string.haml +0 -1
- data/pages/app/views/constructor_pages/fields/types/_text.haml +0 -1
- data/pages/app/views/constructor_pages/pages/_breadcrumbs.haml +0 -7
- data/pages/app/views/constructor_pages/pages/_form.haml +0 -98
- data/pages/app/views/constructor_pages/pages/_menu.haml +0 -8
- data/pages/app/views/constructor_pages/pages/_submenu.haml +0 -6
- data/pages/app/views/constructor_pages/pages/edit.haml +0 -6
- data/pages/app/views/constructor_pages/pages/error_404.haml +0 -23
- data/pages/app/views/constructor_pages/pages/index.haml +0 -50
- data/pages/app/views/constructor_pages/pages/new.haml +0 -6
- data/pages/app/views/constructor_pages/pages/show.haml +0 -5
- data/pages/app/views/constructor_pages/pages/sitemap.haml +0 -12
- data/pages/app/views/constructor_pages/templates/_form.haml +0 -48
- data/pages/app/views/constructor_pages/templates/edit.haml +0 -6
- data/pages/app/views/constructor_pages/templates/index.haml +0 -38
- data/pages/app/views/constructor_pages/templates/new.haml +0 -6
- data/pages/config/initializers/dragonfly.rb +0 -9
- data/pages/config/locales/ru.yml +0 -39
- data/pages/config/routes.rb +0 -34
- data/pages/constructor-pages.gemspec +0 -21
- data/pages/db/migrate/10_create_html_types.rb +0 -15
- data/pages/db/migrate/11_create_image_types.rb +0 -16
- data/pages/db/migrate/12_add_default_template.rb +0 -13
- data/pages/db/migrate/1_create_pages.rb +0 -27
- data/pages/db/migrate/2_create_templates.rb +0 -18
- data/pages/db/migrate/3_create_fields.rb +0 -17
- data/pages/db/migrate/4_create_string_types.rb +0 -15
- data/pages/db/migrate/5_create_float_types.rb +0 -15
- data/pages/db/migrate/6_create_boolean_types.rb +0 -15
- data/pages/db/migrate/7_create_integer_types.rb +0 -15
- data/pages/db/migrate/8_create_text_types.rb +0 -15
- data/pages/db/migrate/9_create_date_types.rb +0 -15
- data/pages/lib/constructor-pages.rb +0 -7
- data/pages/lib/constructor_pages/engine.rb +0 -6
- data/pages/public/hello.txt +0 -1
- data/pages/spec/factories.rb +0 -7
- data/pages/spec/models/page_model_spec.rb +0 -113
data/.rspec
DELETED
Binary file
|
Binary file
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ConstructorCap
|
4
|
-
class EmailsController < ConstructorCore::AdminController
|
5
|
-
# TODO
|
6
|
-
include ConstructorAuth::DeviseHelper
|
7
|
-
|
8
|
-
before_filter :authenticate_user!, :except => [:show, :add]
|
9
|
-
|
10
|
-
layout 'constructor_core/application_admin', :except => [:show]
|
11
|
-
|
12
|
-
# TODO
|
13
|
-
def index
|
14
|
-
@user_signed_in = user_signed_in?
|
15
|
-
@emails = Email.all
|
16
|
-
end
|
17
|
-
|
18
|
-
def new
|
19
|
-
@email = Email.new
|
20
|
-
end
|
21
|
-
|
22
|
-
def show
|
23
|
-
@email = Email.new
|
24
|
-
render :layout => false
|
25
|
-
end
|
26
|
-
|
27
|
-
def edit
|
28
|
-
@email = Email.find(params[:id])
|
29
|
-
end
|
30
|
-
|
31
|
-
def create
|
32
|
-
@email = Email.new(params[:email])
|
33
|
-
|
34
|
-
if @email.save
|
35
|
-
redirect_to emails_path, :notice => 'Email успешно добавлен.'
|
36
|
-
else
|
37
|
-
render :action => "new"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
def add
|
42
|
-
@email = Email.new(params[:email])
|
43
|
-
|
44
|
-
if @email.save
|
45
|
-
redirect_to root_path, :notice => "Спасибо! Мы сообщим вам об открытии сайта."
|
46
|
-
else
|
47
|
-
render :action => "show", :layout => false
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def update
|
52
|
-
@email = Email.find(params[:id])
|
53
|
-
|
54
|
-
if @email.update_attributes(params[:email])
|
55
|
-
redirect_to emails_url, :notice => 'Email успешно обновлен.'
|
56
|
-
else
|
57
|
-
render :action => "edit"
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
def destroy
|
62
|
-
Email.find(params[:id]).destroy
|
63
|
-
redirect_to emails_url, :notice => 'Email успешно удален.'
|
64
|
-
end
|
65
|
-
|
66
|
-
def delete_all
|
67
|
-
Email.delete_all
|
68
|
-
redirect_to emails_url
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
class EmailValidator < ActiveModel::EachValidator
|
4
|
-
def validate_each(record, attribute, value)
|
5
|
-
unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
|
6
|
-
record.errors[attribute] << (options[:message] || "введен не верно")
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
module ConstructorCap
|
12
|
-
class Email < ActiveRecord::Base
|
13
|
-
validates :email, :email => true
|
14
|
-
end
|
15
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
= form_for @email do |f|
|
2
|
-
- if @email.errors.any?
|
3
|
-
.alert.alert-error.fade.in.span9
|
4
|
-
= link_to "×", "#", :class => "close", 'data-dismiss' => 'alert'
|
5
|
-
- @email.errors.full_messages.each do |m|
|
6
|
-
= m
|
7
|
-
|
8
|
-
.form-horizontal
|
9
|
-
.control-group
|
10
|
-
= f.label :email, :class => 'control-label'
|
11
|
-
.controls= f.text_field :email, :class => "span6"
|
12
|
-
|
13
|
-
.form-actions
|
14
|
-
= f.submit :class => "btn btn-primary"
|
15
|
-
|
16
|
-
= link_to "Отмена", emails_url, :class => "btn"
|
17
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
- content_for :page_title do
|
2
|
-
Заглушка
|
3
|
-
|
4
|
-
- content_for :actions do
|
5
|
-
.span4.clearfix.text-right
|
6
|
-
.btn-group
|
7
|
-
= link_to 'Добавить email', new_email_path, :class => "btn btn-success btn-large"
|
8
|
-
%button.btn.btn-success.btn-large.dropdown-toggle{'data-toggle' => "dropdown"}
|
9
|
-
%span.caret
|
10
|
-
%ul.dropdown-menu.text-center
|
11
|
-
%li= link_to 'Сделать рассылку', delete_all_path
|
12
|
-
%li.divider
|
13
|
-
%li= link_to 'Удалить все', delete_all_path, :method => :delete, :confirm => "Вы уверены?"
|
14
|
-
|
15
|
-
%section
|
16
|
-
- if @emails.count.zero?
|
17
|
-
Список пуст
|
18
|
-
- else
|
19
|
-
%table.table.table-bordered
|
20
|
-
%tbody
|
21
|
-
- @emails.each do |email|
|
22
|
-
%tr
|
23
|
-
%td
|
24
|
-
= email.email
|
25
|
-
%span.pull-right
|
26
|
-
= link_to "<i class='icon-pencil icon-white'></i>".html_safe, edit_email_path(email), :class => "btn btn-small btn-primary"
|
27
|
-
= link_to "<i class='icon-remove icon-white'></i>".html_safe, email, :class => "btn btn-small btn-danger"
|
@@ -1,54 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html{:lang => 'ru'}
|
3
|
-
%head
|
4
|
-
%meta{:charset => 'utf-8'}/
|
5
|
-
%meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1'}/
|
6
|
-
%title Суши Клик
|
7
|
-
|
8
|
-
%meta{:name => 'description', :content => ""}/
|
9
|
-
%meta{:name => 'keywords', :content => ""}/
|
10
|
-
/%link{:rel => 'canonical', :href => @canonical}/
|
11
|
-
|
12
|
-
%meta{:name => 'viewport', :content => 'width=device-width,initial-scale=1'}/
|
13
|
-
|
14
|
-
%meta{:property => 'og:title', :content => ""}/
|
15
|
-
%meta{:property => 'og:type', :content => 'website'}/
|
16
|
-
/%meta{:property => 'og:url', :content => @canonical}/
|
17
|
-
%meta{:property => 'og:image', :content => ''}/
|
18
|
-
%meta{:property => 'og:site_name', :content => ''}/
|
19
|
-
|
20
|
-
= stylesheet_link_tag "application", :media => "all"
|
21
|
-
= javascript_include_tag "application"
|
22
|
-
= csrf_meta_tags
|
23
|
-
= favicon_link_tag
|
24
|
-
|
25
|
-
%body
|
26
|
-
.l-all.container
|
27
|
-
= image_tag("logo.png")
|
28
|
-
.row
|
29
|
-
%form.span5{:action => "/email", :method => :post}
|
30
|
-
%p
|
31
|
-
%strong Телефоны:
|
32
|
-
(473) 22-22-820, 22-22-821
|
33
|
-
%br/
|
34
|
-
%strong Адрес:
|
35
|
-
г. Воронеж, ул. Ломоносова, д. 114а (ПТК «Добрый»)
|
36
|
-
%br/
|
37
|
-
- if @email.errors.any?
|
38
|
-
.row
|
39
|
-
.alert.alert-error.fade.in.span12
|
40
|
-
%button.close{:type => :button, 'data-dismiss' => :alert} ×
|
41
|
-
- @email.errors.full_messages.each do |m|
|
42
|
-
= m
|
43
|
-
|
44
|
-
- if flash[:notice]
|
45
|
-
.row
|
46
|
-
.alert.alert-success.fade.in
|
47
|
-
%button.close{:type => :button, 'data-dismiss' => :alert} ×
|
48
|
-
= flash[:notice]
|
49
|
-
- else
|
50
|
-
%p
|
51
|
-
%em Сообщите мне об открытии сайта на эл. почту:
|
52
|
-
.input-append
|
53
|
-
%input.input-xlarge#appendedInputButton{:type => "email", :placeholder => "ваша@электропочта.ru", :name => "email[email]", :required => :required, :value => @email.email}/
|
54
|
-
%input.btn.btn-success{:type => "submit", :value => "Жду!"}/
|
data/cap/config/locales/ru.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
ru:
|
2
|
-
activerecord:
|
3
|
-
attributes:
|
4
|
-
constructor_cap/page:
|
5
|
-
title: "Заголовок"
|
6
|
-
url: "Адрес"
|
7
|
-
in_menu: "Меню"
|
8
|
-
in_nav: "Хлебные крошки"
|
9
|
-
in_map: "Карта сайта"
|
10
|
-
parent: "Родитель"
|
11
|
-
parent_id: "Родительская страница"
|
12
|
-
link: "Ссылка"
|
13
|
-
content: "Содержание"
|
14
|
-
description: "Описание"
|
15
|
-
keywords: "Ключевые слова"
|
16
|
-
errors:
|
17
|
-
models:
|
18
|
-
page:
|
19
|
-
attributes:
|
20
|
-
title:
|
21
|
-
blank: "не может быть пустым"
|
22
|
-
url:
|
23
|
-
blank: "не может быть пустой"
|
data/cap/config/routes.rb
DELETED
data/cap/constructor-cap.gemspec
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.platform = Gem::Platform::RUBY
|
5
|
-
s.name = %q{constructor-cap}
|
6
|
-
s.version = '0.2.1'
|
7
|
-
s.summary = %q{Cap for Constructor}
|
8
|
-
s.authors = ['Ivan Zotov']
|
9
|
-
s.email = "ivanzotov@gmail.com"
|
10
|
-
s.homepage = "http://ivanzotov.github.com/constructor"
|
11
|
-
s.require_paths = %w(lib)
|
12
|
-
s.description = "Constructor – content management system"
|
13
|
-
|
14
|
-
s.files = `git ls-files`.split("\n")
|
15
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
16
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
17
|
-
|
18
|
-
s.add_dependency 'haml-rails'
|
19
|
-
end
|
data/cap/lib/constructor-cap.rb
DELETED
data/constructor-cms.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.platform = Gem::Platform::RUBY
|
5
|
-
s.name = %q{constructor-cms}
|
6
|
-
s.version = '0.2.1'
|
7
|
-
s.summary = %q{Constructor}
|
8
|
-
s.authors = ['Ivan Zotov']
|
9
|
-
s.require_paths = %w(lib)
|
10
|
-
s.email = "ivanzotov@gmail.com"
|
11
|
-
s.homepage = "http://ivanzotov.github.com/constructor"
|
12
|
-
s.description = "Constructor – content management system"
|
13
|
-
|
14
|
-
s.files = `git ls-files`.split("\n")
|
15
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
16
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
17
|
-
|
18
|
-
s.add_dependency 'constructor-core'
|
19
|
-
s.add_dependency 'constructor-pages'
|
20
|
-
s.add_dependency 'acts_as_list'
|
21
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,57 +0,0 @@
|
|
1
|
-
#= require constructor_core/jquery_bundle
|
2
|
-
#= require constructor_core/bootstrap
|
3
|
-
#= require ckeditor/ckeditor
|
4
|
-
#= require constructor_core/urlify
|
5
|
-
#= require_self
|
6
|
-
|
7
|
-
$(document).ready ->
|
8
|
-
$('#tree').treeview({
|
9
|
-
collapsed: false,
|
10
|
-
persist: 'cookie'
|
11
|
-
})
|
12
|
-
|
13
|
-
$(".alert").alert()
|
14
|
-
$(".collapse").collapse()
|
15
|
-
|
16
|
-
$('#url-if-empty').popover({
|
17
|
-
offset: 10
|
18
|
-
})
|
19
|
-
|
20
|
-
$('.auto_url').hide()
|
21
|
-
$('#page_url').hide()
|
22
|
-
|
23
|
-
auto_url = $('#page_auto_url').is(':checked')
|
24
|
-
|
25
|
-
unless auto_url
|
26
|
-
auto_url_true()
|
27
|
-
|
28
|
-
$('#page_name').keyup -> $('.address').html(parameterize())
|
29
|
-
$('#page_parent_id').change ->
|
30
|
-
parent_full_url = $('#page_parent_id option:selected').data('full_url')
|
31
|
-
if parent_full_url
|
32
|
-
$('.path').html(parent_full_url)
|
33
|
-
else
|
34
|
-
$('.path').html('')
|
35
|
-
|
36
|
-
$('.address, .address_icon').click ->
|
37
|
-
if $('#page_auto_url').is(':checked') == true
|
38
|
-
$('#page_url').prop('value', parameterize())
|
39
|
-
auto_url_true()
|
40
|
-
else
|
41
|
-
$('.address').html(parameterize())
|
42
|
-
auto_url_false()
|
43
|
-
|
44
|
-
auto_url_true = ->
|
45
|
-
$('#page_url').show()
|
46
|
-
$('#page_auto_url').prop('checked', false)
|
47
|
-
$('.address_icon').addClass('icon-remove').removeClass('icon-pencil')
|
48
|
-
$('.address').hide()
|
49
|
-
|
50
|
-
auto_url_false = ->
|
51
|
-
$('#page_url').hide()
|
52
|
-
$('#page_auto_url').prop('checked', true)
|
53
|
-
$('.address_icon').addClass('icon-pencil').removeClass('icon-remove')
|
54
|
-
$('.address').show()
|
55
|
-
|
56
|
-
parameterize = ->
|
57
|
-
URLify($('#page_name').prop('value'))
|