Sha256: 1fa9f83e53b2045125ef4ba7f9689ba5e11e664dea601676b6e2408352dfdfac

Contents?: true

Size: 1.31 KB

Versions: 18

Compression:

Stored size: 1.31 KB

Contents

<%
  branch = if (!page.parent_id.nil? and page === page.self_and_siblings.last) or (page != @pages.first and page === @pages.last)
    "branch_end"
  elsif page === @pages.first
    "branch_start"
  end
-%>
<li class='clearfix record<%= " #{branch}" %>' id="<%= dom_id(page) -%>">
  <div class='clearfix'>
    <span class='actions'>
    <%= link_to refinery_icon_tag('application_go.png'), page.url, :target => "_blank",
                 :title => "View this page live <br/><em>(opens in a new window)</em>" %>
    <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_path(page),
                 :title => "Edit this page" %>
    <%= link_to refinery_icon_tag('delete.png'), admin_page_path(page),
                          :confirm => "Are you sure you want to delete '#{page.title}'?",
                          :class => "cancel", :method => :delete,
                          :title => "Remove this page forever" if page.deletable? %>
    </span>
    <%= h page.title %> <%= "<em>(hidden)</em>" unless page.show_in_menu? %>
    <%= "<em>(draft)</em>" if page.draft? %>
  </div>
  <ul<%= " class='#{page.children.empty? ? 'empty' : 'nested'}'" %>>
  <% page.children.each do |child| %>
    <%= render :partial => 'list', :locals => {:page => child} %>
  <% end %>
    <span class='spacing'>&nbsp;</span>
  </ul>
</li>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
refinerycms-0.9.5.31 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.30 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.29 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.28 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.27 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.26 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.25 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.24 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.23 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.22 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.21 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.20 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.19 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.18 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.17 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.16 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.15 vendor/plugins/pages/app/views/admin/pages/_list.html.erb
refinerycms-0.9.5.14 vendor/plugins/pages/app/views/admin/pages/_list.html.erb