alchemy_cms 7.1.12 → 7.2.0.b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +132 -29
- data/Gemfile +2 -4
- data/LICENSE +1 -1
- data/README.md +5 -6
- data/SECURITY.md +1 -1
- data/alchemy_cms.gemspec +3 -4
- data/app/assets/javascripts/alchemy/admin.js +0 -9
- data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +5 -15
- data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +5 -4
- data/app/assets/javascripts/alchemy/templates/index.js +0 -1
- data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
- data/app/assets/javascripts/alchemy/templates/page_folder.hbs +1 -1
- data/app/assets/javascripts/tinymce/plugins/alchemy_link/plugin.min.js +20 -7
- data/app/assets/stylesheets/alchemy/_custom-properties.scss +12 -0
- data/app/assets/stylesheets/alchemy/_mixins.scss +10 -6
- data/app/assets/stylesheets/alchemy/_variables.scss +3 -0
- data/app/assets/stylesheets/alchemy/admin.scss +2 -2
- data/app/assets/stylesheets/alchemy/archive.scss +4 -3
- data/app/assets/stylesheets/alchemy/attachment-select.scss +19 -0
- data/app/assets/stylesheets/alchemy/base.scss +31 -18
- data/app/assets/stylesheets/alchemy/buttons.scss +3 -4
- data/app/assets/stylesheets/alchemy/dashboard.scss +1 -1
- data/app/assets/stylesheets/alchemy/dialogs.scss +2 -5
- data/app/assets/stylesheets/alchemy/elements.scss +73 -41
- data/app/assets/stylesheets/alchemy/flash.scss +20 -70
- data/app/assets/stylesheets/alchemy/forms.scss +41 -36
- data/app/assets/stylesheets/alchemy/frame.scss +12 -3
- data/app/assets/stylesheets/alchemy/icons.scss +34 -2
- data/app/assets/stylesheets/alchemy/image_library.scss +18 -9
- data/app/assets/stylesheets/alchemy/{filter_field.scss → list_filter.scss} +8 -7
- data/app/assets/stylesheets/alchemy/lists.scss +1 -1
- data/app/assets/stylesheets/alchemy/navigation.scss +9 -12
- data/app/assets/stylesheets/alchemy/node-select.scss +1 -1
- data/app/assets/stylesheets/alchemy/nodes.scss +15 -13
- data/app/assets/stylesheets/alchemy/notices.scss +56 -39
- data/app/assets/stylesheets/alchemy/page-select.scss +1 -4
- data/app/assets/stylesheets/alchemy/pagination.scss +11 -1
- data/app/assets/stylesheets/alchemy/preview_window.scss +3 -3
- data/app/assets/stylesheets/alchemy/search.scss +4 -4
- data/app/assets/stylesheets/alchemy/selects.scss +13 -7
- data/app/assets/stylesheets/alchemy/shoelace.scss +33 -2
- data/app/assets/stylesheets/alchemy/sitemap.scss +155 -159
- data/app/assets/stylesheets/alchemy/tables.scss +49 -12
- data/app/assets/stylesheets/alchemy/tags.scss +17 -11
- data/app/assets/stylesheets/alchemy/toolbar.scss +2 -2
- data/app/assets/stylesheets/alchemy/typography.scss +41 -22
- data/app/assets/stylesheets/alchemy/upload.scss +5 -4
- data/app/components/alchemy/admin/attachment_select.rb +39 -0
- data/app/components/alchemy/admin/icon.rb +72 -0
- data/app/components/alchemy/admin/link_dialog/anchor_tab.rb +41 -0
- data/app/components/alchemy/admin/link_dialog/base_tab.rb +75 -0
- data/app/components/alchemy/admin/link_dialog/external_tab.rb +42 -0
- data/app/components/alchemy/admin/link_dialog/file_tab.rb +45 -0
- data/app/components/alchemy/admin/link_dialog/internal_tab.rb +66 -0
- data/app/components/alchemy/admin/link_dialog/tabs.rb +33 -0
- data/app/components/alchemy/admin/list_filter.rb +42 -0
- data/app/components/alchemy/admin/message.rb +19 -0
- data/app/components/alchemy/admin/tags_autocomplete.rb +25 -0
- data/app/components/alchemy/admin/toolbar_button.rb +111 -0
- data/app/components/alchemy/ingredients/datetime_view.rb +2 -3
- data/app/components/alchemy/ingredients/link_view.rb +1 -7
- data/app/components/alchemy/ingredients/picture_view.rb +2 -2
- data/app/components/alchemy/ingredients/text_view.rb +1 -2
- data/app/controllers/alchemy/admin/base_controller.rb +1 -1
- data/app/controllers/alchemy/admin/elements_controller.rb +4 -2
- data/app/controllers/alchemy/admin/ingredients_controller.rb +2 -0
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/layoutpages_controller.rb +0 -19
- data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +12 -4
- data/app/controllers/alchemy/admin/nodes_controller.rb +26 -0
- data/app/controllers/alchemy/admin/pages_controller.rb +11 -78
- data/app/controllers/alchemy/admin/picture_descriptions_controller.rb +15 -0
- data/app/controllers/alchemy/admin/pictures_controller.rb +18 -1
- data/app/controllers/alchemy/admin/resources_controller.rb +15 -10
- data/app/controllers/alchemy/api/attachments_controller.rb +44 -0
- data/app/controllers/alchemy/api/pages_controller.rb +10 -6
- data/app/controllers/alchemy/base_controller.rb +2 -2
- data/app/controllers/alchemy/messages_controller.rb +3 -3
- data/app/controllers/alchemy/pages_controller.rb +8 -6
- data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -11
- data/app/controllers/concerns/alchemy/legacy_page_redirects.rb +1 -1
- data/app/decorators/alchemy/element_editor.rb +2 -2
- data/app/helpers/alchemy/admin/base_helper.rb +8 -60
- data/app/helpers/alchemy/admin/elements_helper.rb +1 -1
- data/app/helpers/alchemy/admin/ingredients_helper.rb +1 -1
- data/app/helpers/alchemy/base_helper.rb +9 -91
- data/app/helpers/alchemy/elements_helper.rb +3 -3
- data/app/helpers/alchemy/pages_helper.rb +16 -9
- data/app/javascript/alchemy_admin/components/attachment_select.js +24 -0
- data/app/javascript/alchemy_admin/components/button.js +3 -0
- data/app/javascript/alchemy_admin/components/clipboard_button.js +3 -2
- data/app/javascript/alchemy_admin/components/dialog_link.js +10 -7
- data/app/javascript/alchemy_admin/components/dom_id_select.js +69 -0
- data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +42 -0
- data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +4 -2
- data/app/javascript/alchemy_admin/components/element_editor.js +21 -13
- data/app/javascript/alchemy_admin/components/elements_window.js +87 -0
- data/app/javascript/alchemy_admin/components/growl.js +13 -0
- data/app/javascript/alchemy_admin/components/icon.js +51 -0
- data/app/javascript/alchemy_admin/components/index.js +24 -0
- data/app/javascript/alchemy_admin/components/ingredient_group.js +6 -0
- data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +21 -11
- data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +2 -1
- data/app/javascript/alchemy_admin/components/link_buttons.js +1 -0
- data/app/javascript/alchemy_admin/components/list_filter.js +68 -0
- data/app/javascript/alchemy_admin/components/message.js +69 -0
- data/app/javascript/alchemy_admin/components/node_select.js +1 -1
- data/app/javascript/alchemy_admin/components/overlay.js +6 -6
- data/app/javascript/alchemy_admin/components/page_select.js +3 -7
- data/app/javascript/alchemy_admin/components/preview_window.js +121 -0
- data/app/javascript/alchemy_admin/components/remote_select.js +4 -1
- data/app/javascript/alchemy_admin/components/select.js +37 -1
- data/app/javascript/alchemy_admin/components/tags_autocomplete.js +57 -0
- data/app/javascript/alchemy_admin/components/uploader/file_upload.js +4 -3
- data/app/javascript/alchemy_admin/components/uploader/progress.js +1 -1
- data/app/javascript/alchemy_admin/confirm_dialog.js +133 -0
- data/app/javascript/alchemy_admin/dirty.js +19 -14
- data/app/javascript/alchemy_admin/fixed_elements.js +24 -0
- data/app/javascript/alchemy_admin/growler.js +15 -0
- data/app/javascript/alchemy_admin/gui.js +2 -4
- data/app/javascript/alchemy_admin/hotkeys.js +60 -0
- data/app/javascript/alchemy_admin/image_loader.js +2 -2
- data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -3
- data/app/javascript/alchemy_admin/initializer.js +1 -8
- data/app/javascript/alchemy_admin/link_dialog.js +131 -0
- data/app/javascript/alchemy_admin/locales/en.js +3 -0
- data/app/javascript/alchemy_admin/node_tree.js +4 -3
- data/app/javascript/alchemy_admin/page_sorter.js +23 -14
- data/app/javascript/alchemy_admin/picture_editors.js +6 -5
- data/app/javascript/alchemy_admin/shoelace_theme.js +60 -0
- data/app/javascript/alchemy_admin/sitemap.js +9 -3
- data/app/javascript/alchemy_admin/sortable_elements.js +4 -6
- data/app/javascript/alchemy_admin.js +18 -42
- data/app/models/alchemy/current.rb +26 -0
- data/app/models/alchemy/element.rb +1 -1
- data/app/models/alchemy/ingredients/audio.rb +0 -11
- data/app/models/alchemy/ingredients/datetime.rb +1 -1
- data/app/models/alchemy/ingredients/headline.rb +8 -1
- data/app/models/alchemy/ingredients/picture.rb +6 -0
- data/app/models/alchemy/ingredients/video.rb +0 -12
- data/app/models/alchemy/language.rb +8 -6
- data/app/models/alchemy/node.rb +2 -2
- data/app/models/alchemy/page/page_elements.rb +8 -8
- data/app/models/alchemy/page/page_layouts.rb +3 -3
- data/app/models/alchemy/page/page_natures.rb +13 -9
- data/app/models/alchemy/page/page_scopes.rb +2 -2
- data/app/models/alchemy/page/publisher.rb +1 -0
- data/app/models/alchemy/page.rb +13 -28
- data/app/models/alchemy/picture.rb +8 -0
- data/app/models/alchemy/picture_description.rb +8 -0
- data/app/models/alchemy/picture_variant.rb +1 -1
- data/app/models/alchemy/site.rb +10 -7
- data/app/serializers/alchemy/attachment_serializer.rb +8 -0
- data/app/serializers/alchemy/page_node_serializer.rb +9 -0
- data/app/views/alchemy/_menubar.html.erb +1 -1
- data/app/views/alchemy/_preview_mode_code.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/_tag_list.html.erb +2 -2
- data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
- data/app/views/alchemy/admin/attachments/edit.html.erb +3 -4
- data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/index.html.erb +1 -1
- data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/remove.js.erb +1 -1
- data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/_sites.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/help.html.erb +48 -12
- data/app/views/alchemy/admin/dashboard/index.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/info.html.erb +5 -8
- data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element.html.erb +5 -5
- data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_header.html.erb +6 -2
- data/app/views/alchemy/admin/elements/_toolbar.html.erb +8 -6
- data/app/views/alchemy/admin/elements/create.js.erb +0 -5
- data/app/views/alchemy/admin/elements/index.html.erb +70 -34
- data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +1 -2
- data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -5
- data/app/views/alchemy/admin/languages/_language.html.erb +1 -1
- data/app/views/alchemy/admin/languages/index.html.erb +2 -2
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +18 -18
- data/app/views/alchemy/admin/layoutpages/edit.html.erb +4 -5
- data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
- data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +10 -11
- data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +15 -17
- data/app/views/alchemy/admin/legacy_page_urls/_table.html.erb +16 -0
- data/app/views/alchemy/admin/legacy_page_urls/_update.turbo_stream.erb +12 -0
- data/app/views/alchemy/admin/legacy_page_urls/create.turbo_stream.erb +8 -0
- data/app/views/alchemy/admin/legacy_page_urls/destroy.turbo_stream.erb +1 -0
- data/app/views/alchemy/admin/legacy_page_urls/edit.html.erb +27 -0
- data/app/views/alchemy/admin/legacy_page_urls/show.html.erb +1 -0
- data/app/views/alchemy/admin/legacy_page_urls/update.turbo_stream.erb +1 -0
- data/app/views/alchemy/admin/nodes/_form.html.erb +12 -11
- data/app/views/alchemy/admin/nodes/_label.html.erb +1 -0
- data/app/views/alchemy/admin/nodes/_node.html.erb +19 -19
- data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +48 -0
- data/app/views/alchemy/admin/nodes/_update.turbo_stream.erb +9 -0
- data/app/views/alchemy/admin/nodes/create.turbo_stream.erb +1 -0
- data/app/views/alchemy/admin/nodes/destroy.turbo_stream.erb +1 -0
- data/app/views/alchemy/admin/nodes/index.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_form.html.erb +3 -4
- data/app/views/alchemy/admin/pages/_legacy_urls.html.erb +4 -15
- data/app/views/alchemy/admin/pages/_page.html.erb +39 -39
- data/app/views/alchemy/admin/pages/_table_row.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_toolbar.html.erb +2 -2
- data/app/views/alchemy/admin/pages/configure.html.erb +6 -0
- data/app/views/alchemy/admin/pages/edit.html.erb +15 -62
- data/app/views/alchemy/admin/pages/unlock.js.erb +3 -3
- data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +3 -1
- data/app/views/alchemy/admin/partials/_flash_notices.html.erb +4 -2
- data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +5 -2
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_site_select.html.erb +1 -1
- data/app/views/alchemy/admin/picture_descriptions/_form.html.erb +11 -0
- data/app/views/alchemy/admin/picture_descriptions/edit.html.erb +6 -0
- data/app/views/alchemy/admin/pictures/_form.html.erb +4 -3
- data/app/views/alchemy/admin/pictures/_infos.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_picture_description_field.html.erb +29 -0
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +0 -2
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +3 -3
- data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
- data/app/views/alchemy/admin/resources/_form.html.erb +3 -4
- data/app/views/alchemy/admin/resources/_per_page_select.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_tag_list.html.erb +2 -2
- data/app/views/alchemy/admin/resources/index.html.erb +2 -2
- data/app/views/alchemy/admin/sites/index.html.erb +1 -1
- data/app/views/alchemy/admin/styleguide/index.html.erb +29 -24
- data/app/views/alchemy/admin/tags/_tag.html.erb +1 -1
- data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
- data/app/views/alchemy/admin/tags/index.html.erb +1 -1
- data/app/views/alchemy/base/500.html.erb +7 -18
- data/app/views/alchemy/base/error_notice.html.erb +3 -1
- data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/_datetime_editor.html.erb +2 -3
- data/app/views/alchemy/ingredients/_headline_editor.html.erb +13 -8
- data/app/views/alchemy/ingredients/_picture_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +1 -1
- data/app/views/alchemy/language_links/_language.html.erb +1 -1
- data/app/views/kaminari/alchemy/_first_page.html.erb +2 -2
- data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
- data/app/views/kaminari/alchemy/_last_page.html.erb +2 -2
- data/app/views/kaminari/alchemy/_next_page.html.erb +2 -2
- data/app/views/kaminari/alchemy/_prev_page.html.erb +2 -2
- data/app/views/layouts/alchemy/admin.html.erb +2 -1
- data/bundles/shoelace.js +3 -1
- data/config/locales/alchemy.en.yml +16 -3
- data/config/routes.rb +4 -2
- data/db/migrate/20240314105244_create_alchemy_picture_descriptions.rb +11 -0
- data/lib/alchemy/configuration_methods.rb +1 -1
- data/lib/alchemy/controller_actions.rb +3 -3
- data/lib/alchemy/element_definition.rb +10 -6
- data/lib/alchemy/engine.rb +19 -2
- data/lib/alchemy/page_layout.rb +10 -6
- data/lib/alchemy/permissions.rb +4 -3
- data/lib/alchemy/routing_constraints.rb +1 -1
- data/lib/alchemy/seeder.rb +2 -2
- data/lib/alchemy/test_support/capybara_helpers.rb +4 -0
- data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
- data/lib/alchemy/test_support/shared_contexts.rb +8 -0
- data/lib/alchemy/tinymce.rb +2 -1
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy.rb +36 -0
- data/lib/alchemy_cms.rb +0 -1
- data/lib/generators/alchemy/menus/templates/node.html.erb +2 -2
- data/lib/generators/alchemy/menus/templates/node.html.haml +2 -2
- data/lib/generators/alchemy/menus/templates/node.html.slim +2 -2
- data/lib/generators/alchemy/menus/templates/wrapper.html.erb +1 -1
- data/lib/generators/alchemy/menus/templates/wrapper.html.haml +1 -1
- data/lib/generators/alchemy/menus/templates/wrapper.html.slim +1 -1
- data/lib/tasks/alchemy/sitemap.rake +97 -0
- data/lib/tasks/alchemy/tidy.rake +1 -0
- data/package.json +8 -8
- data/vendor/assets/fonts/remixicon.symbol.svg +11 -0
- data/vendor/javascript/shoelace.min.js +333 -118
- data/vendor/javascript/sortable.min.js +1 -1
- data/vendor/javascript/tinymce.min.js +1 -1
- data/vendor/javascript/ungap-custom-elements.min.js +1 -1
- metadata +61 -55
- data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +0 -85
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +0 -107
- data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +0 -66
- data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +0 -45
- data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +0 -24
- data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +0 -49
- data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -0
- data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +0 -230
- data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +0 -49
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +0 -82
- data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +0 -11
- data/app/assets/javascripts/alchemy/templates/page.hbs +0 -19
- data/app/javascript/alchemy_admin/tags_autocomplete.js +0 -46
- data/app/models/alchemy/tree_node.rb +0 -7
- data/app/views/alchemy/admin/elements/destroy.js.erb +0 -8
- data/app/views/alchemy/admin/legacy_page_urls/_form.html.erb +0 -5
- data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +0 -9
- data/app/views/alchemy/admin/legacy_page_urls/destroy.js.erb +0 -6
- data/app/views/alchemy/admin/legacy_page_urls/update.js.erb +0 -2
- data/app/views/alchemy/admin/pages/_anchor_link.html.erb +0 -22
- data/app/views/alchemy/admin/pages/_external_link.html.erb +0 -31
- data/app/views/alchemy/admin/pages/_file_link.html.erb +0 -31
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +0 -35
- data/app/views/alchemy/admin/pages/link.html.erb +0 -26
- data/app/views/alchemy/admin/partials/_flash.html.erb +0 -4
- data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +0 -29
- data/lib/alchemy/test_support/current_language_shared_examples.rb +0 -33
- data/vendor/assets/fonts/remixicon.eot +0 -0
- data/vendor/assets/fonts/remixicon.svg +0 -7816
- data/vendor/assets/fonts/remixicon.ttf +0 -0
- data/vendor/assets/fonts/remixicon.woff +0 -0
- data/vendor/assets/fonts/remixicon.woff2 +0 -0
- data/vendor/assets/stylesheets/remixicon.scss +0 -10480
@@ -5,8 +5,7 @@
|
|
5
5
|
<%- if css_classes.present? -%>
|
6
6
|
<%= f.input :css_class,
|
7
7
|
collection: css_classes,
|
8
|
-
include_blank: Alchemy.t('None')
|
9
|
-
input_html: {is: 'alchemy-select'} %>
|
8
|
+
include_blank: Alchemy.t('None') %>
|
10
9
|
<%- else -%>
|
11
10
|
<%= f.input :css_class,
|
12
11
|
label: Alchemy.t(:position_in_text),
|
@@ -1,19 +1,17 @@
|
|
1
1
|
<%= f.input :caption, as: ingredient.settings[:caption_as_textarea] ? 'text' : 'string' %>
|
2
2
|
<%= f.input :title %>
|
3
|
-
<%= f.input :alt_tag %>
|
3
|
+
<%= f.input :alt_tag, as: :text, placeholder: ingredient.alt_text(language: @language) %>
|
4
4
|
<%- if ingredient.settings[:sizes].present? && ingredient.settings[:srcset].blank? -%>
|
5
5
|
<%= f.input :render_size,
|
6
6
|
collection: [
|
7
7
|
[Alchemy.t('Layout default'), ""]
|
8
8
|
] + ingredient.settings[:sizes].to_a,
|
9
|
-
include_blank: false
|
10
|
-
input_html: {is: 'alchemy-select'} %>
|
9
|
+
include_blank: false %>
|
11
10
|
<%- end -%>
|
12
11
|
<%- if ingredient.settings[:css_classes].present? -%>
|
13
12
|
<%= f.input :css_class,
|
14
13
|
collection: ingredient.settings[:css_classes],
|
15
|
-
include_blank: Alchemy.t('None')
|
16
|
-
input_html: {is: 'alchemy-select'} %>
|
14
|
+
include_blank: Alchemy.t('None') %>
|
17
15
|
<%- else -%>
|
18
16
|
<%= f.input :css_class,
|
19
17
|
label: Alchemy.t(:position_in_text),
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% content_for :toolbar do %>
|
4
4
|
<div class="toolbar_buttons">
|
5
5
|
<%= render 'alchemy/admin/partials/site_select' %>
|
6
|
-
<%=
|
6
|
+
<%= render Alchemy::Admin::ToolbarButton.new(
|
7
7
|
icon: :plus,
|
8
8
|
label: label_title,
|
9
9
|
url: new_resource_path,
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<% end %>
|
33
33
|
<%= render 'form', language: Alchemy::Language.new(
|
34
34
|
Alchemy::Config.get(:default_language).merge(
|
35
|
-
site: Alchemy::
|
35
|
+
site: Alchemy::Current.site,
|
36
36
|
default: true,
|
37
37
|
public: true
|
38
38
|
)
|
@@ -5,12 +5,28 @@
|
|
5
5
|
<%= page_layout_missing_warning %>
|
6
6
|
<% elsif layoutpage.locked? %>
|
7
7
|
<sl-tooltip class="like-hint-tooltip" content="<%= Alchemy.t("This page is locked", name: layoutpage.locker_name) %>">
|
8
|
-
|
8
|
+
<%= render_icon "file-edit", size: "xl" %>
|
9
9
|
</sl-tooltip>
|
10
10
|
<% else %>
|
11
|
-
|
11
|
+
<%= render_icon "file-edit", size: "xl" %>
|
12
12
|
<% end %>
|
13
13
|
</div>
|
14
|
+
<div class="sitemap_sitename without-status">
|
15
|
+
<%= link_to(
|
16
|
+
layoutpage.name,
|
17
|
+
alchemy.edit_admin_page_path(layoutpage),
|
18
|
+
title: Alchemy.t(:edit_page),
|
19
|
+
class: "sitemap_pagename_link #{cycle('even', 'odd')}"
|
20
|
+
) -%>
|
21
|
+
</div>
|
22
|
+
<div class="page_infos">
|
23
|
+
<% if layoutpage.locked? %>
|
24
|
+
<span class="page_status locked">
|
25
|
+
<%= render_icon "edit", size: "1x" %>
|
26
|
+
<%= layoutpage.status_title(:locked) %>
|
27
|
+
</span>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
14
30
|
<div class="sitemap_right_tools">
|
15
31
|
<%- if can?(:configure, layoutpage) -%>
|
16
32
|
<sl-tooltip content="<%= Alchemy.t(:edit_page_properties) %>">
|
@@ -54,21 +70,5 @@
|
|
54
70
|
</sl-tooltip>
|
55
71
|
<%- end -%>
|
56
72
|
</div>
|
57
|
-
<div class="page_infos">
|
58
|
-
<% if layoutpage.locked? %>
|
59
|
-
<span class="page_status locked">
|
60
|
-
<i class="icon ri-fw ri-1x ri-edit-line"></i>
|
61
|
-
<%= layoutpage.status_title(:locked) %>
|
62
|
-
</span>
|
63
|
-
<% end %>
|
64
|
-
</div>
|
65
|
-
<div class="sitemap_sitename without-status">
|
66
|
-
<%= link_to(
|
67
|
-
layoutpage.name,
|
68
|
-
alchemy.edit_admin_page_path(layoutpage),
|
69
|
-
title: Alchemy.t(:edit_page),
|
70
|
-
class: "sitemap_pagename_link #{cycle('even', 'odd')}"
|
71
|
-
) -%>
|
72
|
-
</div>
|
73
73
|
</div>
|
74
74
|
</li>
|
@@ -1,8 +1,7 @@
|
|
1
|
-
<%= alchemy_form_for [:admin, @page],
|
1
|
+
<%= alchemy_form_for [:admin, @page], class: 'edit_page' do |f| %>
|
2
2
|
<%= f.input :name, autofocus: true %>
|
3
|
-
|
4
|
-
<%= f.
|
5
|
-
|
6
|
-
</div>
|
3
|
+
<%= render Alchemy::Admin::TagsAutocomplete.new do %>
|
4
|
+
<%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
|
5
|
+
<% end %>
|
7
6
|
<%= f.submit Alchemy.t(:save) %>
|
8
7
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="toolbar_buttons">
|
3
3
|
<%= render 'alchemy/admin/partials/site_select' %>
|
4
4
|
<%= render 'alchemy/admin/partials/language_tree_select' %>
|
5
|
-
<%=
|
5
|
+
<%= render Alchemy::Admin::ToolbarButton.new(
|
6
6
|
icon: "file-add",
|
7
7
|
url: alchemy.new_admin_page_path(language: @current_language, layoutpage: true),
|
8
8
|
hotkey: 'alt+n',
|
@@ -15,7 +15,7 @@
|
|
15
15
|
tooltip_placement: "top-start",
|
16
16
|
if_permitted_to: [:create, Alchemy::Page]
|
17
17
|
) %>
|
18
|
-
<%=
|
18
|
+
<%= render Alchemy::Admin::ToolbarButton.new(
|
19
19
|
icon: clipboard_empty?('pages') ? 'clipboard' : 'paste',
|
20
20
|
url: alchemy.admin_clipboard_path(remarkable_type: 'pages'),
|
21
21
|
dialog_options: {
|
@@ -1,17 +1,16 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
<
|
1
|
+
<%= turbo_frame_tag(legacy_page_url, class: ["row", cycle("even", "odd")]) do %>
|
2
|
+
<div class="col name"><%= legacy_page_url.urlname %></div>
|
3
|
+
<div class="col tools">
|
4
4
|
<sl-tooltip content="<%= Alchemy.t(:edit) %>">
|
5
|
-
<%=
|
5
|
+
<%= link_to render_icon(:edit),
|
6
6
|
edit_admin_legacy_page_url_path(legacy_page_url, page_id: @page.id),
|
7
|
-
|
8
|
-
class: "icon_button" %>
|
7
|
+
class: "icon_button", data: { turbo_frame: dom_id(legacy_page_url)} %>
|
9
8
|
</sl-tooltip>
|
10
9
|
<sl-tooltip content="<%= Alchemy.t(:remove) %>">
|
11
|
-
<%=
|
12
|
-
Alchemy.t('Are you sure?'),
|
10
|
+
<%= link_to render_icon(:minus),
|
13
11
|
admin_legacy_page_url_path(legacy_page_url, page_id: @page.id),
|
14
|
-
class: "icon_button"
|
12
|
+
class: "icon_button",
|
13
|
+
data: { turbo_method: :delete, turbo_confirm: Alchemy.t('Are you sure?') } %>
|
15
14
|
</sl-tooltip>
|
16
|
-
</
|
17
|
-
|
15
|
+
</div>
|
16
|
+
<% end %>
|
@@ -1,20 +1,18 @@
|
|
1
|
-
<%=
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<%= turbo_frame_tag "new_legacy_page_url" do %>
|
2
|
+
<%= alchemy_form_for [:admin, legacy_page_url] do |f| %>
|
3
|
+
<% if legacy_page_url.errors.any? %>
|
4
|
+
<%= render_message :error do %>
|
5
|
+
<%= legacy_page_url.errors.full_messages.join %>
|
6
|
+
<% end %>
|
6
7
|
<% end %>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%= render_icon(:plus) %>
|
16
|
-
<%= Alchemy.t(:add) %>
|
17
|
-
</button>
|
8
|
+
<%= hidden_field_tag :page_id, @page.id %>
|
9
|
+
<div class="inline-input">
|
10
|
+
<div class="left-column">
|
11
|
+
<%= f.text_field :urlname, placeholder: Alchemy::LegacyPageUrl.human_attribute_name(:urlname) %>
|
12
|
+
</div>
|
13
|
+
<div class="right-column">
|
14
|
+
<button><%= Alchemy.t(:add) %></button>
|
15
|
+
</div>
|
18
16
|
</div>
|
19
|
-
|
17
|
+
<% end %>
|
20
18
|
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="table">
|
2
|
+
<% if legacy_page_urls.any? %>
|
3
|
+
<header>
|
4
|
+
<div class="col name">
|
5
|
+
<%= Alchemy::LegacyPageUrl.human_attribute_name(:urlname) %>
|
6
|
+
</div>
|
7
|
+
</header>
|
8
|
+
<%= render partial: 'alchemy/admin/legacy_page_urls/legacy_page_url',
|
9
|
+
collection: legacy_page_urls %>
|
10
|
+
<% else %>
|
11
|
+
<div class="row even">
|
12
|
+
<div class="col"><%= Alchemy.t('No page links for this page found') %></div>
|
13
|
+
<div class="col tools"></div>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= turbo_stream.update "legacy_urls_label" do %>
|
2
|
+
<%= render "label", count: @page.legacy_urls.size %>
|
3
|
+
<% end %>
|
4
|
+
<%= turbo_stream.update "legacy_page_urls" do %>
|
5
|
+
<%= render "table", legacy_page_urls: @page.legacy_urls %>
|
6
|
+
<% end %>
|
7
|
+
<%= turbo_stream.update "new_legacy_page_url" do %>
|
8
|
+
<%= render 'new', legacy_page_url: @page.legacy_urls.build %>
|
9
|
+
<% end %>
|
10
|
+
<alchemy-growl>
|
11
|
+
<%= @message %>
|
12
|
+
</alchemy-growl>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "update" %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%= turbo_frame_tag(@legacy_page_url, class: "row") do %>
|
2
|
+
<div class="col p-0">
|
3
|
+
<%= form_for [:admin, @legacy_page_url] do |f| %>
|
4
|
+
<%= content_tag :div, class: @legacy_page_url.errors.any? ? "field_with_errors" : nil do %>
|
5
|
+
<%= f.text_field :urlname, placeholder: Alchemy::LegacyPageUrl.human_attribute_name(:urlname), autofocus: true %>
|
6
|
+
<% if @legacy_page_url.errors.any? %>
|
7
|
+
<small class="error">
|
8
|
+
<%= @legacy_page_url.errors.full_messages_for(:urlname).join %>
|
9
|
+
</small>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<%= hidden_field_tag :page_id, @legacy_page_url.page_id %>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
<div class="col tools">
|
16
|
+
<sl-tooltip content="<%= Alchemy.t(:save) %>">
|
17
|
+
<%= button_tag type: "submit", form: dom_id(@legacy_page_url, :edit), class: "icon_button" do %>
|
18
|
+
<%= render_icon :check %>
|
19
|
+
<% end %>
|
20
|
+
</sl-tooltip>
|
21
|
+
<sl-tooltip content="<%= Alchemy.t(:cancel) %>">
|
22
|
+
<%= link_to admin_legacy_page_url_path(@legacy_page_url, page_id: @legacy_page_url.page_id), class: "icon_button" do %>
|
23
|
+
<%= render_icon :close %>
|
24
|
+
<% end %>
|
25
|
+
</sl-tooltip>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "legacy_page_url", legacy_page_url: @legacy_page_url %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "update" %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= alchemy_form_for([:admin, node], id: "node_form") do |f| %>
|
2
2
|
<% if node.new_record? && node.root? %>
|
3
3
|
<%= f.input :menu_type,
|
4
|
-
collection: Alchemy::
|
4
|
+
collection: Alchemy::Current.language.available_menu_names.map { |n| [I18n.t(n, scope: [:alchemy, :menu_names]), n] },
|
5
5
|
include_blank: false,
|
6
6
|
input_html: { is: 'alchemy-select' } %>
|
7
7
|
<% else %>
|
@@ -32,16 +32,17 @@
|
|
32
32
|
const nodeUrl = document.getElementById("node_url")
|
33
33
|
const form = document.getElementById("node_form")
|
34
34
|
|
35
|
-
form.addEventListener("Alchemy.
|
36
|
-
const page = event.detail
|
37
|
-
nodeName.setAttribute("placeholder", page.name)
|
38
|
-
nodeUrl.value = page.url_path
|
39
|
-
nodeUrl.setAttribute("disabled", "disabled")
|
40
|
-
})
|
35
|
+
form.addEventListener("Alchemy.RemoteSelect.Change", (event) => {
|
36
|
+
const page = event.detail.added
|
41
37
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
38
|
+
if (page) {
|
39
|
+
nodeName.setAttribute("placeholder", page.name)
|
40
|
+
nodeUrl.value = page.url_path
|
41
|
+
nodeUrl.setAttribute("disabled", "disabled")
|
42
|
+
} else {
|
43
|
+
nodeName.removeAttribute("placeholder")
|
44
|
+
nodeUrl.value = ""
|
45
|
+
nodeUrl.removeAttribute("disabled")
|
46
|
+
}
|
46
47
|
})
|
47
48
|
</script>
|
@@ -0,0 +1 @@
|
|
1
|
+
(<%= count %>) <%= Alchemy::Node.model_name.human(count: count) %>
|
@@ -7,6 +7,25 @@
|
|
7
7
|
<span class="nodes_tree-left_images">
|
8
8
|
|
9
9
|
</span>
|
10
|
+
<div class="node_name">
|
11
|
+
<%= node.name || ' '.html_safe %>
|
12
|
+
<span class="node_page">
|
13
|
+
<% if node.page %>
|
14
|
+
<%= render_icon "file-3" %>
|
15
|
+
<%= link_to [:edit, :admin, node.page], title: Alchemy.t(:edit_page) do %>
|
16
|
+
<%= node.page.name %>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
19
|
+
</span>
|
20
|
+
<% if node.url %>
|
21
|
+
<span class="node_url">
|
22
|
+
<%= link_to node.url, node.url, target: '_blank', title: node.url %>
|
23
|
+
<% if node.external? %>
|
24
|
+
<%= render_icon "external-link", size: "sm" %>
|
25
|
+
<% end %>
|
26
|
+
</span>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
10
29
|
<span class="nodes_tree-right_tools">
|
11
30
|
<% if can?(:edit, node) %>
|
12
31
|
<sl-tooltip content="<%= node.root? ? Alchemy.t(:edit_menu) : Alchemy.t(:edit_node) %>">
|
@@ -52,25 +71,6 @@
|
|
52
71
|
</sl-tooltip>
|
53
72
|
<% end %>
|
54
73
|
</span>
|
55
|
-
<div class="node_name">
|
56
|
-
<%= node.name || ' '.html_safe %>
|
57
|
-
<span class="node_page">
|
58
|
-
<% if node.page %>
|
59
|
-
<i class="icon ri-file-3-line"></i>
|
60
|
-
<%= link_to [:edit, :admin, node.page], title: Alchemy.t(:edit_page) do %>
|
61
|
-
<%= node.page.name %>
|
62
|
-
<% end %>
|
63
|
-
<% end %>
|
64
|
-
</span>
|
65
|
-
<% if node.url %>
|
66
|
-
<span class="node_url">
|
67
|
-
<%= link_to node.url, node.url, target: '_blank', title: node.url %>
|
68
|
-
<% if node.external? %>
|
69
|
-
<i class="ri-external-link-line ri-sm"></i>
|
70
|
-
<% end %>
|
71
|
-
</span>
|
72
|
-
<% end %>
|
73
|
-
</div>
|
74
74
|
<% end %>
|
75
75
|
<%= content_tag :ul, class: "children #{' folded' if node.folded?}", data: { record_id: node.id } do %>
|
76
76
|
<%= render partial: 'node', collection: node.children.includes(:page, :children) %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<%= turbo_frame_tag("page_nodes") do %>
|
2
|
+
<table class="list">
|
3
|
+
<tr>
|
4
|
+
<th class="name">
|
5
|
+
<%= Alchemy::Node.model_name.human %>
|
6
|
+
</th>
|
7
|
+
<th class="tools"></th>
|
8
|
+
</tr>
|
9
|
+
<% nodes = @page.nodes.select(&:persisted?) %>
|
10
|
+
<% if nodes.length > 0 %>
|
11
|
+
<% nodes.each do |node| %>
|
12
|
+
<tr class="even">
|
13
|
+
<td><%= "#{node.ancestors.map(&:name).join(" / ")} / #{node.name}" %></td>
|
14
|
+
<td class="tools">
|
15
|
+
<sl-tooltip content="<%= Alchemy.t("delete_node") %>">
|
16
|
+
<%= link_to render_icon(:minus),
|
17
|
+
admin_node_path(node),
|
18
|
+
class: "icon_button",
|
19
|
+
data: { turbo_method: :delete, turbo_confirm: Alchemy.t('confirm_to_delete_node') } %>
|
20
|
+
</sl-tooltip>
|
21
|
+
</td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
<% else %>
|
25
|
+
<tr class="even">
|
26
|
+
<td><%= Alchemy.t('No menu node for this page found') %></td>
|
27
|
+
<td class="tools"></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
</table>
|
31
|
+
|
32
|
+
<fieldset>
|
33
|
+
<legend><%= Alchemy.t('Create node on parent:') %></legend>
|
34
|
+
|
35
|
+
<%= alchemy_form_for([:admin, @page.nodes.build], id: "new_node_form") do |f| %>
|
36
|
+
<%= f.hidden_field :page_id, value: @page.id %>
|
37
|
+
<%= f.hidden_field :language_id, value: @page.language_id %>
|
38
|
+
|
39
|
+
<%= render Alchemy::Admin::NodeSelect.new(nil, url: alchemy.api_nodes_path(language_id: @page.language_id, include: :ancestors)) do %>
|
40
|
+
<%= f.text_field :parent_id, class: 'alchemy_selectbox full_width' %>
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
<div class="submit">
|
44
|
+
<button is="alchemy-button"><%= Alchemy.t(:create_node) %></button>
|
45
|
+
</div>
|
46
|
+
<% end %>
|
47
|
+
</fieldset>
|
48
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% key = flash.keys.first %>
|
2
|
+
<alchemy-growl message="<%= flash[key] %>" type="<%= key %>"></alchemy-growl>
|
3
|
+
|
4
|
+
<%= turbo_stream.replace "page_nodes" do %>
|
5
|
+
<%= render "page_nodes" %>
|
6
|
+
<% end %>
|
7
|
+
<%= turbo_stream.update_all '[panel="nodes"]' do %>
|
8
|
+
<%= render('alchemy/admin/nodes/label', count: @page.nodes.select(&:persisted?).length) %>
|
9
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "update" %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "update" %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="toolbar_buttons">
|
7
7
|
<%= render 'alchemy/admin/partials/site_select' %>
|
8
8
|
<%= render 'alchemy/admin/partials/language_tree_select' %>
|
9
|
-
<%=
|
9
|
+
<%= render Alchemy::Admin::ToolbarButton.new(
|
10
10
|
icon: 'menu-add',
|
11
11
|
label: Alchemy.t(:create_menu),
|
12
12
|
url: alchemy.new_admin_node_path,
|
@@ -35,8 +35,8 @@
|
|
35
35
|
<%== Alchemy.t('alchemy/node', scope: :no_resource_found) %>
|
36
36
|
<% end %>
|
37
37
|
<%= render 'form', node: Alchemy::Node.new(
|
38
|
-
site: Alchemy::
|
39
|
-
language: Alchemy::
|
38
|
+
site: Alchemy::Current.site,
|
39
|
+
language: Alchemy::Current.language
|
40
40
|
),
|
41
41
|
button_label: Alchemy.t(:create) %>
|
42
42
|
</div>
|
@@ -47,10 +47,9 @@
|
|
47
47
|
as: 'text',
|
48
48
|
hint: Alchemy.t('pages.update.comma_seperated') %>
|
49
49
|
|
50
|
-
|
51
|
-
<%= f.
|
52
|
-
|
53
|
-
</div>
|
50
|
+
<%= render Alchemy::Admin::TagsAutocomplete.new do %>
|
51
|
+
<%= f.input :tag_list, input_html: { value: f.object.tag_list.join(",") } %>
|
52
|
+
<% end %>
|
54
53
|
|
55
54
|
<%= f.submit Alchemy.t(:save) %>
|
56
55
|
<% end %>
|
@@ -2,22 +2,11 @@
|
|
2
2
|
<p><%== Alchemy.t(:legacy_url_info_text) %></p>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= Alchemy::LegacyPageUrl.human_attribute_name(:urlname) %>
|
9
|
-
</th>
|
10
|
-
<th class="tools"></th>
|
11
|
-
</tr>
|
12
|
-
<%= render partial: 'alchemy/admin/legacy_page_urls/legacy_page_url',
|
13
|
-
collection: @page.legacy_urls %>
|
14
|
-
<tr class="even" id="no_page_links_notice" style="display: <%= @page.legacy_urls.any? ? 'none' : 'table-row' %>">
|
15
|
-
<td><%= Alchemy.t('No page links for this page found') %></td>
|
16
|
-
<td class="tools"></td>
|
17
|
-
</tr>
|
18
|
-
</table>
|
5
|
+
<%= turbo_frame_tag("legacy_page_urls") do %>
|
6
|
+
<%= render "alchemy/admin/legacy_page_urls/table", legacy_page_urls: @page.legacy_urls %>
|
7
|
+
<% end %>
|
19
8
|
|
20
9
|
<fieldset>
|
21
10
|
<legend><%= Alchemy.t('Add page link') %></legend>
|
22
|
-
<%= render 'alchemy/admin/legacy_page_urls/new' %>
|
11
|
+
<%= render 'alchemy/admin/legacy_page_urls/new', legacy_page_url: @page.legacy_urls.build %>
|
23
12
|
</fieldset>
|
@@ -6,22 +6,57 @@
|
|
6
6
|
<%= page_layout_missing_warning %>
|
7
7
|
{{else}}
|
8
8
|
{{#if permissions.edit_content}}
|
9
|
-
<span class="{{#unless root}}handle{{/unless}}">
|
9
|
+
<span class="page-icon {{#unless root}}handle{{/unless}}">
|
10
10
|
{{#if locked}}
|
11
11
|
<sl-tooltip content="{{locked_notice}}" class="like-hint-tooltip" placement="bottom-start">
|
12
|
-
<
|
12
|
+
<alchemy-icon name="file-edit" size="xl"></alchemy-icon>
|
13
13
|
</sl-tooltip>
|
14
14
|
{{else}}
|
15
|
-
<
|
15
|
+
<alchemy-icon name="file" size="xl"></alchemy-icon>
|
16
16
|
{{/if}}
|
17
17
|
</span>
|
18
18
|
{{else}}
|
19
19
|
<sl-tooltip content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" class="like-hint-tooltip" placement="bottom-start">
|
20
|
-
<
|
20
|
+
<alchemy-icon name="file-forbid" size="xl"></alchemy-icon>
|
21
21
|
</sl-tooltip>
|
22
22
|
{{/if}}
|
23
23
|
{{/if}}
|
24
24
|
</div>
|
25
|
+
<div class="sitemap_sitename">
|
26
|
+
{{#if permissions.edit_content}}
|
27
|
+
<%= link_to(
|
28
|
+
"{{name}}",
|
29
|
+
alchemy.edit_admin_page_path(id: "__ID__"),
|
30
|
+
title: Alchemy.t(:edit_page),
|
31
|
+
class: "sitemap_pagename_link"
|
32
|
+
) -%>
|
33
|
+
{{else}}
|
34
|
+
<%= content_tag("span", "{{name}}", class: "sitemap_pagename_link") %>
|
35
|
+
{{/if}}
|
36
|
+
</div>
|
37
|
+
<div class="sitemap_url" title="{{url_path}}">
|
38
|
+
{{ url_path }}
|
39
|
+
</div>
|
40
|
+
<div class="page_infos">
|
41
|
+
{{#if locked}}
|
42
|
+
<span class="page_status locked">
|
43
|
+
<alchemy-icon name="edit" size="1x"></alchemy-icon>
|
44
|
+
{{status_titles.locked}}
|
45
|
+
</span>
|
46
|
+
{{/if}}
|
47
|
+
{{#if restricted}}
|
48
|
+
<span class="page_status">
|
49
|
+
<alchemy-icon name="lock" size="1x"></alchemy-icon>
|
50
|
+
{{status_titles.restricted}}
|
51
|
+
</span>
|
52
|
+
{{/if}}
|
53
|
+
{{#unless public}}
|
54
|
+
<span class="page_status">
|
55
|
+
<alchemy-icon name="cloud-off" size="1x"></alchemy-icon>
|
56
|
+
{{status_titles.public}}
|
57
|
+
</span>
|
58
|
+
{{/unless}}
|
59
|
+
</div>
|
25
60
|
<div class="sitemap_right_tools">
|
26
61
|
{{#if permissions.info}}
|
27
62
|
<sl-tooltip content="<%= Alchemy.t(:page_infos) %>">
|
@@ -122,41 +157,6 @@
|
|
122
157
|
</div>
|
123
158
|
{{/if}}
|
124
159
|
</div>
|
125
|
-
<div class="page_infos">
|
126
|
-
{{#if locked}}
|
127
|
-
<span class="page_status locked">
|
128
|
-
<i class="icon ri-fw ri-1x ri-edit-line"></i>
|
129
|
-
{{status_titles.locked}}
|
130
|
-
</span>
|
131
|
-
{{/if}}
|
132
|
-
{{#if restricted}}
|
133
|
-
<span class="page_status">
|
134
|
-
<i class="icon ri-fw ri-1x ri-lock-line"></i>
|
135
|
-
{{status_titles.restricted}}
|
136
|
-
</span>
|
137
|
-
{{/if}}
|
138
|
-
{{#unless public}}
|
139
|
-
<span class="page_status">
|
140
|
-
<i class="icon ri-fw ri-1x ri-cloud-off-line"></i>
|
141
|
-
{{status_titles.public}}
|
142
|
-
</span>
|
143
|
-
{{/unless}}
|
144
|
-
</div>
|
145
|
-
<div class="sitemap_url" title="{{url_path}}">
|
146
|
-
{{ url_path }}
|
147
|
-
</div>
|
148
|
-
<div class="sitemap_sitename">
|
149
|
-
{{#if permissions.edit_content}}
|
150
|
-
<%= link_to(
|
151
|
-
"{{name}}",
|
152
|
-
alchemy.edit_admin_page_path(id: "__ID__"),
|
153
|
-
title: Alchemy.t(:edit_page),
|
154
|
-
class: "sitemap_pagename_link"
|
155
|
-
) -%>
|
156
|
-
{{else}}
|
157
|
-
<%= content_tag("span", "{{name}}", class: "sitemap_pagename_link") %>
|
158
|
-
{{/if}}
|
159
|
-
</div>
|
160
160
|
</div>
|
161
161
|
<ul id="page_{{id}}_children" class="children" data-parent-id="{{id}}">
|
162
162
|
{{> list}}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<% if can?(:edit_content, page) %>
|
4
4
|
<% if page.locked? %>
|
5
5
|
<sl-tooltip class="like-hint-tooltip" content="<%= Alchemy.t("This page is locked", name: page.locker_name) %>" placement="bottom-start">
|
6
|
-
|
6
|
+
<%= render_icon "file-edit", size: "xl" %>
|
7
7
|
</sl-tooltip>
|
8
8
|
<% else %>
|
9
|
-
|
9
|
+
<%= render_icon "file-edit", size: "xl" %>
|
10
10
|
<% end %>
|
11
11
|
<% else %>
|
12
12
|
<sl-tooltip class="like-hint-tooltip" content="<%= Alchemy.t("Your user role does not allow you to edit this page") %>" placement="bottom-start">
|
13
|
-
|
13
|
+
<%= render_icon "file-forbid", size: "xl" %>
|
14
14
|
</sl-tooltip>
|
15
15
|
<% end %>
|
16
16
|
</td>
|