Sha256: 551d8e0b873bce1bbf4f3560f9b47a46246f8805a8b1a4ef6d79831e028f4322
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 KB
Contents
<% linkable = picture_editor.settings[:linkable] != false %> <% croppable = picture_editor.allow_image_cropping? %> <%= content_tag "sl-tooltip", content: Alchemy.t("Edit Picturemask"), placement: "top-start", disabled: !croppable do %> <%= link_to_dialog render_icon(:crop), alchemy.crop_admin_ingredient_path(picture_editor.ingredient, { crop_from_form_field_id: picture_editor.form_field_id(:crop_from), crop_size_form_field_id: picture_editor.form_field_id(:crop_size), picture_id: picture_editor.picture&.id }), { size: "1080x615", title: Alchemy.t("Edit Picturemask"), image_loader: false, padding: false }, { class: croppable ? "crop_link icon_button" : "disabled crop_link icon_button" , tabindex: croppable ? nil : "-1", onclick: "return false" } %> <% end %> <%= content_tag "sl-tooltip", content: picture_editor.picture ? Alchemy.t(:swap_image) : Alchemy.t(:insert_image) do %> <%= link_to_dialog render_icon("image-add"), alchemy.admin_pictures_path( form_field_id: picture_editor.form_field_id(:picture_id) ), { title: Alchemy.t(:choose_image), size: "800x600", padding: false }, class: "icon_button" %> <% end %> <% if linkable %> <%= render "alchemy/ingredients/shared/link_tools", ingredient_editor: picture_editor %> <% else %> <span class="disabled"><%= render_icon("link", style: "m") %></span> <span class="disabled"><%= render_icon("link-unlink", style: "m") %></span> <% end %> <%= content_tag "sl-tooltip", content: Alchemy.t(:edit_image_properties), placement: "top-end" do %> <%= link_to_dialog render_icon(:edit), alchemy.edit_admin_ingredient_path(id: picture_editor.id), { title: Alchemy.t(:edit_image_properties), size: "380x255" }, class: "icon_button" %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-7.1.0.pre.b1 | app/views/alchemy/ingredients/shared/_picture_tools.html.erb |