Sha256: c3d56e34b568c38efe624a748fcccae85a677f03b2702b1d3a74477a6a69c577

Contents?: true

Size: 1.5 KB

Versions: 19

Compression:

Stored size: 1.5 KB

Contents

<%= tag.div(**html_attributes) do %>
  <div class="tree" data-invisible="<%= !item.visible? %>">
    <div role="toolbar" data-tree-accordion-controls>
      <span role="button" value="collapse" data-action="click-><%= CONTAINER_CONTROLLER %>#collapse" title="Collapse tree"></span>
      <span role="button" value="expand" data-action="click-><%= CONTAINER_CONTROLLER %>#expand" title="Expand tree"></span>
    </div>

    <span role="img" value="<%= item.model_name.param_key %>" title="Type"></span>
    <h4 class="heading" title="<%= item.heading %>"><%= item.heading %></h4>
    <span role="img" value="invisible" title="Hidden"></span>
  </div>

  <div class="item-background <%= item.background %>"></div>

  <div role="toolbar" data-tree-controls>
    <span role="button" value="de-nest" data-action="click-><%= CONTAINER_CONTROLLER %>#deNest" title="Outdent"></span>
    <span role="button" value="nest" data-action="click-><%= CONTAINER_CONTROLLER %>#nest" title="Indent"></span>
    <%= kpop_link_to("", edit_item_link, role: "button", title: "Edit", value: "edit") %>
    <span role="button" value="remove" data-action="click-><%= CONTAINER_CONTROLLER %>#remove" title="Remove"></span>
  </div>

  <input autocomplete="off" type="hidden" name="<%= attributes_scope %>[id]" value="<%= item.id %>">
  <input autocomplete="off" type="hidden" name="<%= attributes_scope %>[depth]" value="<%= item.depth %>">
  <input autocomplete="off" type="hidden" name="<%= attributes_scope %>[index]" value="<%= item.index %>">
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katalyst-content-2.8.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.7.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.7.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.6.2 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.6.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.6.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.5.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.5.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.4.2 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.4.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.3.2 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.3.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.3.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.2.0 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.1.4 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.1.3 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.1.2 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.1.1 app/components/katalyst/content/editor/item_component.html.erb
katalyst-content-2.1.0 app/components/katalyst/content/editor/item_component.html.erb