Sha256: 177626c87ffe8c9480ea7f5c82539d3f148f32d660b9201f650e79788a5b6d25

Contents?: true

Size: 805 Bytes

Versions: 4

Compression:

Stored size: 805 Bytes

Contents

<%= content_tag :li, :id => dom_id(record) do -%>
  <div> 
    <%= link_to record.send(abstract_model.config.object_label_method), manage_structure_path(record) %>
    
    <%= link_to '', edit_path(abstract_model.parent_hash.merge(:id => record.id)), :class => "btn_edit", :id => dom_id(record, :edit) if can?(:edit, record) %>
    
    <%= link_to '', delete_path(abstract_model.parent_hash.merge(:id => record.id)), :method => :delete, :confirm => t("manage.confirm_delete"), :class => "btn_del", :id => dom_id(record, :delete) if can?(:delete, record) %>
    
    <a href="#" class="dnd_link"></a>
  </div>

  <% unless record.descendants_count.zero? -%>
    <ul class="children">
      <%= render :partial => apply_scope("record"), :collection => record.children %>
    </ul>
  <% end -%>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sunrise-cms-0.4.0 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.3.3 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.3.2 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.3.1 app/views/sunrise/manager/structures/tree/_record.html.erb