Sha256: 0226d187b25d08ce8b6cc3e9bae7706952753009c2bf7088f036188fd2230ac6

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 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='record<%= " #{branch}" %>' id="<%= dom_id(page) -%>">
  <div class='clearfix'>
    <span class='title'>
      <%= h page.title %>
      <%= "<em>(hidden)</em>" unless page.show_in_menu? %>
      <%= "<em>(draft)</em>" if page.draft? %>
    </span>

    <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),
                  :class => "cancel confirm-delete",
                  :title => "Remove this page forever" if page.deletable? %>
    </span>
  </div>
  <% if (children = page.children).any? -%>
    <ul class='nested'>
      <%= render :partial => 'page', :collection => children %>
    </ul>
  <% end -%>
</li>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/pages/app/views/admin/pages/_page.html.erb
refinerycms-0.9.6.33 vendor/plugins/pages/app/views/admin/pages/_page.html.erb
refinerycms-0.9.6.32 vendor/plugins/pages/app/views/admin/pages/_page.html.erb
refinerycms-0.9.6.31 vendor/plugins/pages/app/views/admin/pages/_page.html.erb
refinerycms-0.9.6.30 vendor/plugins/pages/app/views/admin/pages/_page.html.erb