Sha256: 6f6e780a7d64dde352ef21561053c4f4c03c2454504924f37f6b94d1d13bbf88

Contents?: true

Size: 694 Bytes

Versions: 9

Compression:

Stored size: 694 Bytes

Contents

<li class="back"><%= link_to "<span class=\"btn btn-mini btn-inverse\"><i class=\"icon-caret-left\"></i> Back to #{@parent.title}</span>".html_safe, edit_page_path(@parent.id) %></li>
<%- if !@page.persisted? || @page.leaf? -%>
  <%= render @parent.children %>
<% elsif @page.persisted? %>
  <li<%= ' class="active"'.html_safe if params[:id].to_i == @page.id %>><%= link_to "<i class=\"icon-folder-close\"></i> #{@page.title}".html_safe, edit_page_path(@page.id) %></li>
  <%= render @page.children %>
<% end %>
<% if @page.persisted? %>
  <li class="add-page"><%= link_to "<i class=\"icon-plus\"></i> Add Page".html_safe, new_page_path(:page => { :parent_id => @parent.id }) %></li>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
smithycms-0.4.5 app/views/smithy/pages/_parent.html.erb
smithycms-0.4.4 app/views/smithy/pages/_parent.html.erb
smithycms-0.4.3 app/views/smithy/pages/_parent.html.erb
smithycms-0.4.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.4.1 app/views/smithy/pages/_parent.html.erb
smithycms-0.4.0 app/views/smithy/pages/_parent.html.erb
smithycms-0.0.3 app/views/smithy/pages/_parent.html.erb
smithycms-0.0.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.0.1 app/views/smithy/pages/_parent.html.erb