Sha256: b9fd8a05c6f96a72c9011e0f053d988cafcb3033f9737846f2de43731e29824f
Contents?: true
Size: 1.54 KB
Versions: 45
Compression:
Stored size: 1.54 KB
Contents
<% page ||= index_branch has_children = page.children.present? has_siblings = page.siblings.present? branch_open = (session[:cms_page_tree] || []).member?(page.id.to_s) || page.root? category_view = params[:category].present? %> <li id='<%= dom_id(page) %>'> <div class='item'> <div class='toggle <%= 'open' if branch_open %>'> <%= if !category_view && has_children && !page.root? link_to span_tag(t('.toggle')), toggle_branch_cms_admin_site_page_path(@site, page), :remote => true end %> </div> <div class='icon'> <% if !category_view && has_siblings %> <div class='dragger'><span><%= t('cms.views.pages.drag') %></span></div> <% end %> </div> <div class='action_links'> <%= link_to t('.add_child_page'), new_cms_admin_site_page_path(@site, :parent_id => page.id) %> <%= link_to t('.edit'), edit_cms_admin_site_page_path(@site, page) %> <%= link_to t('.delete'), cms_admin_site_page_path(@site, page), :method => :delete, :confirm => t('.are_you_sure') %> </div> <div class='label'> <%= link_to page.label, edit_cms_admin_site_page_path(@site, page) %> <%= render :partial => '/cms_admin/categories/categories', :object => page %> <div class='sublabel'> <%= link_to page.url, page.full_path, :target => '_blank' %> </div> </div> </div> <% if !category_view && has_children && branch_open %> <ul> <%= render :partial => 'index_branch', :collection => page.children %> </ul> <% end %> </li>
Version data entries
45 entries across 45 versions & 1 rubygems