Sha256: f410766981de42555781322f08a3fee32441dbe5549121d5f8f3b6856602f1e7

Contents?: true

Size: 1.54 KB

Versions: 60

Compression:

Stored size: 1.54 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_confirm_dialog(
        render_icon('trash-alt'),
        Alchemy.t(:confirm_to_delete_element),
        alchemy.admin_element_path(element),
        class: "icon_button"
      ) -%>
      <label><%= Alchemy.t("Delete 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

60 entries across 60 versions & 1 rubygems

Version Path
alchemy_cms-7.0.0 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.6 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.5 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.14 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.4 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.13 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.3 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.2 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.1 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.1.0 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.12 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.11 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.10 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.9 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.8 app/views/alchemy/admin/elements/_toolbar.html.erb
alchemy_cms-6.0.7 app/views/alchemy/admin/elements/_toolbar.html.erb