Sha256: 8ba454e9e7f27a13410d9f0fabb8fdd6deb03dd59d6fcece4a636ca23d43469f

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

<%= content_tag :li, :id => dom_id(record) do -%>
  <div> 
    <%= link_to record.send(abstract_model.config.object_label_method), manage_structure_path(record) %>

    <% if record.root? %>
      <div class="first_structure_icons">
        <%= link_to '', edit_path(abstract_model.parent_hash.merge(:id => record.id)), :class => "btn_edit", :id => dom_id(record, :edit) if can?(:edit, record, :context => :sunrise) %>
      </div>
    <% else %>
      <%= link_to '', edit_path(abstract_model.parent_hash.merge(:id => record.id)), :class => "btn_edit", :id => dom_id(record, :edit) if can?(:edit, record, :context => :sunrise) %>
        
        <%= 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, :context => :sunrise) %>
    <% end %>
    
    <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

9 entries across 9 versions & 1 rubygems

Version Path
sunrise-cms-0.6.11 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.10 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.9 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.8 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.7 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.6 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.5 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.4 app/views/sunrise/manager/structures/tree/_record.html.erb
sunrise-cms-0.6.3 app/views/sunrise/manager/structures/tree/_record.html.erb