Sha256: ded0eaa555da2c8b8333404112d6fa3f91a2bf4c14465eb35a398649b8e4ddec

Contents?: true

Size: 627 Bytes

Versions: 22

Compression:

Stored size: 627 Bytes

Contents

<%
icon = nil
icon ||= 'folder' unless page.leaf?
icon ||= 'edit' unless page.published?
icon ||= 'file'
icon = "#{icon} attenuate" unless page.show_in_navigation?
-%>
<%= 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=\"fa fa-#{ icon }\"></i><span> #{page.title}</span>".html_safe, edit_page_path(page.id), :class => "edit-page" %>
  <%= link_to "<i class=\"fa fa-plus\"></i>".html_safe, new_page_path(:page => {:parent_id => page.id}), :class => "add-page" %>
  <i class="fa fa-reorder handle"></i>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

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