Sha256: a17b5ecbfd0dd2d0b33fd9e86e485045183c16b653ff31c3e258cad168953ea0

Contents?: true

Size: 593 Bytes

Versions: 9

Compression:

Stored size: 593 Bytes

Contents

<%= content_tag :li, :id => dom_id(page), :class => ["clearfix child", (params[:id].to_i == page.id ? "active" : nil)].compact.join(' ') do %>
  <%= link_to "<i class=\"icon-#{ page.leaf? ? (page.published? ? 'file' : 'edit') : 'folder-close'}\"></i><span>#{page.title}</span>".html_safe, edit_page_path(page.id), :class => "edit-page" %>
  <%#= raw '<i class="icon-caret-right pull-right"></i>' unless page.leaf? %>
  <%= link_to "<i class=\"icon-plus\"></i>".html_safe, new_page_path(:page => {:parent_id => page.id}), :class => "add-page" %>
  <i class="icon-reorder handle"></i>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

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