alchemy_cms 4.0.6 → 4.1.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.gitignore +1 -0
- data/.localeapp/config.rb +8 -0
- data/.rubocop.yml +26 -13
- data/.travis.yml +12 -14
- data/CHANGELOG.md +5 -24
- data/Gemfile +10 -7
- data/README.md +16 -14
- data/Rakefile +1 -1
- data/alchemy_cms.gemspec +6 -7
- data/app/assets/images/alchemy/alchemy-logo.png +0 -0
- data/app/assets/images/alchemy/alchemy-logo.svg +1 -70
- data/app/assets/images/alchemy/favicon.ico +0 -0
- data/app/assets/images/alchemy/icon.svg +1 -14
- data/app/assets/javascripts/alchemy/admin.js +0 -7
- data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +2 -2
- data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
- data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -6
- data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +2 -7
- data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +36 -26
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -15
- data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +8 -11
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +4 -1
- data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +5 -14
- data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +54 -75
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +4 -13
- data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -0
- data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +12 -6
- data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +0 -158
- data/app/assets/stylesheets/alchemy/_defaults.scss +0 -2
- data/app/assets/stylesheets/alchemy/_extends.scss +13 -18
- data/app/assets/stylesheets/alchemy/_mixins.scss +72 -46
- data/app/assets/stylesheets/alchemy/_variables.scss +128 -59
- data/app/assets/stylesheets/alchemy/admin.scss +7 -1
- data/app/assets/stylesheets/alchemy/archive.scss +23 -27
- data/app/assets/stylesheets/alchemy/base.scss +5 -355
- data/app/assets/stylesheets/alchemy/buttons.scss +23 -60
- data/app/assets/stylesheets/alchemy/clipboard.scss +26 -0
- data/app/assets/stylesheets/alchemy/dashboard.scss +7 -40
- data/app/assets/stylesheets/alchemy/dialogs.scss +23 -36
- data/app/assets/stylesheets/alchemy/elements.scss +80 -156
- data/app/assets/stylesheets/alchemy/errors.scss +2 -2
- data/app/assets/stylesheets/alchemy/flash.scss +19 -10
- data/app/assets/stylesheets/alchemy/fonts.scss +13 -0
- data/app/assets/stylesheets/alchemy/forms.scss +6 -1
- data/app/assets/stylesheets/alchemy/frame.scss +24 -65
- data/app/assets/stylesheets/alchemy/hints.scss +2 -2
- data/app/assets/stylesheets/alchemy/icons.scss +3 -337
- data/app/assets/stylesheets/alchemy/image_library.scss +9 -10
- data/app/assets/stylesheets/alchemy/jquery-ui.scss +21 -839
- data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +32 -57
- data/app/assets/stylesheets/alchemy/lists.scss +4 -8
- data/app/assets/stylesheets/alchemy/menubar.scss +26 -29
- data/app/assets/stylesheets/alchemy/navigation.scss +23 -25
- data/app/assets/stylesheets/alchemy/notices.scss +25 -25
- data/app/assets/stylesheets/alchemy/pagination.scss +12 -7
- data/app/assets/stylesheets/alchemy/preview_window.scss +20 -0
- data/app/assets/stylesheets/alchemy/resource_info.scss +1 -1
- data/app/assets/stylesheets/alchemy/search.scss +19 -15
- data/app/assets/stylesheets/alchemy/selects.scss +63 -32
- data/app/assets/stylesheets/alchemy/sitemap.scss +70 -148
- data/app/assets/stylesheets/alchemy/tables.scss +16 -59
- data/app/assets/stylesheets/alchemy/toolbar.scss +9 -36
- data/app/assets/stylesheets/alchemy/trash.scss +8 -0
- data/app/assets/stylesheets/alchemy/upload.scss +5 -6
- data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +1 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +78 -43
- data/app/controllers/alchemy/admin/attachments_controller.rb +6 -6
- data/app/controllers/alchemy/admin/base_controller.rb +9 -9
- data/app/controllers/alchemy/admin/contents_controller.rb +0 -17
- data/app/controllers/alchemy/admin/elements_controller.rb +1 -4
- data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -3
- data/app/controllers/alchemy/admin/essence_pictures_controller.rb +1 -3
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pictures_controller.rb +5 -5
- data/app/controllers/alchemy/admin/resources_controller.rb +10 -10
- data/app/controllers/alchemy/admin/tags_controller.rb +7 -7
- data/app/controllers/alchemy/api/contents_controller.rb +6 -1
- data/app/controllers/alchemy/api/elements_controller.rb +5 -1
- data/app/controllers/alchemy/api/pages_controller.rb +6 -1
- data/app/controllers/alchemy/base_controller.rb +5 -3
- data/app/controllers/alchemy/pages_controller.rb +1 -1
- data/app/helpers/alchemy/admin/base_helper.rb +14 -15
- data/app/helpers/alchemy/admin/contents_helper.rb +1 -2
- data/app/helpers/alchemy/admin/elements_helper.rb +7 -6
- data/app/helpers/alchemy/admin/tags_helper.rb +3 -4
- data/app/helpers/alchemy/base_helper.rb +35 -5
- data/app/helpers/alchemy/elements_helper.rb +2 -2
- data/app/helpers/alchemy/pages_helper.rb +4 -2
- data/app/models/alchemy/attachment.rb +14 -23
- data/app/models/alchemy/base_record.rb +13 -0
- data/app/models/alchemy/cell.rb +1 -1
- data/app/models/alchemy/content.rb +1 -2
- data/app/models/alchemy/content/factory.rb +1 -1
- data/app/models/alchemy/element.rb +10 -12
- data/app/models/alchemy/essence_boolean.rb +1 -1
- data/app/models/alchemy/essence_date.rb +2 -2
- data/app/models/alchemy/essence_file.rb +1 -1
- data/app/models/alchemy/essence_html.rb +1 -1
- data/app/models/alchemy/essence_link.rb +1 -1
- data/app/models/alchemy/essence_picture.rb +1 -1
- data/app/models/alchemy/essence_richtext.rb +1 -1
- data/app/models/alchemy/essence_select.rb +1 -1
- data/app/models/alchemy/essence_text.rb +1 -1
- data/app/models/alchemy/folded_page.rb +1 -1
- data/app/models/alchemy/language.rb +21 -5
- data/app/models/alchemy/page.rb +17 -5
- data/app/models/alchemy/page/page_elements.rb +14 -2
- data/app/models/alchemy/page/page_naming.rb +17 -4
- data/app/models/alchemy/picture.rb +4 -7
- data/app/models/alchemy/site.rb +3 -3
- data/app/models/alchemy/tag.rb +3 -3
- data/app/models/concerns/alchemy/content_touching.rb +23 -0
- data/app/serializers/alchemy/element_serializer.rb +2 -0
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +11 -21
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +26 -29
- data/app/views/alchemy/admin/attachments/_filter_bar.html.erb +2 -3
- data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +3 -4
- data/app/views/alchemy/admin/attachments/_replace_button.html.erb +2 -3
- data/app/views/alchemy/admin/attachments/_tag_list.html.erb +3 -3
- data/app/views/alchemy/admin/attachments/destroy.js.erb +1 -1
- data/app/views/alchemy/admin/attachments/edit.html.erb +2 -2
- data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
- data/app/views/alchemy/admin/attachments/show.html.erb +7 -8
- data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/index.html.erb +23 -7
- data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/remove.js.erb +2 -2
- data/app/views/alchemy/admin/contents/create.js.erb +1 -1
- data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +9 -6
- data/app/views/alchemy/admin/dashboard/_recent_pages.html.erb +6 -4
- data/app/views/alchemy/admin/dashboard/_sites.html.erb +4 -2
- data/app/views/alchemy/admin/dashboard/_users.html.erb +6 -4
- data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
- data/app/views/alchemy/admin/dashboard/info.html.erb +6 -7
- data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element_header.html.erb +14 -14
- data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +3 -3
- data/app/views/alchemy/admin/elements/_new_element_form.html.erb +2 -3
- data/app/views/alchemy/admin/elements/index.html.erb +2 -4
- data/app/views/alchemy/admin/elements/new.html.erb +1 -2
- data/app/views/alchemy/admin/elements/publish.js.erb +5 -5
- data/app/views/alchemy/admin/languages/_language.html.erb +4 -9
- data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
- data/app/views/alchemy/admin/languages/index.html.erb +1 -1
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +5 -5
- data/app/views/alchemy/admin/layoutpages/index.html.erb +5 -4
- data/app/views/alchemy/admin/leave.html.erb +1 -1
- data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +1 -1
- data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_form.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_page.html.erb +31 -23
- data/app/views/alchemy/admin/pages/_page_for_links.html.erb +5 -5
- data/app/views/alchemy/admin/pages/_page_infos.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_publication_fields.html.erb +1 -1
- data/app/views/alchemy/admin/pages/edit.html.erb +22 -21
- data/app/views/alchemy/admin/pages/index.html.erb +5 -21
- data/app/views/alchemy/admin/pages/info.html.erb +5 -5
- data/app/views/alchemy/admin/pages/sort.html.erb +1 -1
- data/app/views/alchemy/admin/pages/unlock.js.erb +2 -4
- data/app/views/alchemy/admin/partials/_flash.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +7 -3
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
- data/app/views/alchemy/admin/pictures/_archive.html.erb +19 -17
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +13 -13
- data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -3
- data/app/views/alchemy/admin/pictures/_form.html.erb +3 -3
- data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +2 -3
- data/app/views/alchemy/admin/pictures/_picture.html.erb +7 -7
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +3 -3
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +6 -7
- data/app/views/alchemy/admin/pictures/index.html.erb +12 -12
- data/app/views/alchemy/admin/pictures/index.js.erb +0 -1
- data/app/views/alchemy/admin/pictures/show.html.erb +9 -9
- data/app/views/alchemy/admin/resources/_filter_bar.html.erb +2 -3
- data/app/views/alchemy/admin/resources/_form.html.erb +10 -2
- data/app/views/alchemy/admin/resources/_resource.html.erb +9 -14
- data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_tag_list.html.erb +4 -4
- data/app/views/alchemy/admin/resources/index.html.erb +2 -3
- data/app/views/alchemy/admin/sites/index.html.erb +1 -1
- data/app/views/alchemy/admin/tags/_tag.html.erb +7 -11
- data/app/views/alchemy/admin/tags/index.html.erb +4 -4
- data/app/views/alchemy/admin/trash/index.html.erb +2 -3
- data/app/views/alchemy/admin/uploader/_button.html.erb +1 -2
- data/app/views/alchemy/base/500.html.erb +1 -1
- data/app/views/alchemy/base/permission_denied.js.erb +1 -1
- data/app/views/alchemy/base/redirect.js.erb +1 -2
- data/app/views/alchemy/elements/_editor_not_found.html.erb +2 -3
- data/app/views/alchemy/essences/_essence_date_editor.html.erb +1 -1
- data/app/views/alchemy/essences/_essence_file_editor.html.erb +7 -11
- data/app/views/alchemy/essences/_essence_picture_editor.html.erb +9 -7
- data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +1 -1
- data/app/views/alchemy/pages/_meta_data.html.erb +1 -1
- data/app/views/kaminari/alchemy/_first_page.html.erb +7 -3
- data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
- data/app/views/kaminari/alchemy/_last_page.html.erb +7 -3
- data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
- data/app/views/kaminari/alchemy/_page.html.erb +1 -1
- data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
- data/app/views/layouts/alchemy/admin.html.erb +8 -6
- data/bin/rails +2 -2
- data/bin/rspec +1 -1
- data/config/alchemy/config.yml +0 -2
- data/config/alchemy/modules.yml +5 -5
- data/config/initializers/simple_form.rb +45 -8
- data/config/locales/alchemy.en.yml +66 -179
- data/config/routes.rb +1 -1
- data/db/migrate/20180226123013_alchemy_four_point_zero.rb +392 -0
- data/db/migrate/20180227224537_migrate_tags_to_gutentag.rb +41 -0
- data/lib/alchemy/config.rb +0 -2
- data/lib/alchemy/engine.rb +5 -9
- data/lib/alchemy/essence.rb +6 -6
- data/lib/alchemy/filetypes.rb +13 -1
- data/lib/alchemy/forms/builder.rb +5 -3
- data/lib/alchemy/i18n.rb +8 -6
- data/lib/alchemy/modules.rb +1 -1
- data/lib/alchemy/name_conversions.rb +0 -2
- data/lib/alchemy/page_layout.rb +3 -2
- data/lib/alchemy/paths.rb +5 -5
- data/lib/alchemy/resource.rb +9 -9
- data/lib/alchemy/resources_helper.rb +11 -15
- data/lib/alchemy/routing_constraints.rb +2 -2
- data/lib/alchemy/shell.rb +0 -1
- data/lib/alchemy/taggable.rb +40 -0
- data/lib/alchemy/tasks/tidy.rb +1 -9
- data/lib/alchemy/test_support/factories/content_factory.rb +10 -0
- data/lib/alchemy/test_support/factories/element_factory.rb +5 -0
- data/lib/alchemy/test_support/shared_contexts.rb +1 -1
- data/lib/alchemy/tinymce.rb +2 -2
- data/lib/alchemy/upgrader/four_point_one.rb +42 -0
- data/lib/alchemy/upgrader/tasks/harden_acts_as_taggable_on_migrations.rb +27 -0
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy_cms.rb +2 -3
- data/lib/rails/generators/alchemy/elements/elements_generator.rb +2 -2
- data/lib/rails/generators/alchemy/essence/essence_generator.rb +1 -1
- data/lib/rails/generators/alchemy/install/install_generator.rb +4 -8
- data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
- data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
- data/lib/rails/generators/alchemy/site_layouts/site_layouts_generator.rb +2 -2
- data/lib/rails/generators/alchemy/views/views_generator.rb +1 -1
- data/lib/tasks/alchemy/db.rake +2 -1
- data/lib/tasks/alchemy/tidy.rake +0 -6
- data/lib/tasks/alchemy/upgrade.rake +11 -144
- data/vendor/assets/fonts/fa-regular-400.eot +0 -0
- data/vendor/assets/fonts/fa-regular-400.svg +363 -0
- data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-solid-900.eot +0 -0
- data/vendor/assets/fonts/fa-solid-900.svg +1413 -0
- data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
- data/vendor/assets/javascripts/tinymce/license.txt +6 -6
- data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -15
- data/vendor/assets/stylesheets/fontawesome/_animated.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_core.scss +16 -0
- data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +792 -0
- data/vendor/assets/stylesheets/fontawesome/_larger.scss +23 -0
- data/vendor/assets/stylesheets/fontawesome/_list.scss +18 -0
- data/vendor/assets/stylesheets/fontawesome/_mixins.scss +57 -0
- data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +23 -0
- data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +5 -0
- data/vendor/assets/stylesheets/fontawesome/_stacked.scss +31 -0
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +805 -0
- data/vendor/assets/stylesheets/fontawesome/fa-regular.scss +22 -0
- data/vendor/assets/stylesheets/fontawesome/fa-solid.scss +23 -0
- data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +16 -0
- metadata +78 -112
- data/app/assets/fonts/alchemy/icons.eot +0 -0
- data/app/assets/fonts/alchemy/icons.svg +0 -33
- data/app/assets/fonts/alchemy/icons.ttf +0 -0
- data/app/assets/fonts/alchemy/icons.woff +0 -0
- data/app/assets/images/alchemy/icons.png +0 -0
- data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
- data/app/assets/images/sassy-ie-overlay.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +0 -42
- data/app/assets/stylesheets/alchemy/icon-font.scss +0 -75
- data/app/assets/stylesheets/alchemy/modules.scss +0 -27
- data/app/models/alchemy.rb +0 -7
- data/app/views/alchemy/admin/contents/destroy.js.erb +0 -4
- data/app/views/alchemy/admin/pictures/flush.js.erb +0 -2
- data/config/locales/alchemy.de.yml +0 -932
- data/config/locales/alchemy.es.yml +0 -960
- data/config/locales/alchemy.fr.yml +0 -938
- data/config/locales/alchemy.it.yml +0 -938
- data/config/locales/alchemy.nl.yml +0 -918
- data/config/locales/alchemy.ru.yml +0 -830
- data/config/locales/simple_form.de.yml +0 -26
- data/config/locales/simple_form.en.yml +0 -25
- data/config/locales/simple_form.es.yml +0 -6
- data/config/locales/simple_form.fr.yml +0 -26
- data/config/locales/simple_form.it.yml +0 -25
- data/config/locales/simple_form.nl.yml +0 -25
- data/config/locales/simple_form.ru.yml +0 -25
- data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -378
- data/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
- data/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
- data/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
- data/db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb +0 -6
- data/db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb +0 -5
- data/db/migrate/20150906195818_add_locale_to_alchemy_languages.rb +0 -7
- data/db/migrate/20160108174834_add_timebased_publishing_columns_to_pages.rb +0 -32
- data/db/migrate/20160422195310_add_image_file_format_to_alchemy_pictures.rb +0 -9
- data/db/migrate/20160617224938_change_alchemy_pages_locked_to_locked_at.rb +0 -22
- data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +0 -9
- data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +0 -20
- data/db/migrate/20160928080104_add_foreign_keys.rb +0 -27
- data/lib/alchemy/touching.rb +0 -42
- data/lib/alchemy/upgrader/tasks/available_contents_upgrader.rb +0 -161
- data/lib/alchemy/upgrader/tasks/install_asset_manifests.rb +0 -15
- data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +0 -14
- data/lib/alchemy/upgrader/tasks/nestable_elements_migration.rb +0 -71
- data/lib/alchemy/upgrader/tasks/three_point_two_task.rb +0 -31
- data/lib/alchemy/upgrader/three_point_five.rb +0 -32
- data/lib/alchemy/upgrader/three_point_four.rb +0 -52
- data/lib/alchemy/upgrader/three_point_one.rb +0 -54
- data/lib/alchemy/upgrader/three_point_three.rb +0 -50
- data/lib/alchemy/upgrader/three_point_two.rb +0 -40
- data/lib/alchemy/upgrader/three_point_zero.rb +0 -92
- data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +0 -3
- data/vendor/assets/javascripts/tinymce/langs/de.js +0 -219
- data/vendor/assets/javascripts/tinymce/langs/es.js +0 -219
- data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -219
- data/vendor/assets/javascripts/tinymce/langs/it.js +0 -219
- data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -219
- data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -219
@@ -1,12 +1,12 @@
|
|
1
1
|
<span class="page_status with-hint">
|
2
|
-
<%= render_icon page.public? ?
|
2
|
+
<%= render_icon(:compass, transform: 'shrink-2', class: @page.public? ? nil : 'disabled') %>
|
3
3
|
<span class="hint-bubble"><%= page.status_title(:public) %></span>
|
4
4
|
</span>
|
5
5
|
<span class="page_status with-hint">
|
6
|
-
<%= render_icon page.visible? ?
|
6
|
+
<%= render_icon(:eye, transform: 'shrink-2', class: @page.visible? ? nil : 'disabled') %>
|
7
7
|
<span class="hint-bubble"><%= page.status_title(:visible) %></span>
|
8
8
|
</span>
|
9
9
|
<span class="page_status with-hint">
|
10
|
-
<%= render_icon page.restricted? ?
|
10
|
+
<%= render_icon(:lock, transform: 'shrink-2', class: @page.restricted? ? nil : 'disabled') %>
|
11
11
|
<span class="hint-bubble"><%= page.status_title(:restricted) %></span>
|
12
12
|
</span>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% checkbox = check_box_tag :page_public, nil, @page.public?, name: nil,
|
2
|
-
data: {date_format: I18n.t(:datetimepicker, scope: 'time.formats')},
|
2
|
+
data: {date_format: I18n.t(:datetimepicker, scope: 'time.formats.alchemy')},
|
3
3
|
disabled: @page.attribute_fixed?(:public_on) %>
|
4
4
|
|
5
5
|
<label class="checkbox">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<div class="button_with_label">
|
8
8
|
<%= form_tag alchemy.unlock_admin_page_path(@page, redirect_to: @layoutpage ? alchemy.admin_layoutpages_path : alchemy.admin_pages_path), id: 'unlock_page_form' do %>
|
9
9
|
<button class="icon_button" title="<%= Alchemy.t(:explain_unlocking) %>" data-alchemy-hotkey="alt+x">
|
10
|
-
<%= render_icon('
|
10
|
+
<%= render_icon('sign-out-alt', transform: 'flip-horizontal') %>
|
11
11
|
</button>
|
12
12
|
<label><%= Alchemy.t(:unlock_page) %></label>
|
13
13
|
<% end %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<div class="button_with_label">
|
18
18
|
<%= form_tag alchemy.visit_admin_page_path(@page), id: 'visit_page_form' do %>
|
19
19
|
<button class="icon_button" title="<%= Alchemy.t('Visit page') %>">
|
20
|
-
<%= render_icon('
|
20
|
+
<%= render_icon('external-link-alt') %>
|
21
21
|
</button>
|
22
22
|
<label><%= Alchemy.t("Visit page") %></label>
|
23
23
|
<% end %>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<% end %>
|
26
26
|
<div class="button_with_label">
|
27
27
|
<%= link_to_dialog(
|
28
|
-
render_icon('info'),
|
28
|
+
render_icon('info-circle'),
|
29
29
|
alchemy.info_admin_page_path(@page),
|
30
30
|
{
|
31
31
|
title: Alchemy.t(:page_infos),
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<div class="button_with_label">
|
42
42
|
<% if @page.layoutpage? %>
|
43
43
|
<%= link_to_dialog(
|
44
|
-
render_icon(
|
44
|
+
render_icon(:cog),
|
45
45
|
alchemy.edit_admin_layoutpage_path(@page),
|
46
46
|
{
|
47
47
|
title: Alchemy.t(:edit_page_properties),
|
@@ -53,7 +53,7 @@
|
|
53
53
|
) %>
|
54
54
|
<% else %>
|
55
55
|
<%= link_to_dialog(
|
56
|
-
render_icon(
|
56
|
+
render_icon(:cog),
|
57
57
|
alchemy.configure_admin_page_path(@page),
|
58
58
|
{
|
59
59
|
title: Alchemy.t(:edit_page_properties),
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<div class="button_with_label">
|
71
71
|
<%= form_tag alchemy.publish_admin_page_path(@page), id: 'publish_page_form' do %>
|
72
72
|
<%= button_tag class: 'icon_button', title: Alchemy.t(:explain_publishing) do %>
|
73
|
-
<%= render_icon('
|
73
|
+
<%= render_icon('cloud-upload-alt') %>
|
74
74
|
<% end %>
|
75
75
|
<label><%= Alchemy.t("Publish page") %></label>
|
76
76
|
<% end %>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
</div>
|
90
90
|
<div class="toolbar_spacer"></div>
|
91
91
|
<div class="button_with_label">
|
92
|
-
<%= link_to render_icon(:
|
92
|
+
<%= link_to render_icon(:redo), nil, {
|
93
93
|
title: Alchemy.t('Reload Preview'),
|
94
94
|
class: 'icon_button',
|
95
95
|
id: 'reload_preview_button'
|
@@ -99,7 +99,7 @@
|
|
99
99
|
</div>
|
100
100
|
<div class="toolbar_buttons right">
|
101
101
|
<div class="button_with_label" id="element_window_button">
|
102
|
-
<%= link_to render_icon(:
|
102
|
+
<%= link_to render_icon(:bars), nil, {
|
103
103
|
title: Alchemy.t(:hide_elements),
|
104
104
|
class: 'icon_button'
|
105
105
|
} %>
|
@@ -142,7 +142,7 @@
|
|
142
142
|
title: '<%= Alchemy.t("New Element") %>',
|
143
143
|
label: '<%= Alchemy.t("New Element") %>',
|
144
144
|
hotkey: 'alt+n',
|
145
|
-
iconClass: '
|
145
|
+
iconClass: 'plus',
|
146
146
|
onClick: function() {
|
147
147
|
Alchemy.openDialog('<%= alchemy.new_admin_element_path(page_id: @page.id) %>', {
|
148
148
|
title: '<%= Alchemy.t("New Element") %>',
|
@@ -153,7 +153,7 @@
|
|
153
153
|
{
|
154
154
|
title: '<%= Alchemy.t("Clipboard") %>',
|
155
155
|
label: '<%= Alchemy.t("Show clipboard") %>',
|
156
|
-
iconClass: '
|
156
|
+
iconClass: '<%= clipboard_empty?("elements") ? "clipboard" : "paste" %>',
|
157
157
|
buttonId: 'clipboard_button',
|
158
158
|
onClick: function() {
|
159
159
|
Alchemy.openDialog('<%= alchemy.admin_clipboard_path(remarkable_type: "elements") %>', {
|
@@ -165,7 +165,7 @@
|
|
165
165
|
{
|
166
166
|
title: '<%= Alchemy.t("Show trash") %>',
|
167
167
|
label: '<%= Alchemy.t("Show trash") %>',
|
168
|
-
iconClass: 'trash<%= trash_empty?("elements") ? "" : " full" %>',
|
168
|
+
iconClass: 'trash-alt<%= trash_empty?("elements") ? "" : " full" %>',
|
169
169
|
buttonId: 'element_trash_button',
|
170
170
|
onClick: function() {
|
171
171
|
Alchemy.TrashWindow.open(<%= @page.id %>, '<%= Alchemy.t("Trash") %>');
|
@@ -178,7 +178,12 @@
|
|
178
178
|
Alchemy.ElementEditors.init();
|
179
179
|
Alchemy.SelectBox('.element-editor');
|
180
180
|
Alchemy.Tinymce.init(<%= @page.richtext_contents_ids.to_json %>);
|
181
|
-
$('#cells').tabs().tabs('paging', {
|
181
|
+
$('#cells').tabs().tabs('paging', {
|
182
|
+
follow: true,
|
183
|
+
followOnSelect: true,
|
184
|
+
prevButton: '<i class="fas fa-angle-double-left"></i>',
|
185
|
+
nextButton: '<i class="fas fa-angle-double-right"></i>'
|
186
|
+
});
|
182
187
|
Alchemy.ElementDirtyObserver('#element_area');
|
183
188
|
if (window.location.hash) {
|
184
189
|
$(window.location.hash).trigger('FocusElementEditor.Alchemy');
|
@@ -195,17 +200,13 @@
|
|
195
200
|
$('#top_menu').css('z-index', 30);
|
196
201
|
});
|
197
202
|
|
198
|
-
$('select#preview_size').on('change', function(
|
203
|
+
$('select#preview_size').on('change', function() {
|
199
204
|
var width = this.value;
|
200
|
-
if (
|
201
|
-
|
205
|
+
if (width === 'auto') {
|
206
|
+
Alchemy.PreviewWindow.currentWindow.css('width', '');
|
207
|
+
} else {
|
208
|
+
Alchemy.PreviewWindow.resize(width);
|
202
209
|
}
|
203
|
-
Alchemy.PreviewWindow.currentWindow.css('width', width);
|
204
|
-
});
|
205
|
-
|
206
|
-
$(window).resize(function() {
|
207
|
-
Alchemy.PreviewWindow.resize();
|
208
|
-
Alchemy.ElementsWindow.resize();
|
209
210
|
});
|
210
211
|
});
|
211
212
|
|
@@ -1,7 +1,3 @@
|
|
1
|
-
<% content_for :javascript_includes do %>
|
2
|
-
<meta name="turbolinks-cache-control" content="no-cache">
|
3
|
-
<% end %>
|
4
|
-
|
5
1
|
<% content_for :toolbar do %>
|
6
2
|
<div class="toolbar_buttons">
|
7
3
|
<%= render 'alchemy/admin/partials/site_select' %>
|
@@ -9,7 +5,7 @@
|
|
9
5
|
<% if can?(:flush, Alchemy::Page) %>
|
10
6
|
<div class="button_with_label">
|
11
7
|
<%= link_to(
|
12
|
-
render_icon(
|
8
|
+
render_icon(:eraser),
|
13
9
|
alchemy.flush_admin_pages_path,
|
14
10
|
:remote => true,
|
15
11
|
:method => :post,
|
@@ -22,10 +18,10 @@
|
|
22
18
|
<% if can?(:sort, Alchemy::Page) %>
|
23
19
|
<div class="button_with_label">
|
24
20
|
<%= link_to(
|
25
|
-
render_icon(:
|
21
|
+
render_icon(:random),
|
26
22
|
alchemy.sort_admin_pages_path,
|
27
23
|
method: :get,
|
28
|
-
class: 'icon_button
|
24
|
+
class: 'icon_button',
|
29
25
|
title: Alchemy.t('Sort pages')
|
30
26
|
) %>
|
31
27
|
<label><%= Alchemy.t('Sort pages') %></label>
|
@@ -33,7 +29,7 @@
|
|
33
29
|
<% end %>
|
34
30
|
<div class="button_with_label" id="clipboard_button">
|
35
31
|
<%= link_to_dialog(
|
36
|
-
render_icon(
|
32
|
+
render_icon(clipboard_empty?('pages') ? :clipboard : :paste),
|
37
33
|
alchemy.admin_clipboard_path(:remarkable_type => 'pages'),
|
38
34
|
{
|
39
35
|
:title => Alchemy.t('Clipboard'),
|
@@ -51,7 +47,7 @@
|
|
51
47
|
placeholder: Alchemy.t(:search),
|
52
48
|
id: nil %>
|
53
49
|
<%= render_icon :search %>
|
54
|
-
<%= link_to('', '#', {
|
50
|
+
<%= link_to(render_icon(:times, size: 'xs'), '#', {
|
55
51
|
class: "js_filter_field_clear",
|
56
52
|
title: Alchemy.t(:click_to_show_all)
|
57
53
|
}) %>
|
@@ -60,18 +56,6 @@
|
|
60
56
|
|
61
57
|
<div id="archive_all">
|
62
58
|
<% if @page_root %>
|
63
|
-
|
64
|
-
<div id="sort_panel" style="display: none">
|
65
|
-
<div class="info">
|
66
|
-
<%= render_icon('info') %>
|
67
|
-
<%= Alchemy.t(:explain_sitemap_dragndrop_sorting) %>
|
68
|
-
</div>
|
69
|
-
<div class="buttons">
|
70
|
-
<%= link_to( Alchemy.t(:cancel), alchemy.admin_pages_path, :class => 'button' ) %>
|
71
|
-
<%= submit_tag( Alchemy.t('save order'), :id => 'save_page_order', :class => 'button' ) %>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
|
75
59
|
<h1 id="page_filter_result"></h1>
|
76
60
|
|
77
61
|
<%= render 'sitemap', page_partial: 'page', full: !!@sorting %>
|
@@ -26,26 +26,26 @@
|
|
26
26
|
<label><%= Alchemy.t(:page_status) %></label>
|
27
27
|
<p>
|
28
28
|
<span class="page_status">
|
29
|
-
<%= render_icon @page.public? ?
|
29
|
+
<%= render_icon(:compass, transform: 'shrink-2', class: @page.public? ? nil : 'disabled') %>
|
30
30
|
<%= @page.status_title(:public) %>
|
31
31
|
</span>
|
32
32
|
<span class="page_status">
|
33
|
-
<%= render_icon @page.visible? ?
|
33
|
+
<%= render_icon(:eye, transform: 'shrink-2', class: @page.visible? ? nil : 'disabled') %>
|
34
34
|
<%= @page.status_title(:visible) %>
|
35
35
|
</span>
|
36
36
|
<span class="page_status">
|
37
|
-
<%= render_icon @page.restricted? ?
|
37
|
+
<%= render_icon(:lock, transform: 'shrink-2', class: @page.restricted? ? nil : 'disabled') %>
|
38
38
|
<%= @page.status_title(:restricted) %>
|
39
39
|
</span>
|
40
40
|
</p>
|
41
41
|
</div>
|
42
42
|
<div class="value">
|
43
43
|
<label><%= Alchemy.t(:page_was_created) %></label>
|
44
|
-
<p><%= Alchemy.t(:from_at) % {by: @page.creator_name, at: l(@page.created_at, format: :page_status)} %></p>
|
44
|
+
<p><%= Alchemy.t(:from_at) % {by: @page.creator_name, at: l(@page.created_at, format: :'alchemy.page_status')} %></p>
|
45
45
|
</div>
|
46
46
|
<div class="value">
|
47
47
|
<label><%= Alchemy.t(:page_was_updated) %></label>
|
48
|
-
<p><%= Alchemy.t(:from_at) % {by: @page.updater_name, at: l(@page.updated_at, format: :page_status)} %></p>
|
48
|
+
<p><%= Alchemy.t(:from_at) % {by: @page.updater_name, at: l(@page.updated_at, format: :'alchemy.page_status')} %></p>
|
49
49
|
</div>
|
50
50
|
<% if @page.locked? %>
|
51
51
|
<div class="value">
|
@@ -1,8 +1,6 @@
|
|
1
1
|
(function($) {
|
2
2
|
$('#locked_page_<%= @page.id -%>').remove();
|
3
|
-
$('#page_<%= @page.id -%> .
|
4
|
-
|
5
|
-
$('#locked_pages label').hide();
|
6
|
-
<%- end -%>
|
3
|
+
$('#page_<%= @page.id -%> .sitemap_left_images .with-hint').remove();
|
4
|
+
$('#page_<%= @page.id -%> .sitemap_left_images').append('<%= j render_icon(:file, style: 'regular', size: 'lg') %>');
|
7
5
|
Alchemy.growl('<%= flash[:notice] -%>');
|
8
6
|
})(jQuery);
|
@@ -1,12 +1,16 @@
|
|
1
1
|
<% if can? *navigate_module(navigation) %>
|
2
|
-
<%= content_tag :div, class: main_navigation_css_classes(navigation)
|
2
|
+
<%= content_tag :div, class: main_navigation_css_classes(navigation) do %>
|
3
3
|
<%= link_to url_for_module(alchemy_module) do %>
|
4
4
|
<% if navigation["image"] %>
|
5
5
|
<%= image_tag(navigation["image"]) %>
|
6
|
+
<% elsif navigation["inline_image"] %>
|
7
|
+
<span class="icon fa-fw">
|
8
|
+
<%== navigation["inline_image"] %>
|
9
|
+
</span>
|
6
10
|
<% elsif navigation["icon"] %>
|
7
|
-
<
|
11
|
+
<i class="module icon fas fa-<%= navigation["icon"] %> fa-lg fa-fw"></i>
|
8
12
|
<% else %>
|
9
|
-
<
|
13
|
+
<i class="module icon fas fa-table fa-lg fa-fw"></i>
|
10
14
|
<% end %>
|
11
15
|
<label><%= Alchemy.t(navigation['name']) %></label>
|
12
16
|
<% end %>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
placeholder: Alchemy.t(:search),
|
12
12
|
class: 'search_input_field',
|
13
13
|
id: nil %>
|
14
|
-
<%= link_to '', url_for(
|
14
|
+
<%= link_to render_icon(:times, size: 'xs'), url_for(
|
15
15
|
action: 'index',
|
16
16
|
element_id: @element.blank? ? '' : @element.id,
|
17
17
|
content_id: @content.blank? ? '' : @content.id,
|
@@ -22,6 +22,6 @@
|
|
22
22
|
remote: true,
|
23
23
|
class: 'search_field_clear',
|
24
24
|
title: Alchemy.t(:click_to_show_all),
|
25
|
-
style:
|
25
|
+
style: search_filter_params[:q].blank? ? 'display: none' : 'display: block' %>
|
26
26
|
</div>
|
27
27
|
<% end %>
|
@@ -9,13 +9,13 @@
|
|
9
9
|
<% local_assigns.fetch(:additional_query_fields, []).each do |field| %>
|
10
10
|
<%= f.hidden_field field %>
|
11
11
|
<% end %>
|
12
|
-
<%= link_to '', url,
|
12
|
+
<%= link_to render_icon(:times, size: 'xs'), url,
|
13
13
|
class: 'search_field_clear',
|
14
14
|
id: 'search_field_clear',
|
15
15
|
title: Alchemy.t(:click_to_show_all),
|
16
|
-
style:
|
16
|
+
style: search_filter_params.fetch(:q, {}).fetch(resource_handler.search_field_name, '').present? ? 'display: block' : 'display: none' %>
|
17
17
|
<% local_assigns.fetch(:additional_params, []).each do |additional_param| %>
|
18
|
-
<%= hidden_field_tag additional_param,
|
18
|
+
<%= hidden_field_tag additional_param, search_filter_params[additional_param] %>
|
19
19
|
<% end %>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
@@ -1,21 +1,25 @@
|
|
1
1
|
<div id="library_sidebar">
|
2
2
|
<%= render 'filter_bar' %>
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
|
4
|
+
<% if Alchemy::Picture.tag_counts.any? %>
|
5
|
+
<div class="tag-list with_filter_bar<%= ' filtered' if search_filter_params[:tagged_with].present? %>">
|
6
|
+
<%= render 'tag_list' %>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
6
9
|
</div>
|
10
|
+
|
7
11
|
<%= form_tag delete_multiple_admin_pictures_path, method: :delete do %>
|
8
12
|
<div class="selected_item_tools">
|
9
13
|
<h2><%= Alchemy.t(:edit_selected_pictures) %></h2>
|
10
14
|
<%= link_to(
|
11
|
-
render_icon(
|
15
|
+
render_icon(:edit, size: 'xs') + Alchemy.t("Edit"),
|
12
16
|
edit_multiple_admin_pictures_path,
|
13
17
|
class: 'button with_icon',
|
14
18
|
title: Alchemy.t('Edit multiple pictures'),
|
15
19
|
id: 'edit_multiple_pictures',
|
16
20
|
style: 'float: none'
|
17
21
|
) %>
|
18
|
-
<%= button_tag render_icon('
|
22
|
+
<%= button_tag render_icon(:minus, size: 'xs') + Alchemy.t("Delete"), 'data-alchemy-confirm' => {
|
19
23
|
title: Alchemy.t(:please_confirm),
|
20
24
|
message: Alchemy.t(:confirm_to_delete_images_from_server),
|
21
25
|
ok_label: Alchemy.t("Yes"),
|
@@ -23,28 +27,26 @@
|
|
23
27
|
}.to_json, class: 'button with_icon' %>
|
24
28
|
<%= Alchemy.t(:or) %>
|
25
29
|
<%= link_to(
|
26
|
-
render_icon('
|
30
|
+
render_icon(:times, size: 'xs') + Alchemy.t("Clear selection"),
|
27
31
|
admin_pictures_path(
|
28
|
-
q:
|
29
|
-
tagged_with:
|
32
|
+
q: search_filter_params[:q],
|
33
|
+
tagged_with: search_filter_params[:tagged_with],
|
30
34
|
size: params[:size],
|
31
|
-
filter:
|
35
|
+
filter: search_filter_params[:filter]
|
32
36
|
),
|
33
|
-
class: 'button with_icon',
|
37
|
+
class: 'secondary button with_icon',
|
34
38
|
style: 'float: none'
|
35
39
|
) %>
|
36
40
|
</div>
|
37
41
|
<div id="pictures">
|
38
|
-
<% if @pictures.blank? and @recent_pictures.blank? and
|
39
|
-
|
40
|
-
<%= render_icon('info') %>
|
42
|
+
<% if @pictures.blank? and @recent_pictures.blank? and search_filter_params[:q].blank? %>
|
43
|
+
<%= render_message do %>
|
41
44
|
<%= Alchemy.t(:no_images_in_archive) %>
|
42
|
-
|
45
|
+
<% end %>
|
43
46
|
<% elsif @pictures.blank? and @recent_pictures.blank? %>
|
44
|
-
|
45
|
-
<%= render_icon('info') %>
|
47
|
+
<%= render_message do %>
|
46
48
|
<%= Alchemy.t(:no_search_results) %>
|
47
|
-
|
49
|
+
<% end %>
|
48
50
|
<% else %>
|
49
51
|
<%= render partial: 'picture', collection: @pictures %>
|
50
52
|
<%= paginate @pictures, theme: 'alchemy' %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div id="overlay_toolbar">
|
2
2
|
<%= render 'filter_and_size_bar' %>
|
3
3
|
</div>
|
4
|
-
<div id="assign_image_list" class="with_padding<%=
|
4
|
+
<div id="assign_image_list" class="with_padding<%= search_filter_params[:tagged_with].present? ? ' filtered' : '' %>">
|
5
5
|
<div id="library_sidebar">
|
6
6
|
<%= render 'filter_bar' %>
|
7
7
|
<div class="tag-list">
|
@@ -6,7 +6,7 @@
|
|
6
6
|
file_attribute: 'image_file',
|
7
7
|
in_dialog: true,
|
8
8
|
redirect_url: alchemy.admin_pictures_path(
|
9
|
-
size:
|
9
|
+
size: search_filter_params[:size],
|
10
10
|
filter: 'last_upload',
|
11
11
|
content_id: @content.try(:id),
|
12
12
|
element_id: @element.try(:id),
|
@@ -17,15 +17,15 @@
|
|
17
17
|
<div class="button_group">
|
18
18
|
<div class="button_with_label">
|
19
19
|
<%= link_to(
|
20
|
-
render_icon('
|
20
|
+
render_icon('search-minus'),
|
21
21
|
alchemy.admin_pictures_path({
|
22
22
|
size: "small",
|
23
23
|
content_id: @content,
|
24
24
|
element_id: @element,
|
25
|
-
q:
|
25
|
+
q: search_filter_params[:q],
|
26
26
|
options: options_from_params,
|
27
|
-
filter:
|
28
|
-
tagged_with:
|
27
|
+
filter: search_filter_params[:filter],
|
28
|
+
tagged_with: search_filter_params[:tagged_with]
|
29
29
|
}),
|
30
30
|
remote: true,
|
31
31
|
title: Alchemy.t(:small_thumbnails),
|
@@ -34,15 +34,15 @@
|
|
34
34
|
</div>
|
35
35
|
<div class="button_with_label">
|
36
36
|
<%= link_to(
|
37
|
-
render_icon('
|
37
|
+
render_icon('search'),
|
38
38
|
alchemy.admin_pictures_path({
|
39
39
|
size: "medium",
|
40
40
|
content_id: @content,
|
41
41
|
element_id: @element,
|
42
|
-
q:
|
42
|
+
q: search_filter_params[:q],
|
43
43
|
options: options_from_params,
|
44
|
-
filter:
|
45
|
-
tagged_with:
|
44
|
+
filter: search_filter_params[:filter],
|
45
|
+
tagged_with: search_filter_params[:tagged_with]
|
46
46
|
}),
|
47
47
|
remote: true,
|
48
48
|
title: Alchemy.t(:medium_thumbnails),
|
@@ -51,15 +51,15 @@
|
|
51
51
|
</div>
|
52
52
|
<div class="button_with_label">
|
53
53
|
<%= link_to(
|
54
|
-
render_icon('
|
54
|
+
render_icon('search-plus'),
|
55
55
|
alchemy.admin_pictures_path({
|
56
56
|
size: "large",
|
57
57
|
content_id: @content,
|
58
58
|
element_id: @element,
|
59
|
-
q:
|
59
|
+
q: search_filter_params[:q],
|
60
60
|
options: options_from_params,
|
61
|
-
filter:
|
62
|
-
tagged_with:
|
61
|
+
filter: search_filter_params[:filter],
|
62
|
+
tagged_with: search_filter_params[:tagged_with]
|
63
63
|
}),
|
64
64
|
remote: true,
|
65
65
|
title: Alchemy.t(:big_thumbnails),
|