constructor-pages 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{pages/app → app}/assets/images/constructor_pages/arrow_down.png +0 -0
- data/{pages/app → app}/assets/images/constructor_pages/arrow_up.png +0 -0
- data/{pages/app → app}/assets/images/constructor_pages/information.png +0 -0
- data/{pages/app → app}/assets/images/constructor_pages/page_white_edit.png +0 -0
- data/{pages/app → app}/assets/images/constructor_pages/photos.png +0 -0
- data/{pages/app → app}/assets/javascripts/constructor_pages/ajax_pages.js +0 -0
- data/{pages/app → app}/assets/javascripts/constructor_pages/jquery.history.js +0 -0
- data/{pages/app → app}/controllers/constructor_pages/application_controller.rb +0 -0
- data/{pages/app → app}/controllers/constructor_pages/fields_controller.rb +0 -0
- data/{pages/app → app}/controllers/constructor_pages/pages_controller.rb +0 -0
- data/{pages/app → app}/controllers/constructor_pages/templates_controller.rb +0 -0
- data/{pages/app → app}/helpers/constructor_pages/code_name_uniq.rb +0 -0
- data/{pages/app → app}/helpers/constructor_pages/fields_helper.rb +0 -0
- data/{pages/app → app}/helpers/constructor_pages/pages_helper.rb +0 -0
- data/{pages/app → app}/helpers/constructor_pages/templates_helper.rb +0 -0
- data/{pages/app → app}/helpers/constructor_pages/treeview_helper.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/field.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/page.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/template.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/boolean_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/date_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/float_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/html_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/image_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/integer_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/string_type.rb +0 -0
- data/{pages/app → app}/models/constructor_pages/types/text_type.rb +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/_form.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/edit.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/new.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_boolean.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_date.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_float.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_html.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_image.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_integer.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_string.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/fields/types/_text.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/_breadcrumbs.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/_form.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/_menu.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/_submenu.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/edit.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/index.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/new.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/pages/show.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/partials/_arrow_buttons.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/templates/_form.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/templates/edit.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/templates/index.haml +0 -0
- data/{pages/app → app}/views/constructor_pages/templates/new.haml +0 -0
- data/{pages/config → config}/initializers/dragonfly.rb +0 -0
- data/{pages/config → config}/locales/en.yml +0 -0
- data/{pages/config → config}/locales/fr.yml +0 -0
- data/{pages/config → config}/locales/ru.yml +0 -0
- data/config/routes.rb +26 -4
- data/{pages/constructor-pages.gemspec → constructor-pages.gemspec} +0 -1
- data/{pages/db → db}/migrate/10_create_html_types.rb +0 -0
- data/{pages/db → db}/migrate/11_create_image_types.rb +0 -0
- data/{pages/db → db}/migrate/12_add_default_template.rb +0 -0
- data/{pages/db → db}/migrate/1_create_pages.rb +0 -0
- data/{pages/db → db}/migrate/2_create_templates.rb +0 -0
- data/{pages/db → db}/migrate/3_create_fields.rb +0 -0
- data/{pages/db → db}/migrate/4_create_string_types.rb +0 -0
- data/{pages/db → db}/migrate/5_create_float_types.rb +0 -0
- data/{pages/db → db}/migrate/6_create_boolean_types.rb +0 -0
- data/{pages/db → db}/migrate/7_create_integer_types.rb +0 -0
- data/{pages/db → db}/migrate/8_create_text_types.rb +0 -0
- data/{pages/db → db}/migrate/9_create_date_types.rb +0 -0
- data/{pages/lib → lib}/constructor-pages.rb +0 -0
- data/{pages/lib → lib}/constructor_pages/engine.rb +0 -0
- data/{pages/spec → spec}/features/constructor_pages/fields_spec.rb +0 -0
- data/{pages/spec → spec}/features/constructor_pages/pages_spec.rb +0 -0
- data/{pages/spec → spec}/features/constructor_pages/templates_spec.rb +0 -0
- data/{pages/spec → spec}/helpers/constructor_pages/.keep +0 -0
- data/{pages/spec → spec}/models/constructor_pages/field_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/page_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/template_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/boolean_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/date_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/float_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/html_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/integer_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/string_type_spec.rb +0 -0
- data/{pages/spec → spec}/models/constructor_pages/types/text_type_spec.rb +0 -0
- data/{pages/spec → spec}/routing/constructor_pages/.keep +0 -0
- metadata +106 -397
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.travis.yml +0 -13
- data/.yardopts +0 -9
- data/Gemfile +0 -31
- data/Guardfile +0 -15
- data/LICENSE.md +0 -7
- data/README.md +0 -35
- data/Rakefile +0 -19
- data/bin/rails +0 -8
- data/config.ru +0 -4
- data/constructor-cms.gemspec +0 -26
- 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 -52
- 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_bundle.js.coffee +0 -3
- data/core/app/assets/javascripts/constructor_core/keys_snippet.js +0 -33
- data/core/app/assets/javascripts/constructor_core/retina.js +0 -148
- data/core/app/assets/javascripts/constructor_core/urlify.js +0 -82
- data/core/app/assets/stylesheets/constructor_core/application.css.scss +0 -3
- data/core/app/assets/stylesheets/constructor_core/main.css.scss +0 -229
- data/core/app/controllers/constructor_core/application_controller.rb +0 -32
- data/core/app/controllers/constructor_core/sessions_controller.rb +0 -15
- data/core/app/controllers/constructor_core/users_controller.rb +0 -24
- data/core/app/helpers/constructor_core/application_helper.rb +0 -9
- data/core/app/models/constructor_core/user.rb +0 -7
- 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 -22
- data/core/app/views/constructor_core/users/profile.haml +0 -16
- data/core/app/views/layouts/constructor_core/application_core.haml +0 -95
- data/core/config/environments/production.rb +0 -3
- data/core/config/initializers/devise.rb +0 -15
- data/core/config/locales/devise.en.yml +0 -56
- data/core/config/locales/devise.fr.yml +0 -74
- data/core/config/locales/devise.ru.yml +0 -52
- data/core/config/locales/en.yml +0 -15
- data/core/config/locales/fr.yml +0 -15
- data/core/config/locales/ru.yml +0 -27
- data/core/config/routes.rb +0 -18
- data/core/constructor-core.gemspec +0 -24
- data/core/db/migrate/1_devise_users.rb +0 -24
- data/core/db/migrate/2_add_default_user.rb +0 -9
- data/core/lib/constructor-core.rb +0 -25
- data/core/lib/constructor_core/engine.rb +0 -6
- data/core/lib/constructor_core/version.rb +0 -3
- 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-cms.rb +0 -3
- data/lib/constructor-cms/engine.rb +0 -6
- data/pages/config/routes.rb +0 -26
- data/pages/public/hello.txt +0 -1
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/html_templates/page.haml +0 -1
- data/spec/dummy/app/views/layouts/application.haml +0 -10
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -23
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -29
- data/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/lib/tasks/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +0 -58
- data/spec/dummy/public/422.html +0 -58
- data/spec/dummy/public/500.html +0 -57
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +0 -5
- data/spec/spec_helper.rb +0 -46
- data/tasks/constructor-cms_tasks.rake +0 -15
@@ -1,32 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ConstructorCore
|
4
|
-
class ApplicationController < ::ApplicationController
|
5
|
-
layout 'constructor_core/application_core'
|
6
|
-
before_filter :authenticate_user!, :except => [:show]
|
7
|
-
|
8
|
-
helper_method :current_user
|
9
|
-
|
10
|
-
private
|
11
|
-
|
12
|
-
def authenticate_user!
|
13
|
-
warden.authenticate!
|
14
|
-
end
|
15
|
-
|
16
|
-
def user_signed_in?
|
17
|
-
!!current_user
|
18
|
-
end
|
19
|
-
|
20
|
-
def current_user
|
21
|
-
@current_user ||= warden.authenticate
|
22
|
-
end
|
23
|
-
|
24
|
-
def user_session
|
25
|
-
current_user && warden.session
|
26
|
-
end
|
27
|
-
|
28
|
-
def warden
|
29
|
-
request.env['warden']
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ConstructorCore
|
4
|
-
class SessionsController < Devise::SessionsController
|
5
|
-
layout 'constructor_core/application'
|
6
|
-
|
7
|
-
def after_sign_in_path_for(resource)
|
8
|
-
return '/admin/pages'
|
9
|
-
end
|
10
|
-
|
11
|
-
def after_sign_out_path_for(resource)
|
12
|
-
return '/'
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ConstructorCore
|
4
|
-
class UsersController < ConstructorCore::ApplicationController
|
5
|
-
def profile
|
6
|
-
@user = current_user
|
7
|
-
end
|
8
|
-
|
9
|
-
def update_password
|
10
|
-
@user = current_user
|
11
|
-
|
12
|
-
if params[:user][:password] == params[:user][:password_confirm]
|
13
|
-
@user.password = params[:user][:password]
|
14
|
-
|
15
|
-
if @user.save
|
16
|
-
redirect_to '/login', :notice => t(:password_changed)
|
17
|
-
return
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
redirect_to :back, :notice => t(:password_error_confirm)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
module ConstructorCore
|
2
|
-
module ApplicationHelper
|
3
|
-
def gravatar_icon(user_email = '', size = 40)
|
4
|
-
gravatar_url = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm'
|
5
|
-
user_email.strip!
|
6
|
-
sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module ConstructorCore
|
4
|
-
class User < ActiveRecord::Base
|
5
|
-
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :token_authenticatable, :timeoutable, :registerable #:confirmable, :omniauthable, :lockable, :encryptable
|
6
|
-
end
|
7
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
%h2 Отправить инструкцию активации
|
2
|
-
= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f|
|
3
|
-
= devise_error_messages!
|
4
|
-
%p
|
5
|
-
= f.label :email
|
6
|
-
%br/
|
7
|
-
= f.email_field :email
|
8
|
-
%p= f.submit "Отправить"
|
9
|
-
= render :partial => "devise/shared/links"
|
10
|
-
|
@@ -1,7 +0,0 @@
|
|
1
|
-
%p
|
2
|
-
Привет, #{@resource.email}!
|
3
|
-
%p Вы сделали запрос на смену пароля. Для того чтобы изменить пароль пройдите по следующей ссылке:
|
4
|
-
%p= link_to 'Изменить пароль', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token)
|
5
|
-
%p Если Вы не делали запрос на изменение пароля, то проигнорируйте это письмо.
|
6
|
-
%p Ваш пароль останется прежним до тех пор пока вы не пройдете по ссылке.
|
7
|
-
|
@@ -1,5 +0,0 @@
|
|
1
|
-
%p
|
2
|
-
Hello #{@resource.email}!
|
3
|
-
%p Your account has been locked due to an excessive amount of unsuccessful sign in attempts.
|
4
|
-
%p Click the link below to unlock your account:
|
5
|
-
%p= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token)
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- content_for :page_title do
|
2
|
-
Смена пароля
|
3
|
-
|
4
|
-
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
|
5
|
-
= devise_error_messages!
|
6
|
-
= f.hidden_field :reset_password_token
|
7
|
-
.clearfix
|
8
|
-
= f.label :password, "Новый пароль"
|
9
|
-
.input
|
10
|
-
= f.password_field :password
|
11
|
-
.clearfix
|
12
|
-
= f.label :password_confirmation, "Еще раз"
|
13
|
-
.input
|
14
|
-
= f.password_field :password_confirmation
|
15
|
-
.clearfix
|
16
|
-
.input
|
17
|
-
= f.submit "Сменить пароль", :class => "btn primary"
|
18
|
-
|
19
|
-
- content_for :sidebar do
|
20
|
-
= render :partial => "devise/shared/links"
|
21
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
- content_for :page_title do
|
2
|
-
Восстановить пароль
|
3
|
-
|
4
|
-
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
|
5
|
-
= devise_error_messages!
|
6
|
-
.clearfix
|
7
|
-
= f.label :email, "Электропочта"
|
8
|
-
.input
|
9
|
-
= f.email_field :email
|
10
|
-
.clearfix
|
11
|
-
.input
|
12
|
-
= f.submit "Отправить", :class => "btn primary"
|
13
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
%h2
|
2
|
-
Редактивароние аккаунта #{resource_name.to_s.humanize}
|
3
|
-
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
|
4
|
-
= devise_error_messages!
|
5
|
-
%p
|
6
|
-
= f.label :email
|
7
|
-
%br/
|
8
|
-
= f.email_field :email
|
9
|
-
%p
|
10
|
-
= f.label :password
|
11
|
-
%i (оставьте пустым, если хотите сохранить пароль прежним)
|
12
|
-
%br/
|
13
|
-
= f.password_field :password
|
14
|
-
%p
|
15
|
-
= f.label :password_confirmation
|
16
|
-
%br/
|
17
|
-
= f.password_field :password_confirmation
|
18
|
-
%p
|
19
|
-
= f.label :current_password
|
20
|
-
%i (необходимо ввести ваш текущий пароль для подтверждения изменений)
|
21
|
-
%br/
|
22
|
-
= f.password_field :current_password
|
23
|
-
%p= f.submit "Сохранить"
|
24
|
-
%h3 Удалить мой аккаунт
|
25
|
-
%p
|
26
|
-
#{link_to "Удалить", registration_path(resource_name), :confirm => "Вы уверены?", :method => :delete}.
|
27
|
-
= link_to "Назад", :back
|
28
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
.register_form
|
2
|
-
%h2 Регистрация
|
3
|
-
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
|
4
|
-
= devise_error_messages!
|
5
|
-
%p.email
|
6
|
-
= f.label :email
|
7
|
-
%br/
|
8
|
-
= f.email_field :email
|
9
|
-
%p
|
10
|
-
= f.label :password
|
11
|
-
%br/
|
12
|
-
= f.password_field :password
|
13
|
-
%p
|
14
|
-
= f.label :password_confirmation
|
15
|
-
%br/
|
16
|
-
= f.password_field :password_confirmation
|
17
|
-
%p.button= f.submit "Зарегистрироваться"
|
18
|
-
|
19
|
-
.links
|
20
|
-
= render :partial => "devise/shared/links"
|
@@ -1,19 +0,0 @@
|
|
1
|
-
- if controller_name != 'sessions'
|
2
|
-
= link_to "Вход с паролем", auth.new_session_path(resource_name)
|
3
|
-
%br/
|
4
|
-
- if devise_mapping.registerable? && controller_name != 'registrations'
|
5
|
-
= link_to "Регистрация", auth.new_registration_path(resource_name)
|
6
|
-
%br/
|
7
|
-
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
8
|
-
= link_to "Восстановление пароля", auth.new_password_path(resource_name)
|
9
|
-
%br/
|
10
|
-
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
11
|
-
= link_to "Если вы не получили инструкцию о том как подтвердить адрес электронной почты", new_confirmation_path(resource_name)
|
12
|
-
%br/
|
13
|
-
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
14
|
-
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
15
|
-
%br/
|
16
|
-
- if devise_mapping.omniauthable?
|
17
|
-
- resource_class.omniauth_providers.each do |provider|
|
18
|
-
= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
|
19
|
-
%br/
|
@@ -1,9 +0,0 @@
|
|
1
|
-
%h2 Resend unlock instructions
|
2
|
-
= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f|
|
3
|
-
= devise_error_messages!
|
4
|
-
%p
|
5
|
-
= f.label :email
|
6
|
-
%br/
|
7
|
-
= f.email_field :email
|
8
|
-
%p= f.submit "Resend unlock instructions"
|
9
|
-
= render :partial => "devise/shared/links"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
- content_for :page_title do
|
2
|
-
=t :login
|
3
|
-
|
4
|
-
= form_for(resource, as: resource_name, url: '/login') do |f|
|
5
|
-
.form-horizontal
|
6
|
-
.control-group
|
7
|
-
= f.label :email, class: 'control-label'
|
8
|
-
.controls
|
9
|
-
= f.email_field :email
|
10
|
-
.control-group
|
11
|
-
= f.label :password, class: 'control-label'
|
12
|
-
.controls
|
13
|
-
= f.password_field :password
|
14
|
-
|
15
|
-
- if devise_mapping.rememberable?
|
16
|
-
.control-group
|
17
|
-
.controls
|
18
|
-
%label.checkbox.inline{for: 'remember_me'}
|
19
|
-
= f.check_box :remember_me
|
20
|
-
=t :remember_me
|
21
|
-
.controls
|
22
|
-
= f.submit t(:login), class: 'btn btn-primary'
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- content_for :page_title do
|
2
|
-
=t :profile
|
3
|
-
|
4
|
-
= form_for @current_user, method: :post do |f|
|
5
|
-
.form-horizontal
|
6
|
-
.control-group
|
7
|
-
= f.label :password, class: 'control-label'
|
8
|
-
.controls
|
9
|
-
= f.password_field :password, required: true
|
10
|
-
.control-group
|
11
|
-
= f.label :password_confirmation, class: 'control-label'
|
12
|
-
.controls
|
13
|
-
= f.password_field :password_confirm, required: true
|
14
|
-
.control-group
|
15
|
-
.controls
|
16
|
-
= f.submit t(:save_password), class: 'btn btn-primary'
|
@@ -1,95 +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=t :dashboard
|
7
|
-
|
8
|
-
/ [if lt IE 9]
|
9
|
-
%script{src: 'http://html5shim.googlecode.com/svn/trunk/html5.js'}
|
10
|
-
|
11
|
-
:javascript
|
12
|
-
var CKEDITOR_BASEPATH = '/assets/ckeditor/'
|
13
|
-
|
14
|
-
= stylesheet_link_tag 'constructor_core/application'
|
15
|
-
= javascript_include_tag 'constructor_core/application'
|
16
|
-
= csrf_meta_tag
|
17
|
-
= favicon_link_tag
|
18
|
-
|
19
|
-
%link{rel: 'apple-touch-icon', href: 'images/apple-touch-icon.png'}
|
20
|
-
%link{rel: 'apple-touch-icon', sizes: '72x72', href: 'images/apple-touch-icon-72x72.png'}
|
21
|
-
%link{rel: 'apple-touch-icon', sizes: '114x114', href: 'images/apple-touch-icon-114x114.png'}
|
22
|
-
|
23
|
-
%body
|
24
|
-
.navbar.navbar-constructor
|
25
|
-
.navbar-inner
|
26
|
-
.container-fluid
|
27
|
-
= link_to t(:homepage), '/', class: 'brand'
|
28
|
-
%a.btn.btn-navbar{'data-toggle' => 'collapse', 'data-target' => '.nav-collapse'}
|
29
|
-
%span.icon-bar
|
30
|
-
%span.icon-bar
|
31
|
-
%span.icon-bar
|
32
|
-
.nav-collapse
|
33
|
-
%ul.nav
|
34
|
-
/
|
35
|
-
%li
|
36
|
-
= link_to '/admin/dashboard' do
|
37
|
-
%i.icon-dashboard
|
38
|
-
=t :dashboard
|
39
|
-
%li
|
40
|
-
= link_to '/admin/pages' do
|
41
|
-
%i.icon-sitemap
|
42
|
-
=t :structure
|
43
|
-
%li
|
44
|
-
= link_to '/admin/templates' do
|
45
|
-
%i.icon-film
|
46
|
-
=t :templates
|
47
|
-
/
|
48
|
-
%li
|
49
|
-
= link_to '/admin/users' do
|
50
|
-
%i.icon-group
|
51
|
-
=t :users
|
52
|
-
%li
|
53
|
-
= link_to '/admin/settings' do
|
54
|
-
%i.icon-cogs
|
55
|
-
=t :settings
|
56
|
-
|
57
|
-
- if current_user
|
58
|
-
%ul.nav.pull-right
|
59
|
-
%li
|
60
|
-
= link_to core.user_path(current_user.id) do
|
61
|
-
= image_tag gravatar_icon(current_user.email, 48), width: 24, height: 24, class: 'avatar'
|
62
|
-
%span= current_user.email
|
63
|
-
%li
|
64
|
-
= link_to 'http://ivanzotov.github.io/constructor/' do
|
65
|
-
%i.icon-question-sign
|
66
|
-
=t :help
|
67
|
-
%li
|
68
|
-
= link_to core.logout_path, method: :delete do
|
69
|
-
%i.icon-signout
|
70
|
-
=t :logout
|
71
|
-
|
72
|
-
.container-fluid
|
73
|
-
.page-header
|
74
|
-
.row-fluid
|
75
|
-
.span4
|
76
|
-
%h3.muted= yield :page_title
|
77
|
-
.span4
|
78
|
-
- unless notice.nil?
|
79
|
-
.alert.fade.in
|
80
|
-
= link_to '×', '#', class: 'close', 'data-dismiss' => 'alert'
|
81
|
-
= notice
|
82
|
-
- unless alert.nil?
|
83
|
-
.alert.alert-error.fade.in
|
84
|
-
= link_to '×', '#', class: 'close', 'data-dismiss' => 'alert'
|
85
|
-
= alert
|
86
|
-
|
87
|
-
= yield :actions
|
88
|
-
.content
|
89
|
-
.row-fluid
|
90
|
-
= yield
|
91
|
-
|
92
|
-
/ [if lt IE 7 ]
|
93
|
-
%script{src: '//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js'}
|
94
|
-
%script
|
95
|
-
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
|
@@ -1,15 +0,0 @@
|
|
1
|
-
Devise.setup do |config|
|
2
|
-
config.mailer_sender = 'ivanzotov@gmail.com'
|
3
|
-
|
4
|
-
config.parent_controller = 'ActionController::Base'
|
5
|
-
|
6
|
-
require 'devise/orm/active_record'
|
7
|
-
|
8
|
-
config.case_insensitive_keys = [ :email ]
|
9
|
-
config.strip_whitespace_keys = [ :email ]
|
10
|
-
config.skip_session_storage = [:http_auth]
|
11
|
-
config.stretches = Rails.env.test? ? 1 : 10
|
12
|
-
config.reconfirmable = true
|
13
|
-
config.reset_password_within = 6.hours
|
14
|
-
config.sign_out_via = :delete
|
15
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
-
|
3
|
-
en:
|
4
|
-
errors:
|
5
|
-
messages:
|
6
|
-
expired: has expired, please request a new one
|
7
|
-
not_found: not found
|
8
|
-
already_confirmed: was already confirmed, please try signing in
|
9
|
-
not_locked: was not locked
|
10
|
-
not_saved:
|
11
|
-
one: '1 error prohibited this %{resource} from being saved:'
|
12
|
-
other: '%{count} errors prohibited this %{resource} from being saved:'
|
13
|
-
|
14
|
-
devise:
|
15
|
-
failure:
|
16
|
-
already_authenticated: You are already signed in.
|
17
|
-
unauthenticated: You need to sign in or sign up before continuing.
|
18
|
-
unconfirmed: You have to confirm your account before continuing.
|
19
|
-
locked: Your account is locked.
|
20
|
-
invalid: Invalid email or password.
|
21
|
-
invalid_token: Invalid authentication token.
|
22
|
-
timeout: Your session expired, please sign in again to continue.
|
23
|
-
inactive: Your account was not activated yet.
|
24
|
-
sessions:
|
25
|
-
signed_in: Signed in successfully.
|
26
|
-
signed_out: Signed out successfully.
|
27
|
-
passwords:
|
28
|
-
send_instructions: You will receive an email with instructions about how to reset your password in a few minutes.
|
29
|
-
updated: Your password was changed successfully. You are now signed in.
|
30
|
-
updated_not_active: Your password was changed successfully.
|
31
|
-
send_paranoid_instructions: If your e-mail exists on our database, you will receive a password recovery link on your e-mail
|
32
|
-
confirmations:
|
33
|
-
send_instructions: You will receive an email with instructions about how to confirm your account in a few minutes.
|
34
|
-
send_paranoid_instructions: If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.
|
35
|
-
confirmed: Your account was successfully confirmed. You are now signed in.
|
36
|
-
registrations:
|
37
|
-
signed_up: Welcome! You have signed up successfully.
|
38
|
-
updated: You updated your account successfully.
|
39
|
-
destroyed: Bye! Your account was successfully cancelled. We hope to see you again soon.
|
40
|
-
signed_up_but_inactive: You have signed up successfully. However, we could not sign you in because your account is not yet activated.
|
41
|
-
signed_up_but_unconfirmed: A message with a confirmation link has been sent to your email address. Please open the link to activate your account.
|
42
|
-
signed_up_but_locked: You have signed up successfully. However, we could not sign you in because your account is locked.
|
43
|
-
unlocks:
|
44
|
-
send_instructions: You will receive an email with instructions about how to unlock your account in a few minutes.
|
45
|
-
unlocked: Your account was successfully unlocked. You are now signed in.
|
46
|
-
send_paranoid_instructions: If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.
|
47
|
-
omniauth_callbacks:
|
48
|
-
success: Successfully authorized from %{kind} account.
|
49
|
-
failure: Could not authorize you from %{kind} because "%{reason}".
|
50
|
-
mailer:
|
51
|
-
confirmation_instructions:
|
52
|
-
subject: Confirmation instructions
|
53
|
-
reset_password_instructions:
|
54
|
-
subject: Reset password instructions
|
55
|
-
unlock_instructions:
|
56
|
-
subject: Unlock Instructions
|