Sha256: c14b27dbd10e3259b90aab8c2dc49fdaf4c98dc974432f4a2780b15375462762

Contents?: true

Size: 689 Bytes

Versions: 21

Compression:

Stored size: 689 Bytes

Contents

<li class="back"><%= link_to "<span class=\"btn btn-default btn-xs\"><i class=\"fa fa-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=\"fa fa-folder\"></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=\"fa fa-plus\"></i> Add Page".html_safe, new_page_path(:page => { :parent_id => @parent.id }) %></li>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/views/smithy/pages/_parent.html.erb
smithycms-0.7.3 app/views/smithy/pages/_parent.html.erb
smithycms-0.7.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.7.1 app/views/smithy/pages/_parent.html.erb
smithycms-0.7.0 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.10 app/views/smithy/pages/_parent.html.erb
smithycms-0.5.99.3 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.9 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.7 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.6 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.5 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.4 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.3 app/views/smithy/pages/_parent.html.erb
smithycms-0.5.99.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.5.99.1 app/views/smithy/pages/_parent.html.erb
smithycms-0.5.99 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.1 app/views/smithy/pages/_parent.html.erb
smithycms-0.5.2 app/views/smithy/pages/_parent.html.erb
smithycms-0.6.0 app/views/smithy/pages/_parent.html.erb