Sha256: e4fad24bc232696f9699af9af12d97b7ad266fc45d90617e9527e8aa397ea349

Contents?: true

Size: 1.53 KB

Versions: 37

Compression:

Stored size: 1.53 KB

Contents

<% remarkable_type = "elements" %>
<div class="element-toolbar">
  <span class="element_tools">
    <div class="button_with_label">
      <%= link_to(
        render_icon(:clone),
        alchemy.insert_admin_clipboard_path(remarkable_type: remarkable_type, remarkable_id: element.id),
        remote: true,
        method: :post,
        class: "icon_button"
      ) %>
      <label><%= Alchemy.t(:copy_element) %></label>
    </div>
    <div class="button_with_label">
      <%= link_to(
        render_icon(:cut),
        alchemy.insert_admin_clipboard_path(remarkable_type: remarkable_type, remarkable_id: element.id, remove: true),
        remote: true,
        method: :post,
        class: "icon_button"
      ) %>
      <label><%= Alchemy.t(:cut_element) %></label>
    </div>
    <div class="button_with_label">
      <%= link_to(
        render_icon('trash-alt'),
        alchemy.trash_admin_element_path(element),
        method: :delete,
        class: "icon_button",
        remote: true
      ) -%>
      <label><%= Alchemy.t("trash element") %></label>
    </div>
    <div class="button_with_label publish-element-button">
      <%= link_to(
        render_icon(element.public? ? 'eye-slash' : 'eye'),
        alchemy.publish_admin_element_path(id: element.id),
        remote: true,
        method: :patch,
        class: "icon_button"
      ) %>
      <% if element.public? %>
        <label><%= Alchemy.t(:hide_element) %></label>
      <% else %>
        <label><%= Alchemy.t(:show_element) %></label>
      <% end %>
    </div>
  </span>
</div>

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.10 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.8 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.7 app/views/alchemy/admin/elements/_element_toolbar.html.erb