redde 0.1.18 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +19 -0
- data/.travis.yml +5 -4
- data/Gemfile +8 -5
- data/MIT-LICENSE +20 -0
- data/README.md +96 -105
- data/Rakefile +20 -1
- data/app/assets/fonts/redde-admin.eot +0 -0
- data/app/assets/fonts/redde-admin.svg +12 -0
- data/app/assets/fonts/redde-admin.ttf +0 -0
- data/app/assets/fonts/redde-admin.woff +0 -0
- data/app/assets/images/redde/close-hover.svg +4 -0
- data/app/assets/images/redde/close.svg +6 -0
- data/app/assets/images/redde/enter.svg +4 -0
- data/app/assets/images/redde/eye.svg +5 -0
- data/app/assets/images/redde/eye_disactive.svg +5 -0
- data/app/assets/images/redde/main-menu/cog.svg +8 -0
- data/app/assets/images/redde/main-menu/cog_active.svg +8 -0
- data/app/assets/images/redde/main-menu/folder.svg +4 -0
- data/app/assets/images/redde/main-menu/folder_active.svg +4 -0
- data/app/assets/images/redde/main-menu/home.svg +4 -0
- data/app/assets/images/redde/main-menu/home_active.svg +4 -0
- data/app/assets/images/redde/main-menu/list.svg +4 -0
- data/app/assets/images/redde/main-menu/list_active.svg +4 -0
- data/app/assets/images/redde/next.svg +7 -0
- data/app/assets/images/redde/plus.svg +3 -0
- data/app/assets/images/redde/sel.svg +6 -0
- data/app/assets/images/redde/user.svg +12 -0
- data/app/assets/javascripts/redde/fileapi.js.coffee +17 -0
- data/app/assets/javascripts/redde/index.js.coffee +12 -0
- data/app/assets/javascripts/redde/redactor/index.coffee +8 -0
- data/{lib/generators/redde/layout/templates/assets/redactor/javascripts/jquery-migrate-1.2.1.js → app/assets/javascripts/redde/redactor/jquery-migrate-1.3.0.js} +215 -34
- data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/redactor.js.erb +250 -250
- data/app/assets/javascripts/redde/sortTree/index.js.coffee +47 -0
- data/app/assets/javascripts/redde/sortable.coffee +47 -0
- data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass +4 -2
- data/app/assets/stylesheets/redde/blocks/flash-msg.sass +22 -0
- data/app/assets/stylesheets/redde/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde/blocks/photos-uploader.sass +21 -0
- data/app/assets/stylesheets/redde/blocks/photos.sass +56 -0
- data/app/assets/stylesheets/redde/blocks/redde-form.sass +55 -0
- data/app/assets/stylesheets/redde/blocks/sort-tree.sass +46 -0
- data/app/assets/stylesheets/redde/defaults/btn.sass +30 -0
- data/app/assets/stylesheets/redde/defaults/del.sass +23 -0
- data/app/assets/stylesheets/redde/defaults/index.sass +87 -0
- data/app/assets/stylesheets/redde/defaults/inp.sass +20 -0
- data/app/assets/stylesheets/redde/defaults/reset.sass +25 -0
- data/app/assets/stylesheets/redde/defaults/sbm.sass +32 -0
- data/app/assets/stylesheets/redde/defaults/sel.sass +29 -0
- data/app/assets/stylesheets/redde/fonts.sass +42 -0
- data/app/assets/stylesheets/redde/index.scss +5 -0
- data/app/assets/stylesheets/redde/layouts/header.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main-menu.sass +63 -0
- data/app/assets/stylesheets/redde/layouts/main.sass +48 -0
- data/app/assets/stylesheets/redde/layouts/page-header.sass +34 -0
- data/app/assets/stylesheets/redde/layouts/page-sidebar.sass +9 -0
- data/app/assets/stylesheets/redde/mixins.sass +10 -0
- data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/redde}/redactor/index.scss +46 -49
- data/app/assets/stylesheets/redde-admin/blocks/list-v2.sass +96 -0
- data/app/assets/stylesheets/redde-admin/defaults/del.sass +23 -0
- data/app/controllers/admin/base_controller.rb +81 -0
- data/{lib/generators/redde/layout/templates/controllers → app/controllers/admin}/managers_controller.rb +10 -6
- data/app/controllers/admin/redde_photos_controller.rb +31 -0
- data/app/controllers/admin/system_commands_controller.rb +11 -0
- data/app/form_builders/redde_form_builder.rb +106 -0
- data/app/helpers/redde/admin_helper.rb +33 -0
- data/app/helpers/redde/form_helper.rb +59 -0
- data/app/helpers/redde/index_helper.rb +61 -0
- data/{lib/redde/concerns/layout.rb → app/models/concerns/redde/layouts.rb} +1 -1
- data/app/models/concerns/redde/photoable.rb +5 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/sluggable.rb +6 -3
- data/app/models/concerns/redde/tree_sortable.rb +40 -0
- data/{lib/redde/concerns → app/models/concerns/redde}/with_photo.rb +5 -5
- data/app/models/redde/photo.rb +16 -0
- data/app/models/redde/system_command.rb +43 -0
- data/{lib → app/models}/redde/url_generator.rb +7 -3
- data/{lib/generators/redde/photo/templates/uploader.rb → app/uploaders/photo_uploader.rb} +4 -4
- data/app/views/admin/base/_tree_item.html.haml +10 -0
- data/app/views/admin/base/edit.html.haml +21 -0
- data/app/views/admin/base/index.html.haml +68 -0
- data/app/views/admin/base/tree.html.haml +14 -0
- data/app/views/admin/managers/edit.html.haml +11 -0
- data/app/views/admin/managers/index.html.haml +17 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_header.html.haml +5 -6
- data/app/views/admin/redde/_main_menu.html.haml +12 -0
- data/app/views/admin/redde/_page_header.html.haml +3 -0
- data/app/views/admin/redde/_sidebar.html.haml +16 -0
- data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_validate.haml +2 -2
- data/app/views/admin/redde_photos/_photo.haml +11 -0
- data/app/views/admin/redde_photos/_photos.haml +28 -0
- data/app/views/admin/system_commands/index.html.haml +25 -0
- data/app/views/kaminari/redde/_first_page.html.haml +9 -0
- data/app/views/kaminari/redde/_gap.html.haml +8 -0
- data/app/views/kaminari/redde/_last_page.html.haml +9 -0
- data/app/views/kaminari/redde/_next_page.html.haml +9 -0
- data/app/views/kaminari/redde/_page.html.haml +10 -0
- data/app/views/kaminari/redde/_paginator.html.haml +18 -0
- data/app/views/kaminari/redde/_prev_page.html.haml +9 -0
- data/{lib/generators/redde/layout/templates → app/views}/layouts/admin.html.haml +28 -29
- data/{lib/generators/redde/layout/templates → app/views}/layouts/login.html.haml +32 -32
- data/bin/rails +12 -0
- data/config/locales/paginate.ru.yml +9 -0
- data/config/routes.rb +8 -0
- data/db/migrate/20160121152706_create_redde_photos.rb +16 -0
- data/lib/generators/redde/layout/layout_generator.rb +3 -26
- data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +1 -0
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin.css +15 -0
- data/lib/generators/redde/scaffold/scaffold_generator.rb +45 -8
- data/lib/generators/redde/scaffold/templates/controllers/controller.rb +2 -45
- data/lib/generators/redde/scaffold/templates/edit.html.haml +4 -9
- data/lib/generators/redde/scaffold/templates/index.html.haml +2 -6
- data/lib/generators/redde/scaffold/templates/ru.yml +14 -0
- data/lib/redde/engine.rb +16 -0
- data/lib/redde/version.rb +1 -1
- data/lib/redde.rb +20 -4
- data/lib/tasks/redde_tasks.rake +4 -0
- data/redde.gemspec +44 -22
- metadata +482 -455
- data/Guardfile +0 -24
- data/LICIENSE.md +0 -21
- data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
- data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
- data/lib/generators/redde/layout/templates/assets/javascripts/admin/index.js +0 -20
- data/lib/generators/redde/layout/templates/assets/redactor/javascripts/redactor/index.coffee +0 -4
- data/lib/generators/redde/layout/templates/assets/redactor/stylesheets/redactor/index.scss +0 -369
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/error-msg.sass +0 -47
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/custom/index.scss +0 -1
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/index.scss +0 -6
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/lib/generators/redde/layout/templates/base/_launchbar.html.haml +0 -11
- data/lib/generators/redde/layout/templates/base/_sidebar.html.haml +0 -14
- data/lib/generators/redde/layout/templates/controllers/base_controller.rb +0 -28
- data/lib/generators/redde/layout/templates/form_builders/redde_form_builder.rb +0 -63
- data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +0 -94
- data/lib/generators/redde/photo/photo_generator.rb +0 -35
- data/lib/generators/redde/photo/templates/controller.rb +0 -20
- data/lib/generators/redde/photo/templates/create_photos.rb +0 -16
- data/lib/generators/redde/photo/templates/photo.rb +0 -4
- data/lib/generators/redde/photo/templates/photos/_photo.haml +0 -5
- data/lib/generators/redde/photo/templates/photos/_photos.haml +0 -19
- data/lib/generators/redde/photo/templates/photos/create.js.erb +0 -1
- data/lib/redde/concerns/photoable.rb +0 -17
- data/spec/dummy/.rspec +0 -1
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/admin/addphoto.png +0 -0
- data/spec/dummy/app/assets/images/admin/ajaxloader2.gif +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_down.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_enter.png +0 -0
- data/spec/dummy/app/assets/images/admin/arrow_right.png +0 -0
- data/spec/dummy/app/assets/images/admin/coins.png +0 -0
- data/spec/dummy/app/assets/images/admin/confirm.png +0 -0
- data/spec/dummy/app/assets/images/admin/del.png +0 -0
- data/spec/dummy/app/assets/images/admin/delete.png +0 -0
- data/spec/dummy/app/assets/images/admin/email.png +0 -0
- data/spec/dummy/app/assets/images/admin/error-label-triangle.png +0 -0
- data/spec/dummy/app/assets/images/admin/error.png +0 -0
- data/spec/dummy/app/assets/images/admin/favicon.png +0 -0
- data/spec/dummy/app/assets/images/admin/fio.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder.png +0 -0
- data/spec/dummy/app/assets/images/admin/folder_.png +0 -0
- data/spec/dummy/app/assets/images/admin/icon_eye.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -101
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.js +0 -32
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -477
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -42
- data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -14
- data/spec/dummy/app/assets/images/admin/logo.png +0 -0
- data/spec/dummy/app/assets/images/admin/logo_reddeshop.png +0 -0
- data/spec/dummy/app/assets/images/admin/move_handler.png +0 -0
- data/spec/dummy/app/assets/images/admin/phone.png +0 -0
- data/spec/dummy/app/assets/images/admin/photo_ico.png +0 -0
- data/spec/dummy/app/assets/images/admin/print.png +0 -0
- data/spec/dummy/app/assets/images/admin/refresh.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit.png +0 -0
- data/spec/dummy/app/assets/images/admin/submit_hover.png +0 -0
- data/spec/dummy/app/assets/images/admin/view.png +0 -0
- data/spec/dummy/app/assets/images/admin/view_mk.png +0 -0
- data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
- data/spec/dummy/app/assets/images/redactor/plugins/file.html +0 -3
- data/spec/dummy/app/assets/images/redactor/plugins/image.html +0 -39
- data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +0 -35
- data/spec/dummy/app/assets/images/redactor/plugins/link.html +0 -74
- data/spec/dummy/app/assets/images/redactor/plugins/table.html +0 -25
- data/spec/dummy/app/assets/images/redactor/plugins/video.html +0 -15
- data/spec/dummy/app/assets/javascripts/admin/jquery.mjs.nestedSortable.js +0 -429
- data/spec/dummy/app/assets/javascripts/admin.js +0 -21
- data/spec/dummy/app/assets/javascripts/application.js +0 -14
- data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +0 -521
- data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +0 -76
- data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +0 -75
- data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +0 -2248
- data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +0 -219
- data/spec/dummy/app/assets/stylesheets/admin/blocks/list.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/notice.scss +0 -39
- data/spec/dummy/app/assets/stylesheets/admin/blocks/orders.scss +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/blocks/paginate.sass +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/pagination.scss +0 -28
- data/spec/dummy/app/assets/stylesheets/admin/blocks/partners.scss +0 -15
- data/spec/dummy/app/assets/stylesheets/admin/blocks/phead-tabs.sass +0 -27
- data/spec/dummy/app/assets/stylesheets/admin/blocks/photos.scss +0 -31
- data/spec/dummy/app/assets/stylesheets/admin/blocks/sortable.sass +0 -44
- data/spec/dummy/app/assets/stylesheets/admin/custom/index.scss +0 -1
- data/spec/dummy/app/assets/stylesheets/admin/defaults/index.scss +0 -131
- data/spec/dummy/app/assets/stylesheets/admin/defaults/input.sass +0 -35
- data/spec/dummy/app/assets/stylesheets/admin/defaults/reset.sass +0 -33
- data/spec/dummy/app/assets/stylesheets/admin/defaults/table.scss +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/index.scss +0 -6
- data/spec/dummy/app/assets/stylesheets/admin/layouts/header.sass +0 -50
- data/spec/dummy/app/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
- data/spec/dummy/app/assets/stylesheets/admin/layouts/login.sass +0 -25
- data/spec/dummy/app/assets/stylesheets/admin/layouts/main.sass +0 -38
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-header.sass +0 -22
- data/spec/dummy/app/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
- data/spec/dummy/app/assets/stylesheets/admin/layouts/sidebar.sass +0 -30
- data/spec/dummy/app/assets/stylesheets/admin/shop/_filter.scss +0 -16
- data/spec/dummy/app/assets/stylesheets/admin/shop/_order-sh.scss +0 -59
- data/spec/dummy/app/assets/stylesheets/admin/shop/_pe.scss +0 -43
- data/spec/dummy/app/assets/stylesheets/redactor/wym.css +0 -136
- data/spec/dummy/app/controllers/admin/base_controller.rb +0 -28
- data/spec/dummy/app/controllers/admin/managers_controller.rb +0 -36
- data/spec/dummy/app/controllers/application_controller.rb +0 -6
- data/spec/dummy/app/controllers/articles_controller.rb +0 -8
- data/spec/dummy/app/controllers/managers/registrations_controller.rb +0 -21
- data/spec/dummy/app/helpers/admin_helper.rb +0 -94
- data/spec/dummy/app/models/article.rb +0 -4
- data/spec/dummy/app/models/article_category.rb +0 -2
- data/spec/dummy/app/models/photo.rb +0 -3
- data/spec/dummy/app/views/admin/base/_header.html.haml +0 -12
- data/spec/dummy/app/views/admin/base/_launchbar.html.haml +0 -11
- data/spec/dummy/app/views/admin/base/_sidebar.html.haml +0 -14
- data/spec/dummy/app/views/admin/base/_validate.haml +0 -8
- data/spec/dummy/app/views/admin/base/welcome.haml +0 -2
- data/spec/dummy/app/views/admin/photos/_photo.haml +0 -5
- data/spec/dummy/app/views/admin/photos/_photos.haml +0 -19
- data/spec/dummy/app/views/admin/photos/create.js.erb +0 -1
- data/spec/dummy/app/views/admin/photos/destroy.js.erb +0 -1
- data/spec/dummy/app/views/articles/show.html.haml +0 -2
- data/spec/dummy/app/views/layouts/admin.html.haml +0 -29
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/login.html.haml +0 -32
- 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/application.rb +0 -33
- 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 -36
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20130908123351_create_articles.rb +0 -9
- data/spec/dummy/db/migrate/20140128152208_create_article_categories.rb +0 -11
- data/spec/dummy/db/migrate/20140607122532_create_photos.rb +0 -16
- data/spec/dummy/db/schema.rb +0 -98
- 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/generators/layout_generator_spec.rb +0 -42
- data/spec/generators/photo_generator_spec.rb +0 -32
- data/spec/generators/scaffold_generator_spec.rb +0 -58
- data/spec/models/sluggable_spec.rb +0 -42
- data/spec/models/url_generator_spec.rb +0 -18
- data/spec/models/with_photo_spec.rb +0 -25
- data/spec/spec_helper.rb +0 -52
- /data/{lib/generators/redde/layout/templates/assets/redactor → app/assets}/images/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/addphoto.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/ajaxloader2.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_down.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_enter.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_right.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/coins.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/confirm.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/delete.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/email.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/error.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/favicon.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/fio.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/icon_eye.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/logo_reddeshop.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/phone.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/photo_ico.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/print.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/refresh.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit_hover.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view.png +0 -0
- /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view_mk.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/error-label-triangle.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/folder.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/logo.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/images/admin/move_handler.png → app/assets/images/redde/move-handler.png} +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/icons.png +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/file.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image_edit.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/link.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/table.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/video.html +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/en.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/ru.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/toolbars/default.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/javascripts/admin → app/assets/javascripts/redde/sortTree}/jquery.mjs.nestedSortable.js +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/list.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/orders.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/paginate.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/pagination.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/partners.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/phead-tabs.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/login.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/sidebar.sass +0 -0
- /data/{lib/generators/redde/layout/templates/assets/redactor/stylesheets → app/assets/stylesheets/redde}/redactor/wym.css +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_filter.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_order-sh.scss +0 -0
- /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_pe.scss +0 -0
- /data/{spec/dummy/app/assets/images → app/controllers}/.keep +0 -0
- /data/{lib/generators/redde/layout/templates → app}/controllers/managers/registrations_controller.rb +0 -0
- /data/{spec/dummy/app/models → app/helpers}/.keep +0 -0
- /data/{spec/dummy/lib/assets → app/mailers}/.keep +0 -0
- /data/{spec/dummy/log → app/models}/.keep +0 -0
- /data/{spec/dummy/app/assets/stylesheets/application.css.scss → app/views/.keep} +0 -0
- /data/{lib/generators/redde/layout/templates → app/views/admin}/base/welcome.haml +0 -0
- /data/{lib/generators/redde/photo/templates/photos → app/views/admin/redde_photos}/destroy.js.erb +0 -0
@@ -1,24 +0,0 @@
|
|
1
|
-
table {
|
2
|
-
border-collapse:collapse; width:100%;
|
3
|
-
thead {
|
4
|
-
th, td {padding-top:0; padding-bottom:0; }
|
5
|
-
}
|
6
|
-
th, td {vertical-align:baseline; padding: 4px 0; border-bottom: 1px solid #EDEDED;}
|
7
|
-
th {
|
8
|
-
border-bottom: 1px solid #EDEDED; width:1px; padding-right:10px;
|
9
|
-
label {white-space:nowrap;}
|
10
|
-
}
|
11
|
-
td {
|
12
|
-
padding-left:2px;
|
13
|
-
a { color: #999; text-decoration: none; font-size: 11px; }
|
14
|
-
input[type=text], input[type=password], textarea {
|
15
|
-
border-radius:1px;
|
16
|
-
width:100%; margin-left:-2px; border:1px solid #000; border-color:#abadb3 #dbdfe6 #e3e9ef #e2e3ea;
|
17
|
-
&:hover {border-color:#5794bf #b7d5ea #c7e2f1 #c5daed;}
|
18
|
-
}
|
19
|
-
textarea.mini {height:60px; resize:none;}
|
20
|
-
input[type=password] {width:auto;}
|
21
|
-
select {margin-left:-2px;}
|
22
|
-
.imp_redactor_box {margin-left:-2px;}
|
23
|
-
}
|
24
|
-
}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
.header
|
2
|
-
padding: 0 30px
|
3
|
-
color: #fff
|
4
|
-
line-height: 23px
|
5
|
-
text-decoration: none
|
6
|
-
margin-bottom: 20px
|
7
|
-
box-shadow: #666 0 0 3px
|
8
|
-
background-color: #005782
|
9
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1A719C', endColorstr='#005782')
|
10
|
-
background: linear-gradient(to bottom, #1A719C 0%, #005782 100%)
|
11
|
-
|
12
|
-
.header__init
|
13
|
-
box-sizing: border-box
|
14
|
-
max-width: 1200px
|
15
|
-
min-width: 580px
|
16
|
-
padding: 6px 0 6px (185px + 31px)
|
17
|
-
margin: 0 auto
|
18
|
-
overflow: hidden
|
19
|
-
position: relative
|
20
|
-
|
21
|
-
.header__logo
|
22
|
-
position: absolute
|
23
|
-
width: 123px
|
24
|
-
height: 31px
|
25
|
-
left: 0
|
26
|
-
top: 0
|
27
|
-
bottom: 0
|
28
|
-
margin: auto
|
29
|
-
overflow: hidden
|
30
|
-
background: image-url('admin/logo.png') no-repeat 0 0
|
31
|
-
text-indent: -9999px
|
32
|
-
display: block
|
33
|
-
|
34
|
-
.header__center
|
35
|
-
overflow: hidden
|
36
|
-
float: left
|
37
|
-
font-size: (14em/12)
|
38
|
-
a
|
39
|
-
color: #fff
|
40
|
-
|
41
|
-
.header__links
|
42
|
-
float: right
|
43
|
-
margin-right: 1px
|
44
|
-
a
|
45
|
-
margin-left: (8em/12)
|
46
|
-
color: #fff
|
47
|
-
font-size: (10em/12)
|
48
|
-
text-decoration: none
|
49
|
-
line-height: 46px
|
50
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
.launchbar
|
2
|
-
background: #000
|
3
|
-
overflow: hidden
|
4
|
-
font-size: (14em/12)
|
5
|
-
|
6
|
-
.launchbar__menu
|
7
|
-
padding: 0 25px
|
8
|
-
|
9
|
-
.launchbar__link
|
10
|
-
float: left
|
11
|
-
margin-right: 4px
|
12
|
-
padding: 5px 7px 6px 4px
|
13
|
-
color: #999
|
14
|
-
border-right: 1px solid #222
|
15
|
-
text-decoration: none
|
16
|
-
&._active
|
17
|
-
color: #ddd
|
18
|
-
font-weight: bold
|
19
|
-
|
20
|
-
.launchbar__time
|
21
|
-
float: right
|
22
|
-
color: #fff
|
23
|
-
padding: 5px 4px 6px
|
@@ -1,25 +0,0 @@
|
|
1
|
-
.main._login
|
2
|
-
min-height: 0
|
3
|
-
width: 370px
|
4
|
-
margin: 0 auto
|
5
|
-
margin-bottom: 100px
|
6
|
-
|
7
|
-
.login__table
|
8
|
-
border-collapse: collapse
|
9
|
-
width: 100%
|
10
|
-
height: 100%
|
11
|
-
|
12
|
-
.login__cell
|
13
|
-
vertical-align: middle
|
14
|
-
|
15
|
-
.login__inp
|
16
|
-
box-sizing: border-box
|
17
|
-
width: 100%
|
18
|
-
margin-left: 0 !important
|
19
|
-
margin-top: 1px
|
20
|
-
|
21
|
-
.login__fields
|
22
|
-
margin-bottom: 5px
|
23
|
-
|
24
|
-
.login__actions
|
25
|
-
margin-top: 10px
|
@@ -1,38 +0,0 @@
|
|
1
|
-
.main
|
2
|
-
box-shadow: 0 0 3px #ccc
|
3
|
-
border-radius: 6px
|
4
|
-
border: 1px solid #D7D7D7
|
5
|
-
min-height: 500px
|
6
|
-
background-color: #fff
|
7
|
-
padding: 0
|
8
|
-
border-bottom: 1px solid #DADEE5
|
9
|
-
margin: 0
|
10
|
-
|
11
|
-
.wrapper
|
12
|
-
box-sizing: border-box
|
13
|
-
padding: 0 30px 30px 215px
|
14
|
-
max-width: 1260px
|
15
|
-
min-width: 800px
|
16
|
-
margin: 0 auto
|
17
|
-
&:after
|
18
|
-
content: ''
|
19
|
-
display: table
|
20
|
-
clear: both
|
21
|
-
|
22
|
-
.sidebar
|
23
|
-
margin-left: -215px
|
24
|
-
|
25
|
-
.main
|
26
|
-
margin-left: -185px
|
27
|
-
.sidebar + &
|
28
|
-
float: left
|
29
|
-
width: 100%
|
30
|
-
margin-left: 0
|
31
|
-
|
32
|
-
.content
|
33
|
-
padding: 30px
|
34
|
-
.page._sidebar &
|
35
|
-
margin-right: 305px
|
36
|
-
|
37
|
-
// .sidebar .page-sidebar
|
38
|
-
// float: right
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.page-header
|
2
|
-
background: #F1F5F9
|
3
|
-
border-bottom: 1px solid #DADEE5
|
4
|
-
padding: 15px 30px
|
5
|
-
margin: 0
|
6
|
-
border-top-right-radius: 5px
|
7
|
-
border-top-left-radius: 5px
|
8
|
-
&:after
|
9
|
-
content: ''
|
10
|
-
display: table
|
11
|
-
clear: both
|
12
|
-
h1
|
13
|
-
font-size: 16px
|
14
|
-
float: left
|
15
|
-
font-weight: normal
|
16
|
-
p
|
17
|
-
margin: 0
|
18
|
-
font-size: 11px
|
19
|
-
float: right
|
20
|
-
line-height: 1.8em
|
21
|
-
a
|
22
|
-
color: #0047B3
|
@@ -1,24 +0,0 @@
|
|
1
|
-
.page-sidebar
|
2
|
-
float: right
|
3
|
-
margin: 0 30px 0 0
|
4
|
-
padding: 30px 0 0 30px
|
5
|
-
width: 245px
|
6
|
-
border-left: 1px solid #efefef
|
7
|
-
.page._full &
|
8
|
-
display: none
|
9
|
-
ul.photos
|
10
|
-
list-style-type: none
|
11
|
-
li
|
12
|
-
display: inline
|
13
|
-
|
14
|
-
h5
|
15
|
-
line-height: 1.0em
|
16
|
-
padding: 0 0 3px 0
|
17
|
-
font-size: 12px
|
18
|
-
text-transform: none
|
19
|
-
border-bottom: 1px solid #efefef
|
20
|
-
color: #222
|
21
|
-
font-weight: bold
|
22
|
-
|
23
|
-
p
|
24
|
-
font-size: 12px
|
@@ -1,30 +0,0 @@
|
|
1
|
-
.sidebar
|
2
|
-
width: 215px
|
3
|
-
float: left
|
4
|
-
margin-top: 12px
|
5
|
-
|
6
|
-
.sidebar__badge
|
7
|
-
font-size: 10px
|
8
|
-
color: #999
|
9
|
-
&:before
|
10
|
-
content: '('
|
11
|
-
color: #000
|
12
|
-
&:after
|
13
|
-
content: ')'
|
14
|
-
color: #000
|
15
|
-
|
16
|
-
.sidebar__link
|
17
|
-
display: block
|
18
|
-
overflow: hidden
|
19
|
-
padding: 6px 6px 6px 36px
|
20
|
-
margin-left: -6px
|
21
|
-
text-decoration: none
|
22
|
-
font-size: 13px
|
23
|
-
line-height: (16em/13)
|
24
|
-
color: #555
|
25
|
-
text-shadow: 0px 1px 1px #fff
|
26
|
-
&._active
|
27
|
-
font-weight: bold
|
28
|
-
color: #000
|
29
|
-
background-color: #e5e3de
|
30
|
-
border-radius: 4px 0 0 4px
|
@@ -1,16 +0,0 @@
|
|
1
|
-
.filter {
|
2
|
-
border-collapse:collapse; margin-bottom:10px; width:auto;
|
3
|
-
td {padding:0 10px 0 0; vertical-align:bottom; width:auto; border-bottom:0;}
|
4
|
-
label {font-size:11px; font-weight:normal;}
|
5
|
-
input {font-size:12px;}
|
6
|
-
input[type='submit'] {padding-top:0; padding-bottom:0;}
|
7
|
-
select optgroup option {margin-left:20px;}
|
8
|
-
.view {
|
9
|
-
position:relative; width:49px; height:19px; background:url(admin/view.png) no-repeat 0 0;
|
10
|
-
a {position:absolute; top:0; height:25px; width:23px;}
|
11
|
-
.view1, &.act_photo .view2 {background:url(admin/view_mk.png) no-repeat 50% 100%;}
|
12
|
-
&.act_photo .view1 {background:none;}
|
13
|
-
.view1 {left:0;}
|
14
|
-
.view2 {right:0;}
|
15
|
-
}
|
16
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
.order-sh {
|
2
|
-
font-family:Tahoma; position:relative; z-index:0;
|
3
|
-
.order-name {
|
4
|
-
position:relative;
|
5
|
-
a.print { padding:0 0 0 21px; position:absolute; right:0; bottom:6px; background:image-url("admin/print.png") no-repeat 0 0; display:block;}
|
6
|
-
}
|
7
|
-
h2 {font-size:16px; text-transform:uppercase; border-bottom:1px solid #d9e6ed; padding:0 0 5px;}
|
8
|
-
h3 {color:#025984; font-size:12px; margin:10px 0 10px;}
|
9
|
-
.contact-data {
|
10
|
-
th, td {border:none; padding-top:1px; padding-bottom:1px;}
|
11
|
-
th {color:#636363; font-weight:normal;}
|
12
|
-
td.phone {font-weight:bold;}
|
13
|
-
}
|
14
|
-
.total-sum {
|
15
|
-
margin-top:20px;
|
16
|
-
text-align:right; font-size:16px; color:#025984;
|
17
|
-
strong {color:#000;}
|
18
|
-
}
|
19
|
-
.order-list {
|
20
|
-
thead {
|
21
|
-
td {background:#e5e3de; border-color:#e5e3de; color:#1e1e1e; font-size:10px; border-top-width:8px;}
|
22
|
-
.last {text-align:center;}
|
23
|
-
td.sep {width:1px; padding:0;}
|
24
|
-
}
|
25
|
-
td {vertical-align:middle; border-style:solid; border-width:0 0; }
|
26
|
-
td.first {width:1px; padding-left:10px; padding-right:10px; text-align:right;}
|
27
|
-
td.img {width:1px; padding-right:20px;}
|
28
|
-
img {border:1px solid #cdcdcc; vertical-align:top;}
|
29
|
-
tbody {
|
30
|
-
td {color:#636363; padding:0; border-width:8px 0;}
|
31
|
-
tr.line-0 td {padding-top:0; border-top-width:0;}
|
32
|
-
.odd td {background:#f7f7f5; border-color:#f7f7f5;}
|
33
|
-
.even td {background:#e5e3de; border-color:#e5e3de;}
|
34
|
-
.sep {width:1px; font-size:0px; padding:0; border-width:8px 2px;}
|
35
|
-
td.last {text-align:center; background-size:1px 100%; background-repeat:no-repeat !important; font-weight:bold;}
|
36
|
-
td.big-size {font-size:18px; color:#393838;}
|
37
|
-
td.desc a {color:#1e1e1e; font-weight:bold;}
|
38
|
-
.even td.sep {
|
39
|
-
background:#c3c1bd;
|
40
|
-
background-image:-moz-linear-gradient(top, #e5e3de 10%, #c3c1bd 10%, #c3c1bd 90%, #e5e3de 90%);
|
41
|
-
background-image:-webkit-linear-gradient(top, #e5e3de 10%, #c3c1bd 10%, #c3c1bd 90%, #e5e3de 90%);
|
42
|
-
background-image:-o-linear-gradient(top, #e5e3de 10%, #c3c1bd 10%, #c3c1bd 90%, #e5e3de 90%);
|
43
|
-
-pie-background:linear-gradient(top, #e5e3de 10%, #c3c1bd 10%, #c3c1bd 90%, #e5e3de 90%);
|
44
|
-
behavior:url("/PIE.htc");
|
45
|
-
}
|
46
|
-
.odd td.sep {
|
47
|
-
background:#c3c1bd;
|
48
|
-
background-image:-moz-linear-gradient(top, #f7f5f5 10%, #c3c1bd 10%, #c3c1bd 90%, #f7f5f5 90%);
|
49
|
-
background-image:-webkit-linear-gradient(top, #f7f5f5 10%, #c3c1bd 10%, #c3c1bd 90%, #f7f5f5 90%);
|
50
|
-
background-image:-o-linear-gradient(top, #f7f5f5 10%, #c3c1bd 10%, #c3c1bd 90%, #f7f5f5 90%);
|
51
|
-
-pie-background:linear-gradient(top, #f7f5f5 10%, #c3c1bd 10%, #c3c1bd 90%, #f7f5f5 90%);
|
52
|
-
behavior:url("/PIE.htc");
|
53
|
-
}
|
54
|
-
.spacer td {background:#fff; font-size:5px; line-height:5px; border-bottom:none; border-top:none;}
|
55
|
-
.even + .spacer td {background:#fff; border-color:#e5e3de #fff #f7f7f5;}
|
56
|
-
.odd + .spacer td {background:#fff; border-color:#f7f7f5 #fff #e5e3de;}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
table.pe {
|
2
|
-
width:auto; border-collapse:collapse;
|
3
|
-
.col-a, .col-b, .col-c {width:1%;}
|
4
|
-
.col-h { width:1%;}
|
5
|
-
a:hover {color:#737300;}
|
6
|
-
tr.selected td {background:#CCFFCC;}
|
7
|
-
tr:hover td {background:#ffc;}
|
8
|
-
td {vertical-align:middle; width:auto; padding:0 5px 0 0;}
|
9
|
-
th {font-size:13px; padding:0; font-weight:normal; background:#ededed; padding-left:5px;}
|
10
|
-
th.handle {background:none;}
|
11
|
-
.handle {border-bottom-color:#fff;}
|
12
|
-
td * {vertical-align:middle;}
|
13
|
-
td.ch-box {padding-left:5px; padding-right:12px;}
|
14
|
-
td.show {
|
15
|
-
a {border-radius:10px; border:1px solid transparent; display:inline-block; width:20px; height:20px; background:image-url("admin/icon_eye.gif") no-repeat 1px 1px;}
|
16
|
-
a.not-show {opacity:0.4; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=40);}
|
17
|
-
}
|
18
|
-
a.new, a.sale {
|
19
|
-
display:inline-block; width:50px;
|
20
|
-
-moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; text-align:center; color:#fff;
|
21
|
-
}
|
22
|
-
a.new:hover, a.sale:hover {opacity:0.8;}
|
23
|
-
a.new.active {
|
24
|
-
background-color: #005782;
|
25
|
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#1A719C), to(#005782));
|
26
|
-
background-image: -moz-linear-gradient(center top, #1A719C 0%, #005782 100% );
|
27
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1A719C', endColorstr='#005782');
|
28
|
-
}
|
29
|
-
a.sale.active {
|
30
|
-
background-color: #730707;
|
31
|
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#f00), to(#730707));
|
32
|
-
background-image: -moz-linear-gradient(center top, #f00 0%, #730707 100% );
|
33
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f00', endColorstr='#730707');
|
34
|
-
}
|
35
|
-
a.sale, a.new {background:#ccc;}
|
36
|
-
.wr_img {
|
37
|
-
width:41px; height:41px; position:relative;
|
38
|
-
img {width:41px; height:41px; position:absolute; display:block;}
|
39
|
-
img:hover {width:72px; height:72px; z-index:10; border:1px solid #D7D7D7; top:-15px; left:-15px;}
|
40
|
-
}
|
41
|
-
.green {color:green; font-weight:bold; text-shadow:0 0 10px green; }
|
42
|
-
.red {color:red; font-weight:bold; text-shadow:0 0 10px red; }
|
43
|
-
}
|
@@ -1,136 +0,0 @@
|
|
1
|
-
|
2
|
-
body {
|
3
|
-
font-family: "PT Sans", "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
|
4
|
-
font-size: 14px;
|
5
|
-
margin: 0;
|
6
|
-
padding: 0;
|
7
|
-
overflow-x: hidden;
|
8
|
-
background-color: #f8f8f8;
|
9
|
-
}
|
10
|
-
|
11
|
-
#page {
|
12
|
-
margin: 20px;
|
13
|
-
background: #f8f8f8;
|
14
|
-
border: none;
|
15
|
-
padding: 0;
|
16
|
-
}
|
17
|
-
#page:focus {
|
18
|
-
outline: none;
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
div,
|
23
|
-
p,
|
24
|
-
ul,
|
25
|
-
ol,
|
26
|
-
table,
|
27
|
-
dl,
|
28
|
-
pre,
|
29
|
-
h1,
|
30
|
-
h2,
|
31
|
-
h3,
|
32
|
-
h4,
|
33
|
-
h5,
|
34
|
-
blockquote {
|
35
|
-
background-color: #fff;
|
36
|
-
border: 1px solid #ebebeb;
|
37
|
-
padding: 10px;
|
38
|
-
margin: 10px 0;
|
39
|
-
}
|
40
|
-
|
41
|
-
p ul,
|
42
|
-
p ol {
|
43
|
-
margin: 0;
|
44
|
-
padding: 0;
|
45
|
-
border: none;
|
46
|
-
}
|
47
|
-
|
48
|
-
div,
|
49
|
-
p,
|
50
|
-
ul,
|
51
|
-
ol,
|
52
|
-
table,
|
53
|
-
dl,
|
54
|
-
blockquote,
|
55
|
-
pre,
|
56
|
-
iframe,
|
57
|
-
object,
|
58
|
-
hr {
|
59
|
-
margin-bottom: 15px;
|
60
|
-
line-height: 1.5em;
|
61
|
-
}
|
62
|
-
blockquote {
|
63
|
-
margin-left: 3em;
|
64
|
-
font-style: italic;
|
65
|
-
color: #777;
|
66
|
-
}
|
67
|
-
div {
|
68
|
-
background-color: #fff;
|
69
|
-
border: 1px dashed #ebebeb;
|
70
|
-
}
|
71
|
-
ul, ol {
|
72
|
-
padding-left: 2em !important;
|
73
|
-
}
|
74
|
-
ul ul,
|
75
|
-
ol ol,
|
76
|
-
ul ol,
|
77
|
-
ol ul {
|
78
|
-
border: none;
|
79
|
-
margin: 2px !important;
|
80
|
-
padding: 0;
|
81
|
-
padding-left: 2em;
|
82
|
-
}
|
83
|
-
dl dt { font-weight: bold; }
|
84
|
-
dd { margin-left: 1em;}
|
85
|
-
|
86
|
-
table {
|
87
|
-
border-collapse: collapse;
|
88
|
-
font-size: 1em;
|
89
|
-
}
|
90
|
-
table td {
|
91
|
-
border: 1px solid #ddd;
|
92
|
-
padding: 5px;
|
93
|
-
}
|
94
|
-
table thead td {
|
95
|
-
border-bottom: 2px solid #000 !important;
|
96
|
-
font-weight: bold;
|
97
|
-
}
|
98
|
-
code, pre {
|
99
|
-
font-family: monospace sans-serif;
|
100
|
-
}
|
101
|
-
code {
|
102
|
-
background-color: #d8d7d7;
|
103
|
-
}
|
104
|
-
pre {
|
105
|
-
padding: 1em;
|
106
|
-
border: 1px dashed #ccc;
|
107
|
-
background: #f5f5f5;
|
108
|
-
overflow: auto;
|
109
|
-
}
|
110
|
-
hr {
|
111
|
-
display: block;
|
112
|
-
height: 1px;
|
113
|
-
border: 0;
|
114
|
-
border-top: 1px solid #ccc;
|
115
|
-
}
|
116
|
-
|
117
|
-
h1, h2, h3, h4,h5 {
|
118
|
-
font-weight: bold;
|
119
|
-
margin-bottom: 10px;
|
120
|
-
}
|
121
|
-
|
122
|
-
h1 {
|
123
|
-
font-size: 36px;
|
124
|
-
}
|
125
|
-
h2 {
|
126
|
-
font-size: 30px;
|
127
|
-
}
|
128
|
-
h3 {
|
129
|
-
font-size: 24px;
|
130
|
-
}
|
131
|
-
h4 {
|
132
|
-
font-size: 18px;
|
133
|
-
}
|
134
|
-
h4 {
|
135
|
-
font-size: 1em;
|
136
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
class Admin::BaseController < ActionController::Base
|
2
|
-
layout 'admin'
|
3
|
-
before_filter :authenticate_manager!
|
4
|
-
include AdminHelper
|
5
|
-
|
6
|
-
def welcome
|
7
|
-
end
|
8
|
-
|
9
|
-
private
|
10
|
-
|
11
|
-
def redirect_or_edit(obj, saved, notice = nil)
|
12
|
-
if saved
|
13
|
-
redirect_to url_for_obj(obj), notice: notice_for(obj, notice)
|
14
|
-
else
|
15
|
-
render 'edit'
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def notice_for(obj, notice = nil)
|
20
|
-
notice ||= 'сохранен'
|
21
|
-
"#{obj.class.model_name.human} #{notice}."
|
22
|
-
end
|
23
|
-
|
24
|
-
def url_for_obj(obj)
|
25
|
-
return [:edit, :admin, obj] if params[:commit] == 'Применить'
|
26
|
-
[:admin, obj.class.model_name.plural.to_sym]
|
27
|
-
end
|
28
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
class Admin::ManagersController < Admin::BaseController
|
2
|
-
def index
|
3
|
-
@managers = Manager.all
|
4
|
-
end
|
5
|
-
|
6
|
-
def new
|
7
|
-
@manager = Manager.new
|
8
|
-
render 'edit'
|
9
|
-
end
|
10
|
-
|
11
|
-
def create
|
12
|
-
@manager = Manager.new(manager_params)
|
13
|
-
redirect_or_edit(@manager, @manager.save)
|
14
|
-
end
|
15
|
-
|
16
|
-
def edit
|
17
|
-
@manager = Manager.find(params[:id])
|
18
|
-
end
|
19
|
-
|
20
|
-
def update
|
21
|
-
@manager = Manager.find(params[:id])
|
22
|
-
redirect_or_edit(@manager, @manager.update(manager_params))
|
23
|
-
end
|
24
|
-
|
25
|
-
def destroy
|
26
|
-
@manager = Manager.find(params[:id])
|
27
|
-
@manager.destroy if current_manager.id != @manager.id
|
28
|
-
redirect_to [:admin, :managers], alert: 'Администратор удален'
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def manager_params
|
34
|
-
params[:manager].permit!
|
35
|
-
end
|
36
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class Managers::RegistrationsController < Devise::RegistrationsController
|
2
|
-
def new
|
3
|
-
redirect_to root_path, alert: 'Регистрация закрыта'
|
4
|
-
end
|
5
|
-
|
6
|
-
def create
|
7
|
-
redirect_to root_path, alert: 'Регистрация закрыта'
|
8
|
-
end
|
9
|
-
|
10
|
-
def edit
|
11
|
-
redirect_to root_path, alert: 'Регистрация закрыта'
|
12
|
-
end
|
13
|
-
|
14
|
-
def update
|
15
|
-
redirect_to root_path, alert: 'Регистрация закрыта'
|
16
|
-
end
|
17
|
-
|
18
|
-
def destroy
|
19
|
-
redirect_to root_path, alert: 'Регистрация закрыта'
|
20
|
-
end
|
21
|
-
end
|