Sha256: b7273ee058a8dfd5923d4053f930be9042feb9d939967c03212bbd42648f2fd1
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 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) %> <%= 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), :style => "right:-20px;" if can?(:delete, 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, :data => { :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/views/sunrise/manager/structures/tree/_record.html.erb |