Sha256: 3a2abf90399a8626e5eb4cebe92f3c0cef64dc726126189a8456047e11f6ac6d

Contents?: true

Size: 1.57 KB

Versions: 36

Compression:

Stored size: 1.57 KB

Contents

<% remarkable_type = element.class.name.demodulize.underscore.pluralize %>
<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

36 entries across 36 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.5 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.5.1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.4.5 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.4 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.3 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.0 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.0.rc1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.0.beta2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.1.0.beta1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.0 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.0.rc2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.0.rc1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.0.beta2 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-5.0.0.beta1 app/views/alchemy/admin/elements/_element_toolbar.html.erb
alchemy_cms-4.6.1 app/views/alchemy/admin/elements/_element_toolbar.html.erb