Sha256: e1870b420e5694a68f44a5cc11322338ed8162d52e45a82dd996cb493705aa13

Contents?: true

Size: 829 Bytes

Versions: 3

Compression:

Stored size: 829 Bytes

Contents

<% cms_layout ||= index_branch %>

<li id='cms_layout_<%= cms_layout.id %>'>
  <div class='item'>
    <div class='icon'>
      <% if cms_layout.siblings.size > 0 %>
        <div class='dragger'></div>
      <% end %>
    </div>
    <div class='action_links'>
      <%= link_to 'Add Child Layout', new_cms_admin_layout_path(:parent_id => cms_layout.id) %>
      <%= link_to 'Edit', edit_cms_admin_layout_path(cms_layout) %>
      <%= link_to 'Delete', cms_admin_layout_path(cms_layout), :method => :delete, :confirm => 'Are you sure?' %>
    </div>
    <div class='label'>
      <%= link_to cms_layout.label, edit_cms_admin_layout_path(cms_layout) %>
    </div>
  </div>
  <% if cms_layout.children.present? %>
    <ul>
      <%= render :partial => 'index_branch', :collection => cms_layout.children %>
    </ul>
  <% end %>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.2 app/views/cms_admin/layouts/_index_branch.html.erb
comfortable_mexican_sofa-1.0.1 app/views/cms_admin/layouts/_index_branch.html.erb
comfortable_mexican_sofa-1.0.0 app/views/cms_admin/layouts/_index_branch.html.erb