locomotive_cms 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +3 -3
- data/README.textile +7 -7
- data/app/assets/images/locomotive/icons/flags/ja.png +0 -0
- data/app/assets/javascripts/locomotive/aloha.js.coffee +3 -0
- data/app/assets/javascripts/locomotive/models/page.js.coffee +1 -1
- data/app/assets/javascripts/locomotive/models/site.js.coffee +16 -6
- data/app/assets/javascripts/locomotive/utils/aloha_settings.js.coffee +1 -1
- data/app/assets/javascripts/locomotive/views/content_entries/_form_view.js.coffee +5 -0
- data/app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee +14 -0
- data/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee +1 -1
- data/app/assets/javascripts/locomotive/views/pages/edit_view.js.coffee +2 -1
- data/app/assets/javascripts/tinymce/plugins/locomotive_media/langs/de.js +1 -0
- data/app/assets/stylesheets/locomotive.css +1 -0
- data/app/assets/stylesheets/locomotive/backoffice/formtastic_changes.css.scss +18 -3
- data/app/assets/stylesheets/locomotive/backoffice/layout.css.scss +1 -1
- data/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss +7 -3
- data/app/assets/stylesheets/locomotive/backoffice/pagination.css.scss +37 -0
- data/app/assets/stylesheets/locomotive/backoffice/tagit_changes.css.scss +49 -0
- data/app/cells/locomotive/content_locale_picker/show.html.haml +1 -1
- data/app/cells/locomotive/global_actions_cell.rb +8 -8
- data/app/cells/locomotive/main_menu/show.html.haml +2 -2
- data/app/cells/locomotive/main_menu_cell.rb +2 -2
- data/app/cells/locomotive/menu_cell.rb +6 -6
- data/app/cells/locomotive/partials_cell.rb +21 -0
- data/app/cells/locomotive/settings_menu_cell.rb +4 -4
- data/app/cells/locomotive/sub_menu/show.html.haml +2 -2
- data/app/cells/locomotive/sub_menu_cell.rb +1 -1
- data/app/controllers/locomotive/accounts_controller.rb +4 -4
- data/app/controllers/locomotive/api/accounts_controller.rb +1 -0
- data/app/controllers/locomotive/api/content_assets_controller.rb +1 -1
- data/app/controllers/locomotive/api/content_entries_controller.rb +1 -1
- data/app/controllers/locomotive/api/content_types_controller.rb +2 -2
- data/app/controllers/locomotive/api/pages_controller.rb +1 -1
- data/app/controllers/locomotive/api/snippets_controller.rb +1 -1
- data/app/controllers/locomotive/api/theme_assets_controller.rb +47 -0
- data/app/controllers/locomotive/api/tokens_controller.rb +2 -2
- data/app/controllers/locomotive/base_controller.rb +5 -2
- data/app/controllers/locomotive/content_assets_controller.rb +1 -1
- data/app/controllers/locomotive/content_entries_controller.rb +22 -9
- data/app/controllers/locomotive/content_types_controller.rb +6 -6
- data/app/controllers/locomotive/current_site_controller.rb +6 -6
- data/app/controllers/locomotive/installation_controller.rb +11 -3
- data/app/controllers/locomotive/memberships_controller.rb +6 -6
- data/app/controllers/locomotive/my_account_controller.rb +9 -3
- data/app/controllers/locomotive/pages_controller.rb +10 -6
- data/app/controllers/locomotive/passwords_controller.rb +1 -1
- data/app/controllers/locomotive/public/content_entries_controller.rb +1 -1
- data/app/controllers/locomotive/public/pages_controller.rb +5 -5
- data/app/controllers/locomotive/public/robots_controller.rb +1 -1
- data/app/controllers/locomotive/public/sitemaps_controller.rb +1 -1
- data/app/controllers/locomotive/sessions_controller.rb +1 -1
- data/app/controllers/locomotive/sites_controller.rb +5 -5
- data/app/controllers/locomotive/snippets_controller.rb +6 -6
- data/app/controllers/locomotive/theme_assets_controller.rb +6 -6
- data/app/controllers/locomotive/translations_controller.rb +1 -1
- data/app/helpers/locomotive/accounts_helper.rb +1 -1
- data/app/helpers/locomotive/base_helper.rb +13 -21
- data/app/helpers/locomotive/content_types_helper.rb +3 -3
- data/app/helpers/locomotive/custom_fields_helper.rb +5 -5
- data/app/helpers/locomotive/installation_helper.rb +1 -1
- data/app/helpers/locomotive/pages_helper.rb +5 -5
- data/app/helpers/locomotive/snippets_helper.rb +1 -1
- data/app/helpers/locomotive/theme_assets_helper.rb +1 -1
- data/app/helpers/locomotive/translations_helper.rb +2 -2
- data/app/inputs/locomotive/api_key_input.rb +40 -0
- data/app/inputs/locomotive/code_input.rb +5 -5
- data/app/inputs/locomotive/file_input.rb +6 -6
- data/app/inputs/locomotive/locale_input.rb +5 -5
- data/app/inputs/locomotive/locales_input.rb +4 -4
- data/app/inputs/locomotive/rte_input.rb +1 -1
- data/app/inputs/locomotive/small_code_input.rb +1 -1
- data/app/inputs/locomotive/subdomain_input.rb +1 -1
- data/app/mailers/locomotive/devise_mailer.rb +1 -1
- data/app/mailers/locomotive/notifications.rb +3 -3
- data/app/models/locomotive/ability.rb +10 -11
- data/app/models/locomotive/account.rb +61 -26
- data/app/models/locomotive/content_asset.rb +8 -8
- data/app/models/locomotive/content_entry.rb +8 -7
- data/app/models/locomotive/content_type.rb +12 -7
- data/app/models/locomotive/editable_control.rb +2 -2
- data/app/models/locomotive/editable_element.rb +13 -8
- data/app/models/locomotive/editable_file.rb +5 -3
- data/app/models/locomotive/editable_short_text.rb +3 -3
- data/app/models/locomotive/extensions/asset/types.rb +2 -2
- data/app/models/locomotive/extensions/content_entry/csv.rb +78 -0
- data/app/models/locomotive/extensions/content_type/item_template.rb +3 -3
- data/app/models/locomotive/extensions/content_type/sync.rb +4 -4
- data/app/models/locomotive/extensions/page/editable_elements.rb +1 -1
- data/app/models/locomotive/extensions/page/parse.rb +2 -2
- data/app/models/locomotive/extensions/page/render.rb +7 -1
- data/app/models/locomotive/extensions/page/templatized.rb +20 -15
- data/app/models/locomotive/extensions/page/tree.rb +4 -4
- data/app/models/locomotive/extensions/shared/seo.rb +3 -3
- data/app/models/locomotive/extensions/site/first_installation.rb +5 -2
- data/app/models/locomotive/extensions/site/locales.rb +9 -6
- data/app/models/locomotive/extensions/site/subdomain_domains.rb +8 -8
- data/app/models/locomotive/membership.rb +6 -6
- data/app/models/locomotive/page.rb +30 -23
- data/app/models/locomotive/site.rb +19 -15
- data/app/models/locomotive/snippet.rb +5 -5
- data/app/models/locomotive/theme_asset.rb +17 -6
- data/app/models/locomotive/translation.rb +21 -16
- data/app/presenters/locomotive/account_presenter.rb +1 -1
- data/app/presenters/locomotive/content_entry_presenter.rb +2 -2
- data/app/presenters/locomotive/content_field_presenter.rb +2 -2
- data/app/presenters/locomotive/content_type_presenter.rb +6 -1
- data/app/presenters/locomotive/theme_asset_presenter.rb +2 -2
- data/app/uploaders/locomotive/editable_file_uploader.rb +1 -1
- data/app/uploaders/locomotive/theme_asset_uploader.rb +1 -1
- data/app/views/locomotive/accounts/new.html.haml +6 -6
- data/app/views/locomotive/content_assets/_asset.html.haml +3 -3
- data/app/views/locomotive/content_assets/_picker.html.haml +12 -12
- data/app/views/locomotive/content_entries/_form.html.haml +9 -8
- data/app/views/locomotive/content_entries/_list.html.haml +8 -5
- data/app/views/locomotive/content_entries/edit.html.haml +6 -6
- data/app/views/locomotive/content_entries/index.html.haml +8 -6
- data/app/views/locomotive/content_entries/new.html.haml +5 -5
- data/app/views/locomotive/content_types/_form.html.haml +16 -16
- data/app/views/locomotive/content_types/edit.html.haml +5 -5
- data/app/views/locomotive/content_types/new.html.haml +3 -3
- data/app/views/locomotive/current_site/_form.html.haml +12 -12
- data/app/views/locomotive/current_site/edit.html.haml +5 -5
- data/app/views/locomotive/custom_fields/_form.html.haml +23 -19
- data/app/views/locomotive/custom_fields/_select_templates.html.haml +5 -5
- data/app/views/locomotive/custom_fields/types/_belongs_to.html.haml +4 -4
- data/app/views/locomotive/custom_fields/types/_boolean.html.haml +3 -3
- data/app/views/locomotive/custom_fields/types/_date.html.haml +4 -4
- data/app/views/locomotive/custom_fields/types/_email.html.haml +4 -0
- data/app/views/locomotive/custom_fields/types/_file.html.haml +3 -3
- data/app/views/locomotive/custom_fields/types/_float.html.haml +6 -0
- data/app/views/locomotive/custom_fields/types/_has_many.html.haml +10 -10
- data/app/views/locomotive/custom_fields/types/_integer.html.haml +5 -0
- data/app/views/locomotive/custom_fields/types/_many_to_many.html.haml +10 -10
- data/app/views/locomotive/custom_fields/types/_select.html.haml +10 -10
- data/app/views/locomotive/custom_fields/types/_string.html.haml +3 -3
- data/app/views/locomotive/custom_fields/types/_tags.html.haml +4 -0
- data/app/views/locomotive/custom_fields/types/_text.html.haml +4 -4
- data/app/views/locomotive/devise_mailer/reset_password_instructions.html.haml +1 -1
- data/app/views/locomotive/installation/step_1.html.haml +5 -5
- data/app/views/locomotive/installation/step_2.html.haml +6 -6
- data/app/views/locomotive/kaminari/_first_page.html.haml +2 -0
- data/app/views/locomotive/kaminari/_gap.html.haml +2 -0
- data/app/views/locomotive/kaminari/_last_page.html.haml +2 -0
- data/app/views/locomotive/kaminari/_next_page.html.haml +2 -0
- data/app/views/locomotive/kaminari/_page.html.haml +2 -0
- data/app/views/locomotive/kaminari/_paginator.html.haml +11 -0
- data/app/views/locomotive/kaminari/_prev_page.html.haml +2 -0
- data/app/views/locomotive/layouts/application.html.haml +2 -2
- data/app/views/locomotive/layouts/not_logged_in.html.haml +3 -3
- data/app/views/locomotive/memberships/new.html.haml +4 -4
- data/app/views/locomotive/my_account/edit.html.haml +14 -13
- data/app/views/locomotive/notifications/new_content_entry.html.haml +2 -2
- data/app/views/locomotive/pages/_editable_elements.html.haml +20 -20
- data/app/views/locomotive/pages/_form.html.haml +23 -27
- data/app/views/locomotive/pages/_page.html.haml +6 -6
- data/app/views/locomotive/pages/edit.html.haml +5 -5
- data/app/views/locomotive/pages/index.html.haml +2 -2
- data/app/views/locomotive/pages/new.html.haml +4 -4
- data/app/views/locomotive/passwords/edit.html.haml +3 -3
- data/app/views/locomotive/passwords/new.html.haml +2 -2
- data/app/views/locomotive/public/pages/show_toolbar.html.haml +15 -15
- data/app/views/locomotive/sessions/new.html.haml +4 -4
- data/app/views/locomotive/shared/_footer.html.haml +1 -1
- data/app/views/locomotive/shared/_head.html.haml +7 -7
- data/app/views/locomotive/shared/_header.html.haml +2 -2
- data/app/views/locomotive/shared/_locale_picker_link.html.haml +1 -1
- data/app/views/locomotive/shared/_site_picker.html.haml +2 -2
- data/app/views/locomotive/shared/actions/_contents.html.haml +1 -1
- data/app/views/locomotive/shared/menu/_contents.html.haml +5 -5
- data/app/views/locomotive/sites/_domains.html.haml +7 -7
- data/app/views/locomotive/sites/_form.html.haml +6 -1
- data/app/views/locomotive/sites/_memberships.html.haml +3 -3
- data/app/views/locomotive/sites/new.html.haml +3 -3
- data/app/views/locomotive/snippets/_form.html.haml +6 -6
- data/app/views/locomotive/snippets/_snippet.html.haml +2 -2
- data/app/views/locomotive/snippets/edit.html.haml +5 -5
- data/app/views/locomotive/snippets/new.html.haml +3 -3
- data/app/views/locomotive/theme_assets/_asset.html.haml +2 -2
- data/app/views/locomotive/theme_assets/_form.html.haml +10 -10
- data/app/views/locomotive/theme_assets/_list.html.haml +3 -3
- data/app/views/locomotive/theme_assets/_picker.html.haml +8 -8
- data/app/views/locomotive/theme_assets/edit.html.haml +7 -7
- data/app/views/locomotive/theme_assets/index.html.haml +6 -6
- data/app/views/locomotive/theme_assets/new.html.haml +3 -3
- data/app/views/locomotive/translations/_form.html.haml +3 -3
- data/app/views/locomotive/translations/edit.html.haml +6 -6
- data/app/views/locomotive/translations/index.html.haml +2 -0
- data/app/views/locomotive/translations/new.html.haml +2 -2
- data/config/initializers/csv_renderer.rb +10 -0
- data/config/locales/admin_ui.de.yml +1 -0
- data/config/locales/admin_ui.en.yml +12 -0
- data/config/locales/admin_ui.es.yml +1 -0
- data/config/locales/admin_ui.et.yml +1 -0
- data/config/locales/admin_ui.fr.yml +12 -0
- data/config/locales/admin_ui.it.yml +1 -0
- data/config/locales/admin_ui.ja.yml +335 -0
- data/config/locales/admin_ui.nb.yml +1 -0
- data/config/locales/admin_ui.nl.yml +1 -0
- data/config/locales/admin_ui.pl.yml +1 -0
- data/config/locales/admin_ui.pt-BR.yml +8 -0
- data/config/locales/admin_ui.ru.yml +1 -0
- data/config/locales/carrierwave.ja.yml +4 -0
- data/config/locales/default.de.yml +1 -1
- data/config/locales/default.en.yml +1 -1
- data/config/locales/default.es.yml +3 -0
- data/config/locales/default.et.yml +2 -2
- data/config/locales/default.fr.yml +1 -1
- data/config/locales/default.it.yml +3 -0
- data/config/locales/default.ja.yml +94 -0
- data/config/locales/default.nb.yml +1 -1
- data/config/locales/default.nl.yml +5 -0
- data/config/locales/default.pl.yml +2 -2
- data/config/locales/default.pt-BR.yml +3 -2
- data/config/locales/default.ru.yml +19 -16
- data/config/locales/devise.ja.yml +63 -0
- data/config/locales/flash.ja.yml +115 -0
- data/config/locales/formtastic.en.yml +7 -0
- data/config/locales/formtastic.fr.yml +9 -0
- data/config/locales/formtastic.ja.yml +103 -0
- data/config/locales/formtastic.pt-BR.yml +1 -1
- data/config/routes.rb +5 -2
- data/features/api/authentication.feature +24 -2
- data/features/api/authorization/pages.feature +3 -1
- data/features/api/entries_custom_fields.feature +2 -2
- data/features/backoffice/authorization/pages.feature +7 -7
- data/features/backoffice/content_types/email.feature +26 -0
- data/features/backoffice/content_types/has_many.feature +20 -0
- data/features/backoffice/content_types/integer.feature +26 -0
- data/features/backoffice/content_types/many_to_many.feature +29 -1
- data/features/backoffice/content_types/tags.feature +22 -0
- data/features/backoffice/content_types/uniqueness.feature +29 -0
- data/features/backoffice/contents.feature +16 -0
- data/features/backoffice/installation.feature +33 -0
- data/features/backoffice/my_account.feature +21 -0
- data/features/backoffice/pages.feature +21 -1
- data/features/backoffice/site.feature +59 -40
- data/features/backoffice/snippets.feature +1 -1
- data/features/backoffice/translations.feature +7 -1
- data/features/public/basic.feature +1 -1
- data/features/public/pages.feature +92 -0
- data/features/public/session.feature +40 -0
- data/features/public/tags.feature +45 -0
- data/features/step_definitions/backoffice_steps.rb +4 -0
- data/features/step_definitions/content_types_steps.rb +16 -3
- data/features/step_definitions/more_web_steps.rb +35 -4
- data/features/step_definitions/page_steps.rb +52 -35
- data/features/step_definitions/pagination_steps.rb +4 -4
- data/features/step_definitions/site_steps.rb +22 -10
- data/features/step_definitions/snippet_steps.rb +1 -1
- data/features/step_definitions/theme_asset_steps.rb +2 -2
- data/features/step_definitions/translation_steps.rb +1 -1
- data/features/step_definitions/web_steps.rb +1 -1
- data/features/support/http.rb +1 -1
- data/features/support/locales.rb +5 -0
- data/lib/generators/locomotive/install/install_generator.rb +1 -6
- data/lib/generators/locomotive/install/templates/carrierwave.rb +4 -4
- data/lib/generators/locomotive/install/templates/locomotive.rb +12 -7
- data/lib/locomotive.rb +4 -4
- data/lib/locomotive/action_controller.rb +1 -0
- data/lib/locomotive/action_controller/responder.rb +9 -10
- data/lib/locomotive/action_controller/section_helpers.rb +1 -1
- data/lib/locomotive/action_controller/ssl.rb +11 -0
- data/lib/locomotive/action_controller/url_helpers.rb +9 -5
- data/lib/locomotive/carrierwave/asset.rb +6 -6
- data/lib/locomotive/configuration.rb +28 -26
- data/lib/locomotive/core_ext.rb +1 -2
- data/lib/locomotive/custom_fields.rb +12 -6
- data/lib/locomotive/dependencies.rb +1 -0
- data/lib/locomotive/dragonfly.rb +1 -1
- data/lib/locomotive/engine.rb +3 -3
- data/lib/locomotive/formtastic.rb +1 -1
- data/lib/locomotive/httparty/webservice.rb +1 -1
- data/lib/locomotive/kaminari.rb +28 -13
- data/lib/locomotive/liquid.rb +1 -0
- data/lib/locomotive/liquid/drops/content_entry.rb +1 -1
- data/lib/locomotive/liquid/drops/content_types.rb +27 -2
- data/lib/locomotive/liquid/drops/page.rb +14 -2
- data/lib/locomotive/liquid/drops/proxy_collection.rb +4 -0
- data/lib/locomotive/liquid/drops/session_proxy.rb +16 -0
- data/lib/locomotive/liquid/drops/site.rb +11 -3
- data/lib/locomotive/liquid/drops/uploader.rb +1 -1
- data/lib/locomotive/liquid/filters/base.rb +1 -1
- data/lib/locomotive/liquid/filters/date.rb +2 -2
- data/lib/locomotive/liquid/filters/html.rb +12 -12
- data/lib/locomotive/liquid/filters/translate.rb +21 -3
- data/lib/locomotive/liquid/tags/consume.rb +50 -19
- data/lib/locomotive/liquid/tags/editable/base.rb +9 -9
- data/lib/locomotive/liquid/tags/editable/control.rb +1 -1
- data/lib/locomotive/liquid/tags/editable/file.rb +1 -1
- data/lib/locomotive/liquid/tags/editable/short_text.rb +1 -1
- data/lib/locomotive/liquid/tags/fetch_page.rb +28 -0
- data/lib/locomotive/liquid/tags/hybrid.rb +25 -0
- data/lib/locomotive/liquid/tags/inherited_block.rb +2 -2
- data/lib/locomotive/liquid/tags/inline_editor.rb +4 -4
- data/lib/locomotive/liquid/tags/javascript.rb +16 -0
- data/lib/locomotive/liquid/tags/link_to.rb +42 -0
- data/lib/locomotive/liquid/tags/locale_switcher.rb +1 -1
- data/lib/locomotive/liquid/tags/nav.rb +2 -2
- data/lib/locomotive/liquid/tags/paginate.rb +2 -2
- data/lib/locomotive/liquid/tags/session_assign.rb +39 -0
- data/lib/locomotive/liquid/tags/snippet.rb +1 -1
- data/lib/locomotive/liquid/tags/with_scope.rb +6 -2
- data/lib/locomotive/logger.rb +1 -1
- data/lib/locomotive/middlewares/cache.rb +1 -1
- data/lib/locomotive/middlewares/fonts.rb +1 -1
- data/lib/locomotive/middlewares/inline_editor.rb +1 -1
- data/lib/locomotive/middlewares/permalink.rb +1 -1
- data/lib/locomotive/middlewares/seo_trailing_slash.rb +1 -1
- data/lib/locomotive/mongoid/patches.rb +21 -21
- data/lib/locomotive/rails/action_view.rb +20 -4
- data/lib/locomotive/regexps.rb +1 -1
- data/lib/locomotive/render.rb +4 -2
- data/lib/locomotive/routing/default_constraint.rb +1 -1
- data/lib/locomotive/routing/site_dispatcher.rb +1 -1
- data/lib/locomotive/session_store.rb +7 -7
- data/lib/locomotive/version.rb +1 -1
- data/lib/tasks/development.rake +11 -9
- data/lib/tasks/locomotive.rake +11 -11
- data/mongodb/migrate/20130204072721_make_editable_elements_consistent.rb +3 -1
- data/mongodb/migrate/20130326201349_rename_entry_to_content_entry.rb +6 -6
- data/mongodb/migrate/20130511121956_generate_checksum_for_theme_assets.rb +14 -0
- data/mongodb/migrate/20130530162559_api_key_for_all_accounts.rb +10 -0
- data/spec/cells/locomotive/global_actions_spec.rb +11 -11
- data/spec/cells/locomotive/main_menu_cell_spec.rb +9 -9
- data/spec/cells/locomotive/settings_menu_cell_spec.rb +11 -11
- data/spec/dummy/config/environments/development.rb +1 -1
- data/spec/dummy/config/initializers/locomotive.rb +16 -11
- data/spec/dummy/config/mongoid.yml +99 -18
- data/spec/lib/action_view_spec.rb +19 -0
- data/spec/lib/core_ext_spec.rb +2 -2
- data/spec/lib/locomotive/configuration_spec.rb +1 -1
- data/spec/lib/locomotive/httparty/webservice_spec.rb +6 -6
- data/spec/lib/locomotive/liquid/drops/content_entry_spec.rb +1 -1
- data/spec/lib/locomotive/liquid/drops/current_user.rb +3 -3
- data/spec/lib/locomotive/liquid/drops/page_spec.rb +63 -14
- data/spec/lib/locomotive/liquid/drops/site_spec.rb +3 -3
- data/spec/lib/locomotive/liquid/filters/html_spec.rb +22 -7
- data/spec/lib/locomotive/liquid/filters/resize_spec.rb +3 -3
- data/spec/lib/locomotive/liquid/filters/translate_spec.rb +26 -12
- data/spec/lib/locomotive/liquid/tags/consume_spec.rb +26 -2
- data/spec/lib/locomotive/liquid/tags/csrf_spec.rb +3 -3
- data/spec/lib/locomotive/liquid/tags/editable/short_text_spec.rb +1 -1
- data/spec/lib/locomotive/liquid/tags/extends_spec.rb +5 -5
- data/spec/lib/locomotive/liquid/tags/javascript_spec.rb +18 -0
- data/spec/lib/locomotive/liquid/tags/locale_switcher_spec.rb +23 -13
- data/spec/lib/locomotive/liquid/tags/nav_spec.rb +11 -11
- data/spec/lib/locomotive/liquid/tags/paginate_spec.rb +13 -13
- data/spec/lib/locomotive/liquid/tags/seo_spec.rb +8 -8
- data/spec/lib/locomotive/liquid/tags/with_scope_spec.rb +8 -2
- data/spec/lib/locomotive/presentable_spec.rb +10 -10
- data/spec/lib/locomotive/render_spec.rb +14 -14
- data/spec/mailers/locomotive/notifications_spec.rb +3 -3
- data/spec/models/locomotive/ability_spec.rb +23 -9
- data/spec/models/locomotive/account_spec.rb +30 -8
- data/spec/models/locomotive/content_asset_spec.rb +1 -1
- data/spec/models/locomotive/content_entry_spec.rb +57 -2
- data/spec/models/locomotive/content_type_spec.rb +42 -41
- data/spec/models/locomotive/editable_control_spec.rb +5 -5
- data/spec/models/locomotive/editable_file_spec.rb +21 -5
- data/spec/models/locomotive/editable_long_text_spec.rb +3 -3
- data/spec/models/locomotive/editable_short_text_spec.rb +8 -8
- data/spec/models/locomotive/extensions/page/editable_elements_spec.rb +9 -9
- data/spec/models/locomotive/extensions/page/redirect_spec.rb +1 -1
- data/spec/models/locomotive/extensions/page/render_spec.rb +4 -8
- data/spec/models/locomotive/extensions/site/locales_spec.rb +2 -2
- data/spec/models/locomotive/membership_spec.rb +5 -5
- data/spec/models/locomotive/page_spec.rb +10 -1
- data/spec/models/locomotive/site_spec.rb +19 -19
- data/spec/models/locomotive/snippet_spec.rb +9 -9
- data/spec/models/locomotive/theme_asset_spec.rb +91 -57
- data/spec/requests/admin_ssl_spec.rb +25 -0
- data/spec/support/factories.rb +32 -27
- data/spec/support/locomotive.rb +2 -0
- data/vendor/assets/javascripts/locomotive/backbone.sync.js +1 -1
- data/vendor/assets/javascripts/locomotive/tag-it.min.js +16 -0
- data/vendor/assets/stylesheets/locomotive/jquery.tagit.css +67 -0
- metadata +108 -138
@@ -8,12 +8,12 @@
|
|
8
8
|
|
9
9
|
- if can? :create, Locomotive::Page
|
10
10
|
- content_for :buttons do
|
11
|
-
= local_action_button :new, new_page_url, :
|
11
|
+
= local_action_button :new, new_page_url, icon: 'icon-plus', id: 'newpage'
|
12
12
|
|
13
13
|
%p!= t('.help')
|
14
14
|
|
15
15
|
- if @pages.empty?
|
16
|
-
%p.no-items!= t('.no_items', :
|
16
|
+
%p.no-items!= t('.no_items', url: new_page_url)
|
17
17
|
- else
|
18
18
|
%ul#pages-list
|
19
19
|
= render @pages
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
- content_for :submenu do
|
4
4
|
= render 'locomotive/shared/menu/contents'
|
5
|
-
|
5
|
+
|
6
6
|
- content_for :actions do
|
7
7
|
= render 'locomotive/shared/actions/contents'
|
8
8
|
|
9
9
|
%p!= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @page, :
|
11
|
+
= semantic_form_for @page, url: pages_url do |form|
|
12
12
|
|
13
|
-
= render 'form', :
|
13
|
+
= render 'form', f: form
|
14
14
|
|
15
|
-
= render 'locomotive/shared/form_actions', :
|
15
|
+
= render 'locomotive/shared/form_actions', back_url: pages_url, button_label: :create
|
@@ -1,6 +1,6 @@
|
|
1
1
|
- title t('.title')
|
2
2
|
|
3
|
-
= semantic_form_for(resource, :
|
3
|
+
= semantic_form_for(resource, as: resource_name, url: locomotive_account_password_url, html: { method: :put }) do |f|
|
4
4
|
|
5
5
|
= f.hidden_field :reset_password_token
|
6
6
|
|
@@ -8,8 +8,8 @@
|
|
8
8
|
= flash_message
|
9
9
|
|
10
10
|
= f.inputs do
|
11
|
-
= f.input :password, :
|
12
|
-
= f.input :password_confirmation, :
|
11
|
+
= f.input :password, label: t('.password'), required: false
|
12
|
+
= f.input :password_confirmation, label: t('.password_confirmation'), required: false
|
13
13
|
|
14
14
|
%p.link
|
15
15
|
= link_to preserve(t('.link')), new_locomotive_account_session_path
|
@@ -1,6 +1,6 @@
|
|
1
1
|
- title t('.title')
|
2
2
|
|
3
|
-
= semantic_form_for(resource, :
|
3
|
+
= semantic_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
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= flash_message
|
9
9
|
|
10
10
|
= f.inputs do
|
11
|
-
= f.input :email, :
|
11
|
+
= f.input :email, label: t('.email'), required: false
|
12
12
|
|
13
13
|
%p.link
|
14
14
|
= link_to preserve(t('.link')), new_locomotive_account_session_path
|
@@ -1,6 +1,6 @@
|
|
1
1
|
!!! XML
|
2
2
|
!!!
|
3
|
-
%html{ :
|
3
|
+
%html{ xmlns: 'http://www.w3.org/1999/xhtml' }
|
4
4
|
%head
|
5
5
|
%title Locomotive
|
6
6
|
|
@@ -8,23 +8,23 @@
|
|
8
8
|
|
9
9
|
- key = Rails.application.config.session_options[:key]
|
10
10
|
|
11
|
-
%meta{ :
|
12
|
-
%meta{ :
|
11
|
+
%meta{ name: 'key-param', content: Rails.application.config.session_options[:key] }
|
12
|
+
%meta{ name: 'key-token', content: cookies[key] }
|
13
13
|
|
14
|
-
%script{ :
|
14
|
+
%script{ type: 'text/javascript' }
|
15
15
|
:plain
|
16
16
|
window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' };
|
17
17
|
|
18
|
-
= stylesheet_link_tag 'locomotive/inline_editor', :
|
18
|
+
= stylesheet_link_tag 'locomotive/inline_editor', media: 'screen'
|
19
19
|
= javascript_include_tag 'locomotive/inline_editor'
|
20
20
|
|
21
|
-
%script{ :
|
21
|
+
%script{ type: 'text/javascript' }
|
22
22
|
:plain
|
23
23
|
window.locale = '#{I18n.locale}';
|
24
24
|
window.content_locale = '#{::Mongoid::Fields::I18n.locale}';
|
25
25
|
|
26
|
-
Locomotive.current_site = new Locomotive.Models.Site(#{
|
27
|
-
Locomotive.current_account = new Locomotive.Models.Account(#{
|
26
|
+
Locomotive.current_site = new Locomotive.Models.Site(#{escape_json current_site.to_json.html_safe});
|
27
|
+
Locomotive.current_account = new Locomotive.Models.Account(#{escape_json current_locomotive_account.to_json.html_safe});
|
28
28
|
|
29
29
|
$(document).ready(function() {
|
30
30
|
|
@@ -37,15 +37,15 @@
|
|
37
37
|
|
38
38
|
%body
|
39
39
|
#page
|
40
|
-
%iframe{ :
|
40
|
+
%iframe{ src: request.fullpath.gsub('_admin', '_edit'), scrolling: 'no', frameborder: '0' }
|
41
41
|
|
42
42
|
#toolbar
|
43
43
|
.background
|
44
44
|
.inner
|
45
|
-
%h1{ :
|
45
|
+
%h1{ class: 'loading', :'data-disabled-status' => t('.statuses.disabled'), :'data-loading-status' => t('.statuses.loading') }= t('.statuses.loading')
|
46
46
|
|
47
47
|
.back.col
|
48
|
-
= link_to_icon :home, '#', :
|
48
|
+
= link_to_icon :home, '#', class: 'button back', title: t('.buttons.back'), alt: t('.buttons.back')
|
49
49
|
|
50
50
|
- if current_site.locales.size > 1
|
51
51
|
.lang.col
|
@@ -56,9 +56,9 @@
|
|
56
56
|
%label= t('.labels.editing_mode')
|
57
57
|
= check_box_tag 'edit', '1', false
|
58
58
|
|
59
|
-
.element-actions.col{ :
|
59
|
+
.element-actions.col{ style: 'display: none' }
|
60
60
|
%label= t('.labels.save_changes')
|
61
|
-
= link_to t('.buttons.confirm'), '#', :
|
62
|
-
= link_to t('.buttons.cancel'), '#', :
|
61
|
+
= link_to t('.buttons.confirm'), '#', class: 'button blue save'
|
62
|
+
= link_to t('.buttons.cancel'), '#', class: 'button cancel'
|
63
63
|
|
64
|
-
= render_cell 'locomotive/content_locale_picker', :show, :
|
64
|
+
= render_cell 'locomotive/content_locale_picker', :show, site: current_site, locale: current_content_locale
|
@@ -1,14 +1,14 @@
|
|
1
1
|
- title t('.title')
|
2
2
|
|
3
|
-
= semantic_form_for(resource, :
|
4
|
-
= f.hidden_field :remember_me, :
|
3
|
+
= semantic_form_for(resource, as: resource_name, url: locomotive_account_session_path) do |f|
|
4
|
+
= f.hidden_field :remember_me, value: 'true'
|
5
5
|
|
6
6
|
.inner
|
7
7
|
= flash_message
|
8
8
|
|
9
9
|
= f.inputs do
|
10
|
-
= f.input :email, :
|
11
|
-
= f.input :password, :
|
10
|
+
= f.input :email, label: t('.email'), required: false
|
11
|
+
= f.input :password, label: t('.password'), required: false
|
12
12
|
|
13
13
|
%p.link
|
14
14
|
= link_to t('.link'), new_locomotive_account_password_path
|
@@ -1,2 +1,2 @@
|
|
1
1
|
%p.tcenter
|
2
|
-
!= t('.who_is_behind', :
|
2
|
+
!= t('.who_is_behind', version: Locomotive::VERSION, development: nocoffee_tag)
|
@@ -4,24 +4,24 @@
|
|
4
4
|
|
5
5
|
- key = Rails.application.config.session_options[:key]
|
6
6
|
|
7
|
-
%meta{ :
|
8
|
-
%meta{ :
|
7
|
+
%meta{ name: 'key-param', content: Rails.application.config.session_options[:key] }
|
8
|
+
%meta{ name: 'key-token', content: cookies[key] }
|
9
9
|
|
10
|
-
%script{ :
|
10
|
+
%script{ type: 'text/javascript' }
|
11
11
|
:plain
|
12
12
|
window.Locomotive = { mounted_on: '#{Locomotive.mounted_on}' };
|
13
13
|
|
14
|
-
= stylesheet_link_tag 'locomotive', :
|
14
|
+
= stylesheet_link_tag 'locomotive', media: 'screen'
|
15
15
|
= javascript_include_tag 'locomotive'
|
16
16
|
|
17
|
-
%script{ :
|
17
|
+
%script{ type: 'text/javascript' }
|
18
18
|
:plain
|
19
19
|
window.locale = '#{I18n.locale}';
|
20
20
|
window.content_locale = '#{::Mongoid::Fields::I18n.locale}';
|
21
21
|
window.permalink_service_url = '#{Locomotive.mounted_on}/_permalink.json';
|
22
22
|
|
23
|
-
Locomotive.current_site = new Locomotive.Models.Site(#{
|
24
|
-
Locomotive.current_account = new Locomotive.Models.Account(#{
|
23
|
+
Locomotive.current_site = new Locomotive.Models.Site(#{escape_json current_site.to_presenter.as_json_for_html_view.to_json.html_safe});
|
24
|
+
Locomotive.current_account = new Locomotive.Models.Account(#{escape_json current_locomotive_account.to_json.html_safe});
|
25
25
|
|
26
26
|
$(document).ready(function() {
|
27
27
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
%h1
|
2
2
|
= link_to current_site.name, locomotive.pages_url
|
3
3
|
|
4
|
-
= render_cell 'locomotive/global_actions', :show, :
|
4
|
+
= render_cell 'locomotive/global_actions', :show, current_locomotive_account: current_locomotive_account, current_site_url: current_site_public_url
|
5
5
|
|
6
6
|
- if multi_sites? && current_locomotive_account.sites.size > 1
|
7
7
|
= render 'locomotive/shared/site_picker'
|
8
8
|
|
9
9
|
- if localized?
|
10
|
-
= render_cell 'locomotive/content_locale_picker', :show, :
|
10
|
+
= render_cell 'locomotive/content_locale_picker', :show, site: current_site, locale: current_content_locale
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#sites-picker{ :
|
1
|
+
#sites-picker{ style: 'display: none' }
|
2
2
|
%ul
|
3
3
|
- current_locomotive_account.sites.each do |site|
|
4
4
|
- unless current_site._id == site._id
|
5
5
|
%li
|
6
|
-
= link_to site.name, locomotive.pages_url(:
|
6
|
+
= link_to site.name, locomotive.pages_url(host: site.full_subdomain, port: request.port)
|
7
7
|
|
8
8
|
- if can?(:manage, Locomotive::Site)
|
9
9
|
%p.action
|
@@ -12,22 +12,22 @@
|
|
12
12
|
- current_site.pages.unscoped.latest_updated.minimal_attributes.each do |page|
|
13
13
|
%li
|
14
14
|
%i.icon-chevron-right
|
15
|
-
= link_to truncate(page.title, :
|
15
|
+
= link_to truncate(page.title, length: 25), edit_page_url(page)
|
16
16
|
%span= time_ago_in_words(page.updated_at)
|
17
17
|
|
18
18
|
- each_content_type do |menu_item|
|
19
19
|
-if menu_item.is_a?(Array)
|
20
20
|
- content_types = menu_item
|
21
|
-
= submenu_entry '...', '#', :
|
21
|
+
= submenu_entry '...', '#', i18n: false do
|
22
22
|
.wrapper
|
23
23
|
.inner
|
24
24
|
%ul.big-links
|
25
25
|
- content_types.each do |content_type|
|
26
26
|
%li
|
27
|
-
= link_to truncate(content_type.name, :
|
27
|
+
= link_to truncate(content_type.name, length: 20), content_entries_url(content_type.slug)
|
28
28
|
- else
|
29
29
|
- content_type = menu_item
|
30
|
-
= submenu_entry truncate(content_type.name, :
|
30
|
+
= submenu_entry truncate(content_type.name, length: 15), content_entries_url(content_type.slug), i18n: false, css: "#{'on' if is_content_type_selected(content_type)}" do
|
31
31
|
.wrapper
|
32
32
|
.header
|
33
33
|
%p
|
@@ -47,5 +47,5 @@
|
|
47
47
|
- content_type.entries.latest_updated.each do |entry|
|
48
48
|
%li
|
49
49
|
%i.icon-chevron-right
|
50
|
-
= link_to truncate(entry._label(content_type), :
|
50
|
+
= link_to truncate(entry._label(content_type), length: 20), edit_content_entry_url(content_type.slug, entry)
|
51
51
|
%span= time_ago_in_words(entry.updated_at)
|
@@ -1,6 +1,6 @@
|
|
1
|
-
%script{ :
|
1
|
+
%script{ type: 'text/html', id: 'domains_list' }
|
2
2
|
|
3
|
-
%p.empty{ :
|
3
|
+
%p.empty{ style: 'display: none' }!= t('.empty')
|
4
4
|
|
5
5
|
%ul
|
6
6
|
|
@@ -8,15 +8,15 @@
|
|
8
8
|
|
9
9
|
.new-entry
|
10
10
|
%em http://
|
11
|
-
= text_field_tag 'domain', '', :
|
11
|
+
= text_field_tag 'domain', '', id: '', placeholder: t('formtastic.hints.site.domain_name'), class: 'path'
|
12
12
|
|
13
13
|
%span.actions
|
14
|
-
= link_to t('locomotive.buttons.new_item'), '#', :
|
14
|
+
= link_to t('locomotive.buttons.new_item'), '#', class: 'add'
|
15
15
|
|
16
|
-
%script{ :
|
16
|
+
%script{ type: 'text/html', id: 'domain_entry' }
|
17
17
|
|
18
18
|
%em http://
|
19
|
-
= text_field_tag 'site[domains][]', '{{name}}', :
|
19
|
+
= text_field_tag 'site[domains][]', '{{name}}', id: '', class: 'path'
|
20
20
|
|
21
21
|
%span.actions
|
22
|
-
= link_to_icon :trash, '#', :
|
22
|
+
= link_to_icon :trash, '#', title: t('locomotive.buttons.delete'), class: 'remove'
|
@@ -3,10 +3,15 @@
|
|
3
3
|
|
4
4
|
= f.inputs name: :information do
|
5
5
|
= f.input :name, wrapper_html: { class: 'highlighted' }
|
6
|
+
= f.input :locales, as: :select,
|
7
|
+
collection: options_for_select(options_for_site_locales, current_locomotive_account.locale),
|
8
|
+
input_html: { name: 'site[locales][]' },
|
9
|
+
include_blank: false
|
6
10
|
|
7
11
|
- if manage_subdomain_or_domains?
|
8
12
|
= f.inputs name: :access_points do
|
9
13
|
= f.input :subdomain, as: :'Locomotive::Subdomain', domain: application_domain, input_html: { readonly: !manage_subdomain? }
|
10
14
|
|
11
15
|
- if manage_domains?
|
12
|
-
= f.input :domains, as: :'Locomotive::Empty'
|
16
|
+
= f.input :domains, as: :'Locomotive::Empty'
|
17
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%script{ :
|
1
|
+
%script{ type: 'text/html', id: 'membership_entry' }
|
2
2
|
|
3
3
|
= hidden_field_tag 'site[memberships_attributes][{{index}}][id]', '{{id}}'
|
4
4
|
= hidden_field_tag 'site[memberships_attributes][{{index}}][_destroy]'
|
@@ -13,11 +13,11 @@
|
|
13
13
|
{{#if grant_admin}}
|
14
14
|
= select_tag 'site[memberships_attributes][{{index}}][role]', options_for_membership_roles
|
15
15
|
{{else}}
|
16
|
-
= select_tag 'site[memberships_attributes][{{index}}][role]', options_for_membership_roles(:
|
16
|
+
= select_tag 'site[memberships_attributes][{{index}}][role]', options_for_membership_roles(skip_admin: true)
|
17
17
|
{{/if}}
|
18
18
|
|
19
19
|
%span.actions
|
20
|
-
= link_to_icon :trash, '#', :
|
20
|
+
= link_to_icon :trash, '#', title: t('locomotive.buttons.delete'), class: 'remove'
|
21
21
|
|
22
22
|
{{else}}
|
23
23
|
.role
|
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
%p!= t('.help')
|
7
7
|
|
8
|
-
= semantic_form_for @site, :
|
8
|
+
= semantic_form_for @site, url: sites_url do |form|
|
9
9
|
|
10
|
-
= render 'form', :
|
10
|
+
= render 'form', f: form
|
11
11
|
|
12
|
-
= render 'locomotive/shared/form_actions', :
|
12
|
+
= render 'locomotive/shared/form_actions', back_url: edit_my_account_url, button_label: :create
|
@@ -3,11 +3,11 @@
|
|
3
3
|
|
4
4
|
- content_for :backbone_view_data do
|
5
5
|
:plain
|
6
|
-
snippet: #{
|
6
|
+
snippet: #{escape_json @snippet.persisted? ? to_json(@snippet) : 'null'}
|
7
7
|
|
8
|
-
= f.inputs :
|
9
|
-
= f.input :name, :
|
10
|
-
= f.input :slug, :
|
8
|
+
= f.inputs name: :information do
|
9
|
+
= f.input :name, wrapper_html: { class: 'highlighted' }
|
10
|
+
= f.input :slug, required: false
|
11
11
|
|
12
|
-
= f.inputs :
|
13
|
-
= f.input :template, :
|
12
|
+
= f.inputs name: :code do
|
13
|
+
= f.input :template, as: :'Locomotive::Code', main_locale_template_url: snippet_main_template_path(@snippet)
|
@@ -1,8 +1,8 @@
|
|
1
|
-
%script{ :
|
1
|
+
%script{ type: 'text/html', id: 'snippet_item' }
|
2
2
|
|
3
3
|
%strong= link_to "{{name}}", edit_snippet_path('snippet_id').gsub(/\/snippet_id\//, '/{{id}}/')
|
4
4
|
.more
|
5
5
|
%span!= t('.updated_at')
|
6
6
|
{{updated_at}}
|
7
7
|
|
8
|
-
= link_to_icon :trash, '#', :
|
8
|
+
= link_to_icon :trash, '#', class: 'remove', data: { confirm: t('locomotive.messages.confirm') }
|
@@ -7,12 +7,12 @@
|
|
7
7
|
= locale_picker_link
|
8
8
|
|
9
9
|
- content_for :buttons do
|
10
|
-
= local_action_button t('locomotive.snippets.index.new'), new_snippet_url, :
|
10
|
+
= local_action_button t('locomotive.snippets.index.new'), new_snippet_url, icon: 'icon-plus'
|
11
11
|
|
12
|
-
%p!= t('.help', :
|
12
|
+
%p!= t('.help', slug: @snippet.slug)
|
13
13
|
|
14
|
-
= semantic_form_for @snippet, :
|
14
|
+
= semantic_form_for @snippet, url: snippet_url(@snippet), html: { class: 'save-with-shortcut' } do |form|
|
15
15
|
|
16
|
-
= render 'form', :
|
16
|
+
= render 'form', f: form
|
17
17
|
|
18
|
-
= render 'locomotive/shared/form_actions', :
|
18
|
+
= render 'locomotive/shared/form_actions', back_url: theme_assets_url, button_label: :update
|
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
%p!= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @snippet, :
|
11
|
+
= semantic_form_for @snippet, url: snippets_url do |form|
|
12
12
|
|
13
|
-
= render 'form', :
|
13
|
+
= render 'form', f: form
|
14
14
|
|
15
|
-
= render 'locomotive/shared/form_actions', :
|
15
|
+
= render 'locomotive/shared/form_actions', back_url: theme_assets_url, button_label: :create
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%script{ :
|
1
|
+
%script{ type: 'text/html', id: 'editable_theme_asset_item' }
|
2
2
|
|
3
3
|
%strong= link_to "{{local_path}}", edit_theme_asset_path('asset_id').gsub(/\/asset_id\//, '/{{id}}/')
|
4
4
|
.more
|
@@ -7,5 +7,5 @@
|
|
7
7
|
%span.date {{updated_at}}
|
8
8
|
|
9
9
|
{{#if can_be_deleted}}
|
10
|
-
= link_to_icon :trash, '#', :
|
10
|
+
= link_to_icon :trash, '#', class: 'remove', data: { confirm: t('locomotive.messages.confirm') }
|
11
11
|
{{/if}}
|
@@ -3,33 +3,33 @@
|
|
3
3
|
|
4
4
|
- content_for :backbone_view_data do
|
5
5
|
:plain
|
6
|
-
theme_asset: #{
|
6
|
+
theme_asset: #{escape_json @theme_asset.persisted? ? @theme_asset.to_json.html_safe : 'null'}
|
7
7
|
|
8
8
|
= f.hidden_field :performing_plain_text
|
9
9
|
|
10
|
-
#file-selector{ :
|
11
|
-
= f.inputs :
|
10
|
+
#file-selector{ class: "selector #{'hidden' if display_plain_text?(@theme_asset)}" }
|
11
|
+
= f.inputs name: :information do
|
12
12
|
= f.input :source
|
13
13
|
|
14
14
|
- if allow_plain_text_editing?(@theme_asset)
|
15
|
-
= link_to '#', :
|
15
|
+
= link_to '#', class: 'alt' do
|
16
16
|
%i.icon-share
|
17
17
|
= t('locomotive.theme_assets.form.choose_plain_text')
|
18
18
|
|
19
19
|
- if allow_plain_text_editing?(@theme_asset)
|
20
|
-
#text-selector{ :
|
21
|
-
= f.inputs :
|
20
|
+
#text-selector{ class: "selector #{'hidden' unless display_plain_text?(@theme_asset)}", style: "#{'display: none' unless display_plain_text?(@theme_asset)}" }
|
21
|
+
= f.inputs name: :code, class: 'inputs code' do
|
22
22
|
|
23
23
|
- if @theme_asset.new_record?
|
24
24
|
= f.input :plain_text_name
|
25
25
|
|
26
|
-
= f.input :plain_text_type, :
|
26
|
+
= f.input :plain_text_type, as: 'select', collection: %w(stylesheet javascript), include_blank: false
|
27
27
|
|
28
|
-
= f.input :plain_text, :
|
28
|
+
= f.input :plain_text, as: :'Locomotive::Code', type: plain_text_type(@theme_asset)
|
29
29
|
|
30
|
-
= link_to '#', :
|
30
|
+
= link_to '#', class: 'alt' do
|
31
31
|
%i.icon-share
|
32
32
|
= t('locomotive.theme_assets.form.choose_file')
|
33
33
|
|
34
|
-
= f.inputs :
|
34
|
+
= f.inputs name: :options, class: "inputs foldable #{'folded' if inputs_folded?(@theme_asset)}" do
|
35
35
|
= f.input :folder
|