locomotivecms 3.0.0.pre.alpha.3 → 3.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +15 -8
- data/app/api/locomotive/api.rb +1 -0
- data/app/api/locomotive/api/entities/content_entry_entity.rb +1 -0
- data/app/api/locomotive/api/entities/content_type_entity.rb +2 -1
- data/app/api/locomotive/api/entities/site_entity.rb +4 -0
- data/app/api/locomotive/api/entities/theme_asset_entity.rb +3 -3
- data/app/api/locomotive/api/forms/base_form.rb +0 -6
- data/app/api/locomotive/api/forms/content_type_field_form.rb +6 -10
- data/app/api/locomotive/api/forms/content_type_form.rb +26 -4
- data/app/api/locomotive/api/middlewares/params_decoder_middleware.rb +91 -0
- data/app/api/locomotive/api/resources/content_type_resource.rb +7 -2
- data/app/api/locomotive/api/resources/current_site_resource.rb +10 -2
- data/app/assets/images/locomotive/favicon.png +0 -0
- data/app/assets/javascripts/locomotive/not_logged_in.js.coffee +11 -1
- data/app/assets/javascripts/locomotive/views/application_view.js.coffee +0 -76
- data/app/assets/javascripts/locomotive/views/content_assets/edit_image_view.js.coffee +3 -1
- data/app/assets/javascripts/locomotive/views/dashboard/show_view.js.coffee +33 -1
- data/app/assets/javascripts/locomotive/views/developers_documentation/show_view.js.coffee +9 -0
- data/app/assets/javascripts/locomotive/views/editable_elements/edit_view.js.coffee +3 -1
- data/app/assets/javascripts/locomotive/views/editable_elements/index_view.js.coffee +11 -11
- data/app/assets/javascripts/locomotive/views/inputs/text_view.js.coffee +16 -0
- data/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee +0 -158
- data/app/assets/javascripts/locomotive/views/pages/edit_view.js.coffee +0 -41
- data/app/assets/javascripts/locomotive/views/public_submission_accounts/edit_view.js.coffee +7 -0
- data/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee +11 -3
- data/app/assets/javascripts/locomotive/views/shared/list_view.js.coffee +4 -2
- data/app/assets/javascripts/locomotive/views/translations/index_view.js.coffee +5 -0
- data/app/assets/stylesheets/locomotive/application.scss +4 -0
- data/app/assets/stylesheets/locomotive/base/_fonts.scss +5 -5
- data/app/assets/stylesheets/locomotive/base/form/_base.scss +9 -1
- data/app/assets/stylesheets/locomotive/components/_activity_feed.scss +66 -0
- data/app/assets/stylesheets/locomotive/components/_content_assets.scss +27 -8
- data/app/assets/stylesheets/locomotive/components/_developers.scss +34 -0
- data/app/assets/stylesheets/locomotive/components/_error.scss +37 -0
- data/app/assets/stylesheets/locomotive/components/_list.scss +6 -0
- data/app/assets/stylesheets/locomotive/components/_main.scss +4 -0
- data/app/assets/stylesheets/locomotive/components/_misc.scss +1 -0
- data/app/assets/stylesheets/locomotive/components/_translations.scss +13 -0
- data/app/assets/stylesheets/locomotive/components/header/_base.scss +7 -2
- data/app/assets/stylesheets/locomotive/components/misc/_modal.scss +13 -0
- data/app/assets/stylesheets/locomotive/components/misc/_notify.scss +2 -2
- data/app/assets/stylesheets/locomotive/components/not_logged_in/_sign_in_and_up.scss +11 -1
- data/app/assets/stylesheets/locomotive/components/sidebar/_pages_tree.scss +2 -2
- data/app/assets/stylesheets/locomotive/error.scss +12 -0
- data/app/assets/stylesheets/locomotive/globals/_bootstrap.scss +1 -1
- data/app/assets/stylesheets/locomotive/globals/_mixins.scss +8 -4
- data/app/assets/stylesheets/locomotive/globals/_variables.scss +2 -0
- data/app/assets/stylesheets/locomotive/not_logged_in.scss +4 -0
- data/app/controllers/locomotive/accounts_controller.rb +6 -1
- data/app/controllers/locomotive/base_controller.rb +1 -1
- data/app/controllers/locomotive/concerns/exception_controller.rb +2 -1
- data/app/controllers/locomotive/concerns/site_dispatcher_controller.rb +2 -1
- data/app/controllers/locomotive/content_assets_controller.rb +2 -2
- data/app/controllers/locomotive/content_entries_controller.rb +2 -2
- data/app/controllers/locomotive/current_site_controller.rb +5 -1
- data/app/controllers/locomotive/custom_fields/select_options_controller.rb +1 -1
- data/app/controllers/locomotive/dashboard_controller.rb +2 -0
- data/app/controllers/locomotive/developers_documentation_controller.rb +11 -0
- data/app/controllers/locomotive/editable_elements_controller.rb +11 -10
- data/app/controllers/locomotive/errors_controller.rb +15 -0
- data/app/controllers/locomotive/pages_controller.rb +3 -3
- data/app/controllers/locomotive/public_submission_accounts_controller.rb +42 -0
- data/app/controllers/locomotive/translations_controller.rb +9 -23
- data/app/helpers/locomotive/base_helper.rb +25 -23
- data/app/helpers/locomotive/content_assets_helper.rb +8 -0
- data/app/helpers/locomotive/content_entries_helper.rb +13 -19
- data/app/helpers/locomotive/content_types_helper.rb +9 -12
- data/app/helpers/locomotive/custom_fields_helper.rb +1 -0
- data/app/helpers/locomotive/dashboard_helper.rb +91 -0
- data/app/helpers/locomotive/developers_documentation_helper.rb +32 -0
- data/app/helpers/locomotive/editable_elements_helper.rb +25 -14
- data/app/helpers/locomotive/errors_helper.rb +21 -0
- data/app/helpers/locomotive/my_account_helper.rb +10 -8
- data/app/helpers/locomotive/pages_helper.rb +1 -1
- data/app/helpers/locomotive/public_submission_accounts_helper.rb +11 -0
- data/app/helpers/locomotive/shared/accounts_helper.rb +2 -2
- data/app/helpers/locomotive/sites_helper.rb +15 -11
- data/app/helpers/locomotive/translations_helper.rb +21 -13
- data/app/inputs/locomotive/api_key_input.rb +2 -0
- data/app/inputs/locomotive/array_input.rb +8 -3
- data/app/inputs/locomotive/code_input.rb +1 -47
- data/app/inputs/locomotive/document_picker_input.rb +1 -0
- data/app/inputs/locomotive/rte_input.rb +2 -0
- data/app/inputs/locomotive/toggle_input.rb +2 -0
- data/app/models/locomotive/activity.rb +32 -0
- data/app/models/locomotive/concerns/content_entry/localized.rb +12 -1
- data/app/models/locomotive/concerns/content_type/entry_template.rb +52 -0
- data/app/models/locomotive/concerns/page/editable_elements.rb +0 -111
- data/app/models/locomotive/concerns/page/layout.rb +21 -6
- data/app/models/locomotive/concerns/site/access_points.rb +24 -3
- data/app/models/locomotive/concerns/site/locales.rb +7 -27
- data/app/models/locomotive/content_asset.rb +0 -4
- data/app/models/locomotive/content_entry.rb +10 -8
- data/app/models/locomotive/content_type.rb +12 -1
- data/app/models/locomotive/editable_element.rb +11 -106
- data/app/models/locomotive/editable_file.rb +6 -53
- data/app/models/locomotive/editable_model.rb +13 -0
- data/app/models/locomotive/editable_text.rb +0 -51
- data/app/models/locomotive/page.rb +31 -17
- data/app/models/locomotive/site.rb +12 -13
- data/app/models/locomotive/theme_asset.rb +0 -4
- data/app/models/locomotive/translation.rb +50 -35
- data/app/policies/locomotive/content_type_policy.rb +4 -0
- data/app/policies/locomotive/site_policy.rb +4 -0
- data/app/services/locomotive/concerns/activity_service.rb +27 -0
- data/app/services/locomotive/content_asset_service.rb +16 -2
- data/app/services/locomotive/content_entry_service.rb +77 -8
- data/app/services/locomotive/content_type_service.rb +6 -2
- data/app/services/locomotive/editable_element_service.rb +11 -4
- data/app/services/locomotive/membership_service.rb +20 -4
- data/app/services/locomotive/page_parsing_service.rb +94 -23
- data/app/services/locomotive/page_service.rb +61 -3
- data/app/services/locomotive/site_service.rb +43 -1
- data/app/services/locomotive/translation_service.rb +51 -0
- data/app/uploaders/locomotive/picture_uploader.rb +5 -1
- data/app/views/locomotive/accounts/{new.html.haml → new.html.slim} +0 -0
- data/app/views/locomotive/content_assets/{_dropzone.html.haml → _dropzone.html.slim} +4 -3
- data/app/views/locomotive/content_assets/{_list.html.haml → _list.html.slim} +11 -9
- data/app/views/locomotive/content_assets/{_nav.html.haml → _nav.html.slim} +5 -5
- data/app/views/locomotive/content_assets/{_search_form.html.haml → _search_form.html.slim} +1 -1
- data/app/views/locomotive/content_assets/edit_in_drawer.html.slim +27 -0
- data/app/views/locomotive/content_assets/{index.html.haml → index.html.slim} +4 -4
- data/app/views/locomotive/content_assets/{index_in_drawer.html.haml → index_in_drawer.html.slim} +1 -1
- data/app/views/locomotive/content_entries/{_entry.html.haml → _entry.html.slim} +3 -3
- data/app/views/locomotive/content_entries/{_list.html.haml → _list.html.slim} +9 -8
- data/app/views/locomotive/content_entries/{edit.html.haml → edit.html.slim} +5 -0
- data/app/views/locomotive/content_entries/form/{_actions.html.haml → _actions.html.slim} +0 -0
- data/app/views/locomotive/content_entries/form/{_advanced.html.haml → _advanced.html.slim} +0 -0
- data/app/views/locomotive/content_entries/form/{_main.html.haml → _main.html.slim} +0 -0
- data/app/views/locomotive/content_entries/form/{_panes.html.haml → _panes.html.slim} +0 -0
- data/app/views/locomotive/content_entries/form/{_seo.html.haml → _seo.html.slim} +0 -0
- data/app/views/locomotive/content_entries/form/_tabs.html.slim +13 -0
- data/app/views/locomotive/content_entries/{index.html.haml → index.html.slim} +22 -9
- data/app/views/locomotive/content_entries/{new.html.haml → new.html.slim} +0 -0
- data/app/views/locomotive/current_site/{_domain.html.haml → _domain.html.slim} +3 -3
- data/app/views/locomotive/current_site/{_locale.html.haml → _locale.html.slim} +4 -4
- data/app/views/locomotive/current_site/{_membership.html.haml → _membership.html.slim} +7 -6
- data/app/views/locomotive/current_site/{edit.html.haml → edit.html.slim} +1 -1
- data/app/views/locomotive/current_site/form/{_access_points.html.haml → _access_points.html.slim} +1 -0
- data/app/views/locomotive/current_site/form/{_advanced.html.haml → _advanced.html.slim} +0 -0
- data/app/views/locomotive/current_site/form/{_main.html.haml → _main.html.slim} +0 -0
- data/app/views/locomotive/current_site/form/{_panes.html.haml → _panes.html.slim} +0 -0
- data/app/views/locomotive/current_site/form/{_seo.html.haml → _seo.html.slim} +0 -0
- data/app/views/locomotive/current_site/form/_tabs.html.slim +14 -0
- data/app/views/locomotive/custom_fields/select_options/{_option.html.haml → _option.html.slim} +7 -7
- data/app/views/locomotive/custom_fields/select_options/{edit.html.haml → edit.html.slim} +0 -0
- data/app/views/locomotive/dashboard/show.html.slim +28 -0
- data/app/views/locomotive/developers_documentation/_api.html.slim +44 -0
- data/app/views/locomotive/developers_documentation/_wagon.html.slim +42 -0
- data/app/views/locomotive/developers_documentation/show.html.slim +11 -0
- data/app/views/locomotive/devise_mailer/reset_password_instructions.html.slim +12 -0
- data/app/views/locomotive/editable_elements/_edit.html.slim +52 -0
- data/app/views/locomotive/editable_elements/{_form.html.haml → _form.html.slim} +12 -3
- data/app/views/locomotive/editable_elements/index.html.slim +8 -0
- data/app/views/locomotive/editable_elements/{index_without_preview.html.haml → index_without_preview.html.slim} +5 -4
- data/app/views/locomotive/errors/404.html.slim +2 -0
- data/app/views/locomotive/errors/500.html.slim +2 -0
- data/app/views/locomotive/errors/no_site.html.slim +7 -0
- data/app/views/locomotive/layouts/application.html.slim +42 -0
- data/app/views/locomotive/layouts/error.html.slim +24 -0
- data/app/views/locomotive/layouts/{live_editing.html.haml → live_editing.html.slim} +10 -10
- data/app/views/locomotive/layouts/not_logged_in.html.slim +26 -0
- data/app/views/locomotive/layouts/{without_site.html.haml → without_site.html.slim} +9 -6
- data/app/views/locomotive/memberships/{edit.html.haml → edit.html.slim} +0 -0
- data/app/views/locomotive/memberships/{new.html.haml → new.html.slim} +0 -0
- data/app/views/locomotive/my_account/{edit.html.haml → edit.html.slim} +1 -1
- data/app/views/locomotive/my_account/form/{_actions.html.haml → _actions.html.slim} +0 -0
- data/app/views/locomotive/my_account/form/{_api.html.haml → _api.html.slim} +0 -1
- data/app/views/locomotive/my_account/form/{_credentials.html.haml → _credentials.html.slim} +0 -0
- data/app/views/locomotive/my_account/form/{_main.html.haml → _main.html.slim} +0 -0
- data/app/views/locomotive/my_account/form/{_panes.html.haml → _panes.html.slim} +1 -1
- data/app/views/locomotive/my_account/form/_tabs.html.slim +7 -0
- data/app/views/locomotive/notifications/{new_content_entry.html.haml → new_content_entry.html.slim} +11 -11
- data/app/views/locomotive/pages/{edit.html.haml → edit.html.slim} +0 -0
- data/app/views/locomotive/pages/form/{_actions.html.haml → _actions.html.slim} +0 -0
- data/app/views/locomotive/pages/form/{_main.html.haml → _main.html.slim} +0 -0
- data/app/views/locomotive/pages/form/{_panes.html.haml → _panes.html.slim} +0 -0
- data/app/views/locomotive/pages/form/{_seo.html.haml → _seo.html.slim} +0 -0
- data/app/views/locomotive/pages/form/{_tabs.html.haml → _tabs.html.slim} +1 -1
- data/app/views/locomotive/pages/{new.html.haml → new.html.slim} +0 -0
- data/app/views/locomotive/pages/show.html.slim +2 -0
- data/app/views/locomotive/passwords/{edit.html.haml → edit.html.slim} +6 -6
- data/app/views/locomotive/passwords/{new.html.haml → new.html.slim} +6 -6
- data/app/views/locomotive/public_submission_accounts/_account.html.slim +19 -0
- data/app/views/locomotive/public_submission_accounts/edit.html.slim +16 -0
- data/app/views/locomotive/registrations/{new.html.haml → new.html.slim} +2 -4
- data/app/views/locomotive/sessions/{new.html.haml → new.html.slim} +2 -4
- data/app/views/locomotive/shared/_footer.html.slim +2 -0
- data/app/views/locomotive/shared/{_form_actions.html.haml → _form_actions.html.slim} +4 -4
- data/app/views/locomotive/shared/_head.html.slim +39 -0
- data/app/views/locomotive/shared/{_header.html.haml → _header.html.slim} +10 -10
- data/app/views/locomotive/shared/_locale_picker_link.html.slim +11 -0
- data/app/views/locomotive/shared/{_main_app_head.html.haml → _main_app_head.html.slim} +0 -0
- data/app/views/locomotive/shared/{_main_app_head_before_backbone.html.haml → _main_app_head_before_backbone.html.slim} +0 -0
- data/app/views/locomotive/shared/{_main_app_header.html.haml → _main_app_header.html.slim} +0 -0
- data/app/views/locomotive/shared/{_sidebar.html.haml → _sidebar.html.slim} +6 -0
- data/app/views/locomotive/shared/{_sidebar_without_site.html.haml → _sidebar_without_site.html.slim} +0 -0
- data/app/views/locomotive/shared/actions/{_contents.html.haml → _contents.html.slim} +1 -1
- data/app/views/locomotive/shared/header/{_account.html.haml → _account.html.slim} +1 -1
- data/app/views/locomotive/shared/header/_account_menu.html.slim +5 -0
- data/app/views/locomotive/shared/header/_brand.html.slim +5 -0
- data/app/views/locomotive/shared/header/{_site.html.haml → _site.html.slim} +2 -2
- data/app/views/locomotive/shared/rte/{_image_popover.html.haml → _image_popover.html.slim} +5 -5
- data/app/views/locomotive/shared/rte/{_link_popover.html.haml → _link_popover.html.slim} +5 -5
- data/app/views/locomotive/shared/rte/_toolbar.html.slim +62 -0
- data/app/views/locomotive/shared/sidebar/_content_types.html.slim +16 -0
- data/app/views/locomotive/shared/sidebar/_link.html.slim +10 -0
- data/app/views/locomotive/shared/sidebar/{_my_account.html.haml → _my_account.html.slim} +2 -2
- data/app/views/locomotive/shared/sidebar/_page.html.slim +33 -0
- data/app/views/locomotive/shared/sidebar/_pages.html.slim +11 -0
- data/app/views/locomotive/sites/{_site.html.haml → _site.html.slim} +3 -3
- data/app/views/locomotive/sites/{index.html.haml → index.html.slim} +3 -3
- data/app/views/locomotive/sites/{new.html.haml → new.html.slim} +0 -0
- data/app/views/locomotive/translations/_form.html.slim +9 -0
- data/app/views/locomotive/translations/edit.html.slim +7 -0
- data/app/views/locomotive/translations/index.html.slim +41 -0
- data/config/initializers/slim.rb +1 -0
- data/config/initializers/time_format.rb +15 -0
- data/config/locales/admin_ui.en.yml +65 -49
- data/config/locales/default.en.yml +3 -0
- data/config/locales/default.fr.yml +4 -1
- data/config/locales/simple_form.en.yml +14 -8
- data/config/routes.rb +6 -0
- data/features/support/env.rb +1 -1
- data/lib/generators/locomotive/install/install_generator.rb +48 -0
- data/lib/generators/locomotive/install/templates/heroku.rb +29 -0
- data/lib/generators/locomotive/install/templates/locomotive.rb +5 -2
- data/lib/generators/locomotive/install/templates/mongoid.yml +1 -1
- data/lib/generators/locomotive/install/templates/mongoid_heroku.yml +78 -0
- data/lib/locomotive.rb +0 -1
- data/lib/locomotive/configuration.rb +2 -6
- data/lib/locomotive/dependencies.rb +1 -2
- data/lib/locomotive/dragonfly.rb +4 -5
- data/lib/locomotive/engine.rb +10 -13
- data/lib/locomotive/middlewares.rb +0 -1
- data/lib/locomotive/middlewares/custom_public_exceptions.rb +19 -0
- data/lib/locomotive/middlewares/site.rb +49 -16
- data/lib/locomotive/simple_form.rb +67 -26
- data/lib/locomotive/steam/middlewares/missing_translations.rb +48 -0
- data/lib/locomotive/steam/middlewares/page_editing.rb +48 -0
- data/lib/locomotive/steam/services/api_entry_submission_service.rb +38 -0
- data/lib/locomotive/steam_adaptor.rb +25 -6
- data/lib/locomotive/version.rb +1 -1
- data/lib/tasks/locomotive.rake +27 -47
- data/spec/dummy/app/views/foo/index.html.slim +1 -0
- data/spec/dummy/app/views/locomotive/shared/{_main_app_head.html.haml → _main_app_head.html.slim} +0 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +4 -0
- data/spec/dummy/config/environments/profile.rb +48 -0
- data/spec/dummy/config/mongoid.yml +6 -6
- data/spec/lib/locomotive/steam/services/api_entry_submission_service_spec.rb +39 -0
- data/spec/models/locomotive/concerns/content_type/entry_template_spec.rb +55 -0
- data/spec/models/locomotive/concerns/page/layout_spec.rb +2 -2
- data/spec/models/locomotive/concerns/site/access_points_spec.rb +87 -2
- data/spec/models/locomotive/concerns/site/locales_spec.rb +2 -3
- data/spec/models/locomotive/content_entry_spec.rb +22 -37
- data/spec/models/locomotive/page_spec.rb +11 -0
- data/spec/models/locomotive/site_spec.rb +0 -36
- data/spec/requests/site_spec.rb +28 -0
- data/spec/support/capybara.rb +27 -0
- data/spec/support/factories.rb +9 -0
- data/spec/support/features/session_helpers.rb +21 -0
- data/spec/support/locomotive.rb +0 -4
- data/spec/support/matchers.rb +0 -25
- data/vendor/assets/javascripts/locomotive/highlight.pack.js +1 -0
- data/vendor/assets/stylesheets/locomotive/highlightjs/default.css +155 -0
- data/vendor/assets/stylesheets/locomotive/highlightjs/github.css +123 -0
- metadata +179 -195
- data/app/assets/images/locomotive/background/body.png +0 -0
- data/app/assets/images/locomotive/form/error-arrow.png +0 -0
- data/app/assets/images/locomotive/form/input-sep.png +0 -0
- data/app/assets/images/locomotive/icons/start.png +0 -0
- data/app/assets/images/locomotive/list/empty.png +0 -0
- data/app/assets/images/locomotive/list/item-left.png +0 -0
- data/app/assets/images/locomotive/nocoffee.png +0 -0
- data/app/assets/images/locomotive/plugins/sites_picker_top_arrow.png +0 -0
- data/app/assets/images/locomotive/rails.png +0 -0
- data/app/assets/javascripts/locomotive/views/pages/index_view.js.coffee +0 -11
- data/app/cells/locomotive/content_locale_picker/show.html.haml +0 -7
- data/app/cells/locomotive/content_locale_picker_cell.rb +0 -21
- data/app/helpers/locomotive/installation_helper.rb +0 -9
- data/app/inputs/locomotive/locale_input.rb +0 -41
- data/app/inputs/locomotive/small_code_input.rb +0 -23
- data/app/models/locomotive/concerns/content_entry/notifications.rb +0 -33
- data/app/models/locomotive/concerns/content_type/item_template.rb +0 -49
- data/app/models/locomotive/concerns/page/parse.rb +0 -133
- data/app/presenters/locomotive/account_presenter.rb +0 -20
- data/app/presenters/locomotive/base_presenter.rb +0 -144
- data/app/presenters/locomotive/content_asset_presenter.rb +0 -51
- data/app/presenters/locomotive/content_entry_presenter.rb +0 -177
- data/app/presenters/locomotive/content_field_presenter.rb +0 -76
- data/app/presenters/locomotive/content_type_presenter.rb +0 -82
- data/app/presenters/locomotive/editable_control_presenter.rb +0 -19
- data/app/presenters/locomotive/editable_element_presenter.rb +0 -46
- data/app/presenters/locomotive/editable_file_presenter.rb +0 -36
- data/app/presenters/locomotive/editable_text_presenter.rb +0 -40
- data/app/presenters/locomotive/membership_presenter.rb +0 -35
- data/app/presenters/locomotive/page_presenter.rb +0 -81
- data/app/presenters/locomotive/site_presenter.rb +0 -40
- data/app/presenters/locomotive/snippet_presenter.rb +0 -22
- data/app/presenters/locomotive/theme_asset_presenter.rb +0 -61
- data/app/presenters/locomotive/translation_presenter.rb +0 -9
- data/app/views/locomotive/content_assets/edit_in_drawer.html.haml +0 -26
- data/app/views/locomotive/content_entries/form/_tabs.html.haml +0 -9
- data/app/views/locomotive/current_site/form/_tabs.html.haml +0 -14
- data/app/views/locomotive/dashboard/show.html.haml +0 -0
- data/app/views/locomotive/devise_mailer/reset_password_instructions.html.haml +0 -12
- data/app/views/locomotive/editable_elements/_edit.html.haml +0 -49
- data/app/views/locomotive/editable_elements/_edit_with_content_entry.html.haml +0 -21
- data/app/views/locomotive/editable_elements/index.html.haml +0 -8
- data/app/views/locomotive/errors/404.html.haml +0 -7
- data/app/views/locomotive/errors/500.html.haml +0 -7
- data/app/views/locomotive/errors/no_page.html.haml +0 -1
- data/app/views/locomotive/errors/no_site.html.haml +0 -1
- data/app/views/locomotive/layouts/application.html.haml +0 -42
- data/app/views/locomotive/layouts/error.html.haml +0 -1
- data/app/views/locomotive/layouts/not_logged_in.html.haml +0 -18
- data/app/views/locomotive/my_account/form/_tabs.html.haml +0 -7
- data/app/views/locomotive/pages/_editable_elements.html.haml +0 -64
- data/app/views/locomotive/pages/index.html.haml +0 -22
- data/app/views/locomotive/pages/show.html.haml +0 -2
- data/app/views/locomotive/shared/_footer.html.haml +0 -2
- data/app/views/locomotive/shared/_head.html.haml +0 -40
- data/app/views/locomotive/shared/_locale_picker_link.html.haml +0 -6
- data/app/views/locomotive/shared/header/_account_menu.html.haml +0 -5
- data/app/views/locomotive/shared/header/_brand.html.haml +0 -4
- data/app/views/locomotive/shared/rte/_toolbar.html.haml +0 -62
- data/app/views/locomotive/shared/sidebar/_content_types.html.haml +0 -15
- data/app/views/locomotive/shared/sidebar/_link.html.haml +0 -10
- data/app/views/locomotive/shared/sidebar/_page.html.haml +0 -33
- data/app/views/locomotive/shared/sidebar/_pages.html.haml +0 -11
- data/app/views/locomotive/translations/_form.html.haml +0 -12
- data/app/views/locomotive/translations/edit.html.haml +0 -15
- data/app/views/locomotive/translations/index.html.haml +0 -30
- data/app/views/locomotive/translations/new.html.haml +0 -12
- data/config/initializers/haml.rb +0 -2
- data/config/initializers/locomotive_loaded_first.rb +0 -19
- data/config/locales/formtastic.bg.yml +0 -113
- data/config/locales/formtastic.cs.yml +0 -125
- data/config/locales/formtastic.de.yml +0 -106
- data/config/locales/formtastic.es.yml +0 -84
- data/config/locales/formtastic.et.yml +0 -103
- data/config/locales/formtastic.fr.yml +0 -109
- data/config/locales/formtastic.it.yml +0 -99
- data/config/locales/formtastic.ja.yml +0 -103
- data/config/locales/formtastic.nb.yml +0 -103
- data/config/locales/formtastic.nl.yml +0 -85
- data/config/locales/formtastic.pl.yml +0 -105
- data/config/locales/formtastic.pt-BR.yml +0 -70
- data/config/locales/formtastic.pt.yml +0 -70
- data/config/locales/formtastic.ru.yml +0 -106
- data/config/locales/formtastic.sk.yml +0 -125
- data/config/locales/formtastic.sr.yml +0 -112
- data/config/locales/formtastic.zh-CN.yml +0 -112
- data/lib/locomotive/haml.rb +0 -1
- data/lib/locomotive/middlewares/page_editing.rb +0 -41
- data/spec/dummy/app/views/foo/index.html.haml +0 -1
- data/spec/dummy/config/initializers/haml.rb +0 -2
- data/spec/support/asset_host_stubs.rb +0 -17
- data/spec/support/controller.rb +0 -32
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,18 +1,18 @@
|
|
1
|
-
- title t('.title')
|
1
|
+
- title current_site ? current_site.name : t('locomotive.not_logged_in.title')
|
2
2
|
|
3
3
|
= locomotive_form_for(resource, as: resource_name, url: locomotive_account_password_path, html: { method: :put }) do |f|
|
4
4
|
|
5
5
|
= f.hidden_field :reset_password_token
|
6
6
|
|
7
|
-
= flash_message
|
8
|
-
|
9
7
|
= f.inputs do
|
10
8
|
= f.input :password, label: t('.password'), required: false
|
11
9
|
= f.input :password_confirmation, label: t('.password_confirmation'), required: false
|
12
10
|
|
13
|
-
%p.link
|
14
|
-
= link_to preserve(t('.link')), new_locomotive_account_session_path
|
15
|
-
|
16
11
|
= f.actions do
|
17
12
|
= f.button :submit, t('locomotive.buttons.change_password'), class: 'btn'
|
18
13
|
|
14
|
+
br
|
15
|
+
|
16
|
+
p= link_to t('.link').html_safe, new_locomotive_account_session_path
|
17
|
+
|
18
|
+
|
@@ -1,17 +1,17 @@
|
|
1
|
-
- title t('.title')
|
1
|
+
- title current_site ? current_site.name : t('locomotive.not_logged_in.title')
|
2
2
|
|
3
3
|
= locomotive_form_for(resource, as: resource_name, url: locomotive_account_password_path) do |f|
|
4
4
|
|
5
5
|
= f.hidden_field :reset_password_token
|
6
6
|
|
7
|
-
= flash_message
|
8
|
-
|
9
7
|
= f.inputs do
|
10
8
|
= flash_message
|
11
9
|
= f.input :email, label: t('.email'), required: false
|
12
10
|
|
13
|
-
%p.link
|
14
|
-
= link_to preserve(t('.link')), new_locomotive_account_session_path
|
15
|
-
|
16
11
|
= f.actions do
|
17
12
|
= f.button :submit, t('locomotive.buttons.send_password'), class: 'btn'
|
13
|
+
|
14
|
+
br
|
15
|
+
|
16
|
+
p
|
17
|
+
= link_to t('.link').html_safe, new_locomotive_account_session_path
|
@@ -0,0 +1,19 @@
|
|
1
|
+
- if account = current_site.accounts.all.detect { |a| a._id.to_s == public_submission_account.to_s }
|
2
|
+
|
3
|
+
.item.row data-id=account._id
|
4
|
+
|
5
|
+
= hidden_field_tag 'content_type[public_submission_accounts][]', account._id
|
6
|
+
|
7
|
+
.inner-row.col-md-12
|
8
|
+
|
9
|
+
.icon
|
10
|
+
= image_tag account_avatar_url(account, '35x35#'), class: 'img-circle', style: 'width: 35px'
|
11
|
+
|
12
|
+
.text
|
13
|
+
= account.name
|
14
|
+
|
15
|
+
small= "<# account.email >"
|
16
|
+
|
17
|
+
.buttons
|
18
|
+
= link_to '#', class: 'delete' do
|
19
|
+
i.fa.fa-trash-o
|
@@ -0,0 +1,16 @@
|
|
1
|
+
- title t('.title', name: @content_type.name)
|
2
|
+
|
3
|
+
= help t('.help', default: '')
|
4
|
+
|
5
|
+
= locomotive_form_for @content_type, url: public_submission_accounts_path(current_site, @content_type.slug), html: { multipart: true } do |f|
|
6
|
+
|
7
|
+
= f.inputs :information do
|
8
|
+
|
9
|
+
= hidden_field_tag 'content_type[public_submission_accounts][]', nil
|
10
|
+
|
11
|
+
= f.input :public_submission_accounts, as: :array, template: :account, template_url: new_account_public_submission_accounts_path(current_site, @content_type.slug), select_options: options_for_public_submission_accounts
|
12
|
+
|
13
|
+
= f.actions back_url: content_entries_path(current_site, @content_type.slug)
|
14
|
+
|
15
|
+
= f.action 'hide'
|
16
|
+
|
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
= locomotive_form_for resource, as: resource_name, url: sign_up_path do |f|
|
4
4
|
|
5
|
-
= flash_message
|
6
|
-
|
7
5
|
= f.inputs do
|
8
6
|
= f.input :name, required: true, autofocus: true
|
9
7
|
= f.input :email, required: true
|
@@ -13,7 +11,7 @@
|
|
13
11
|
= f.actions do
|
14
12
|
= f.button :submit, t('locomotive.buttons.sign_up'), class: 'btn'
|
15
13
|
|
16
|
-
|
14
|
+
br
|
17
15
|
|
18
|
-
|
16
|
+
p
|
19
17
|
= link_to t('.sign_in'), new_locomotive_account_session_path
|
@@ -6,8 +6,6 @@
|
|
6
6
|
|
7
7
|
= f.hidden_field :remember_me, value: 'true'
|
8
8
|
|
9
|
-
= flash_message
|
10
|
-
|
11
9
|
= f.inputs do
|
12
10
|
= f.input :email, label: t('.email'), required: false, input_html: { tabindex: 1 }
|
13
11
|
= f.input :password, label: t('.password'), hint: link_to(t('.link'), new_locomotive_account_password_path).html_safe, required: false, input_html: { tabindex: 2 }
|
@@ -17,6 +15,6 @@
|
|
17
15
|
|
18
16
|
- if current_site.nil?
|
19
17
|
|
20
|
-
|
18
|
+
br
|
21
19
|
|
22
|
-
|
20
|
+
p= link_to t('.sign_up').html_safe, sign_up_path
|
@@ -1,14 +1,14 @@
|
|
1
1
|
#local-actions-bottom-bar
|
2
2
|
.span-12
|
3
|
-
|
3
|
+
p
|
4
4
|
- if defined?(back_url)
|
5
5
|
= link_to escape_once('← ') + t('.back'), back_url
|
6
6
|
- elsif defined?(delete_button)
|
7
7
|
= delete_button
|
8
|
-
|
8
|
+
|
|
9
9
|
|
10
10
|
.span-12.last
|
11
|
-
|
11
|
+
p
|
12
12
|
= submit_tag button_label.is_a?(Symbol) ? t(".#{button_label}") : button_label, :'data-disable-with' => t('.disable_with'), :'data-sending-form-message' => t('locomotive.messages.sending_form')
|
13
13
|
|
14
|
-
.clear
|
14
|
+
.clear
|
@@ -0,0 +1,39 @@
|
|
1
|
+
- if current_site
|
2
|
+
title== escape_once("#{Locomotive.config.name} — #{current_site.name}")
|
3
|
+
- else
|
4
|
+
title= escape_once(Locomotive.config.name)
|
5
|
+
|
6
|
+
= csrf_meta_tag
|
7
|
+
|
8
|
+
- key = Rails.application.config.session_options[:key]
|
9
|
+
|
10
|
+
meta name='key-param' content=Rails.application.config.session_options[:key]
|
11
|
+
meta name='key-token' content=cookies[key]
|
12
|
+
|
13
|
+
link rel="icon" type="image/png" href="#{asset_url('locomotive/favicon.png')}" sizes="32x32"
|
14
|
+
|
15
|
+
javascript:
|
16
|
+
window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' }
|
17
|
+
|
18
|
+
= stylesheet_link_tag 'locomotive/application', media: 'screen'
|
19
|
+
= javascript_include_tag 'locomotive'
|
20
|
+
|
21
|
+
= render 'locomotive/shared/main_app_head_before_backbone'
|
22
|
+
|
23
|
+
javascript:
|
24
|
+
window.locale = '#{I18n.locale}';
|
25
|
+
window.content_locale = '#{::Mongoid::Fields::I18n.locale}';
|
26
|
+
|
27
|
+
$(document).ready(function() {
|
28
|
+
|
29
|
+
window.application_view = new Locomotive.Views.ApplicationView({
|
30
|
+
flash: #{{flash_messages_to_json}},
|
31
|
+
view: #{backbone_view_class_name}
|
32
|
+
});
|
33
|
+
window.application_view.render();
|
34
|
+
|
35
|
+
});
|
36
|
+
|
37
|
+
= yield :head
|
38
|
+
|
39
|
+
= render 'locomotive/shared/main_app_head'
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
1
|
+
nav.navbar.navbar-default role='navigation'
|
2
2
|
|
3
3
|
.container-fluid
|
4
4
|
|
5
5
|
.navbar-header
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
button type='button' class='navbar-toggle'
|
8
|
+
span.sr-only Toggle navigation
|
9
9
|
.icon-bar
|
10
10
|
.icon-bar
|
11
11
|
.icon-bar
|
@@ -13,18 +13,18 @@
|
|
13
13
|
.navbar-brand.hidden-xs
|
14
14
|
= render 'locomotive/shared/header/brand'
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
ul.nav.navbar-nav.navbar-site.visible-xs
|
17
|
+
li
|
18
18
|
= render 'locomotive/shared/header/site'
|
19
19
|
|
20
20
|
.navbar-collapse#account-menu-collapse.hidden-xs
|
21
|
-
|
22
|
-
|
21
|
+
ul.nav.navbar-nav.navbar-site
|
22
|
+
li
|
23
23
|
= render 'locomotive/shared/header/site'
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
ul.nav.navbar-nav.navbar-right.account-menu-wrapper
|
26
|
+
li.dropdown
|
27
27
|
= render 'locomotive/shared/header/account'
|
28
28
|
|
29
|
-
|
29
|
+
ul.dropdown-menu role='menu'
|
30
30
|
= render 'locomotive/shared/header/account_menu'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.btn-group
|
2
|
+
button.btn.btn-primary.btn-sm.dropdown-toggle data-toggle='dropdown' data-aria-haspopup='true' data-aria-expanded='false'
|
3
|
+
= flag_tag current_content_locale, '17x17'
|
4
|
+
span.caret
|
5
|
+
ul.dropdown-menu.dropdown-menu-right
|
6
|
+
- current_site.locales.each do |locale|
|
7
|
+
li
|
8
|
+
a href="?content_locale=#{locale}"
|
9
|
+
= flag_tag locale, '17x17'
|
10
|
+
|
|
11
|
+
= t(locale, scope: 'locomotive.locales')
|
File without changes
|
File without changes
|
File without changes
|
@@ -8,8 +8,14 @@
|
|
8
8
|
|
9
9
|
= render 'locomotive/shared/sidebar/link', icon: 'fa-picture-o', label: t('.assets'), url: content_assets_path(current_site)
|
10
10
|
|
11
|
+
- if current_site.localized?
|
12
|
+
= render 'locomotive/shared/sidebar/link', icon: 'fa-globe', label: t('.translations'), url: translations_path(current_site)
|
13
|
+
|
11
14
|
= render 'locomotive/shared/sidebar/link', icon: 'fa-gear', label: t('.settings'), url: edit_current_site_path(current_site)
|
12
15
|
|
16
|
+
- if policy(current_site).show_developers_documentation?
|
17
|
+
= render 'locomotive/shared/sidebar/link', icon: 'fa-book', label: t('.developers'), url: developers_documentation_path(current_site)
|
18
|
+
|
13
19
|
= render 'locomotive/shared/sidebar/link', icon: 'fa-suitcase', label: t(:sites, scope: 'locomotive.shared.header'), url: sites_path, section_class: 'visible-xs-block'
|
14
20
|
|
15
21
|
= render 'locomotive/shared/sidebar/link', icon: 'fa-sign-out', label: t(:logout, scope: 'locomotive.shared.header'), url: destroy_locomotive_account_session_path, data: { confirm: t('locomotive.messages.confirm') }, section_class: 'visible-xs-block'
|
data/app/views/locomotive/shared/{_sidebar_without_site.html.haml → _sidebar_without_site.html.slim}
RENAMED
File without changes
|
@@ -0,0 +1,5 @@
|
|
1
|
+
li= link_to t(:sites, scope: 'locomotive.shared.header'), sites_path
|
2
|
+
li= link_to t(:account, scope: 'locomotive.shared.header'), edit_my_account_path(_location: request.fullpath)
|
3
|
+
li= link_to t(:help, scope: 'locomotive.shared.header'), 'http://doc.locomotivecms.com'
|
4
|
+
li class="divider"
|
5
|
+
li= link_to t(:logout, scope: 'locomotive.shared.header'), destroy_locomotive_account_session_path, data: { confirm: t('locomotive.messages.confirm') }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.image-dialog-content
|
1
|
+
.image-dialog-content style='display: none'
|
2
2
|
= locomotive_form_for image_form, url: '#', defaults: { placeholder: false, hint: false } do |f|
|
3
3
|
= f.inputs do
|
4
4
|
= f.input :src
|
@@ -8,11 +8,11 @@
|
|
8
8
|
[:right, 'wysiwyg-float-right']],
|
9
9
|
label_method: ->(el) { t("simple_form.options.locomotive.rte_input_image_form.alignment.#{el.first}") }
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
p.text-right
|
12
|
+
a.btn.btn-success.btn-sm.apply
|
13
13
|
= f.submit_text
|
14
14
|
|
15
|
-
|
15
|
+
|
|
16
16
|
|
17
|
-
|
17
|
+
a.btn.btn-default.btn-sm.cancel
|
18
18
|
= f.submit_text :cancel
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.link-dialog-content
|
1
|
+
.link-dialog-content style='display: none'
|
2
2
|
= locomotive_form_for link_form, url: '#', defaults: { placeholder: false, hint: false } do |f|
|
3
3
|
= f.inputs do
|
4
4
|
= f.input :url
|
@@ -8,12 +8,12 @@
|
|
8
8
|
label_method: ->(el) { t("simple_form.options.locomotive.rte_input_link_form.target.#{el.first}") }
|
9
9
|
= f.input :title
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
p.text-right
|
12
|
+
a.btn.btn-success.btn-sm.apply
|
13
13
|
= f.submit_text
|
14
14
|
|
15
|
-
|
15
|
+
|
|
16
16
|
|
17
|
-
|
17
|
+
a.btn.btn-default.btn-sm.cancel
|
18
18
|
= f.submit_text :cancel
|
19
19
|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
.wysihtml5-toolbar id="wysihtml5-toolbar-#{wysihtml5_prefix}" style='display: none'
|
2
|
+
|
3
|
+
span.wysihtml5-toolbar-group
|
4
|
+
a data-wysihtml5-command='bold'
|
5
|
+
i.fa.fa-bold
|
6
|
+
a data-wysihtml5-command='italic'
|
7
|
+
i.fa.fa-italic
|
8
|
+
a data-wysihtml5-command='underline'
|
9
|
+
i.fa.fa-underline
|
10
|
+
a data-wysihtml5-command='strike'
|
11
|
+
i.fa.fa-strikethrough
|
12
|
+
|
13
|
+
span.wysihtml5-toolbar-group
|
14
|
+
a data-wysihtml5-command='justifyLeft'
|
15
|
+
i.fa.fa-align-left
|
16
|
+
a data-wysihtml5-command='justifyCenter'
|
17
|
+
i.fa.fa-align-center
|
18
|
+
a data-wysihtml5-command='justifyRight'
|
19
|
+
i.fa.fa-align-right
|
20
|
+
a data-wysihtml5-command='justifyFull'
|
21
|
+
i.fa.fa-align-justify
|
22
|
+
|
23
|
+
span.wysihtml5-toolbar-group
|
24
|
+
a data-wysihtml5-command='insertUnorderedList'
|
25
|
+
i.fa.fa-list-ul
|
26
|
+
a data-wysihtml5-command='insertOrderedList'
|
27
|
+
i.fa.fa-list-ol
|
28
|
+
a.style
|
29
|
+
i.fa.fa-paragraph
|
30
|
+
|
31
|
+
.style-dialog-content style='display: none'
|
32
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1' H1
|
33
|
+
br
|
34
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2' H2
|
35
|
+
br
|
36
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' H3
|
37
|
+
br
|
38
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' H4
|
39
|
+
br
|
40
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' H5
|
41
|
+
br
|
42
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3' H6
|
43
|
+
br
|
44
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='p' P
|
45
|
+
br
|
46
|
+
a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='blockquote'
|
47
|
+
i.fa.fa-quote-right
|
48
|
+
br
|
49
|
+
|
50
|
+
a data-wysihtml5-command='createLink'
|
51
|
+
i.fa.fa-chain
|
52
|
+
= link_popover
|
53
|
+
a data-wysihtml5-command='removeLink'
|
54
|
+
i.fa.fa-chain-broken
|
55
|
+
|
56
|
+
a data-url=content_assets_path data-wysihtml5-command='insertFile'
|
57
|
+
i.fa.fa-file-o
|
58
|
+
= image_popover
|
59
|
+
|
60
|
+
span.wysihtml5-toolbar-group
|
61
|
+
a data-wysihtml5-action='change_view'
|
62
|
+
i.fa.fa-code
|