Sha256: 2f08fd63a6abe4329c129bd7fd3a785cdf7af658d49020ab9572a6c7b4baed4c

Contents?: true

Size: 1.41 KB

Versions: 19

Compression:

Stored size: 1.41 KB

Contents

<% remarkable_type = "elements" %>
<div class="element-toolbar">
  <sl-tooltip placement="top-start" content="<%= Alchemy.t(:copy_element) %>">
    <%= link_to(
      render_icon("file-copy"),
      alchemy.insert_admin_clipboard_path(remarkable_type: remarkable_type, remarkable_id: element.id),
      remote: true,
      method: :post,
      class: "icon_button"
    ) %>
  </sl-tooltip>
  <sl-tooltip content="<%= Alchemy.t(:cut_element) %>">
    <%= link_to(
      render_icon("scissors-cut"),
      alchemy.insert_admin_clipboard_path(remarkable_type: remarkable_type, remarkable_id: element.id, remove: true),
      remote: true,
      method: :post,
      class: "icon_button"
    ) %>
  </sl-tooltip>
  <sl-tooltip content="<%= Alchemy.t("Delete element") %>">
    <alchemy-delete-element-button
      href="<%= alchemy.admin_element_path(element) %>"
      message="<%= Alchemy.t(:confirm_to_delete_element) %>"
    >
      <button type="button" class="icon_button" data-turbo="false">
        <%= render_icon('delete-bin-2') %>
      </button>
    </alchemy-delete-element-button>
  </sl-tooltip>
  <sl-tooltip content="<%= element.public? ? Alchemy.t(:hide_element) : Alchemy.t(:show_element) %>" placement="top-end">
    <alchemy-publish-element-button>
      <sl-switch <%= element.public? ? nil : "checked" %> size="small">
        <%= t(".hide") %>
      </sl-switch>
    </alchemy-publish-element-button>
  </sl-tooltip>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-7.4.2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.6 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.9 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.4.1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.4.0 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.5 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.8 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.4 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/elements/_toolbar.html.erb