Sha256: e2d98a56600a399c13065e5e32a7f2985978193f5611747ad09adc573604faac

Contents?: true

Size: 1.28 KB

Versions: 17

Compression:

Stored size: 1.28 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") %>">
    <%= link_to_confirm_dialog(
      render_icon('delete-bin-2'),
      Alchemy.t(:confirm_to_delete_element),
      alchemy.admin_element_path(element),
      class: "icon_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

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/elements/_toolbar.html.erb