Sha256: eb82bbb51b0ff64f6df49db94839b639a86f4ed3ad16859767705602e99f2445

Contents?: true

Size: 1.65 KB

Versions: 19

Compression:

Stored size: 1.65 KB

Contents

<%= content_for :html_head do %>
  <%= stylesheet_link_tag 'cms/sitemap' %>
  <%= javascript_include_tag 'cms/sitemap' %>  
<% end %>

<% page_title "Sitemap" %>

<%= content_for :functions do %>
  <h1>Sitemap</h1>
  <%= link_to span_tag("Edit Page"), '#', :id => 'edit-button', :class => "button disabled left" %>
  <%= link_to span_tag("Edit Properties"), '#', :id => 'properties-button', :class => "button disabled right" %>
  <%= link_to span_tag("Add Page"), '#', :id => 'add-page-button', :class => "button disabled spacer left" %>
  <%= link_to span_tag("Add Section"), '#', :id => 'add-section-button', :class => "button disabled middle" %>
  <%= link_to span_tag("Add Link"), '#', :id => 'add-link-button', :class => "button disabled right" %>
  <%= delete_button %>
  <br clear="all" />
<% end %>

<div id="sitemap">
  <ul id="root_<%= @section.id %>" class="root" style="padding-left: 0">
    <li>
      <%= render :partial => "node", :locals => {
              :node => @section,
              :node_type => "section",
              :icon => action_icon(:home),
              :display => true
      } %>
    </li>
  </ul>
  <%
     access_status = access_status(@section, @public_sections)
     @sitemap[@root_section_node].keys.each do |child_section_node| %>
      <%= render :partial => child_section_node.node.partial_for,
                 :locals => {:access_icon => access_status,
                             :node => child_section_node.node,
                             :parent => @section,
                             :child_hash => @sitemap[@root_section_node],
                             :key => child_section_node
                 }
      %>
  <% end %>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.6 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.5 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.4 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.3 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.2 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.1 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.0 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.0.rc3 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.0.rc2 app/views/cms/section_nodes/index.html.erb
browsercms-3.5.0.rc1 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.2 app/views/cms/section_nodes/index.html.erb
browsercms-3.3.4 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.2.rc1 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.1 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.0 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.0.rc2 app/views/cms/section_nodes/index.html.erb
browsercms-3.4.0.rc1 app/views/cms/section_nodes/index.html.erb
browsercms-3.3.3 app/views/cms/section_nodes/index.html.erb