<% cbNumColumns = 0; cbColWidth = 170; cbColHeight = 300; cbBorderWidth = 1; cbColWidthFull = 172; -%> <%= javascript_tag <<-EOF dojo.require("dojo.widget.*"); dojo.require("dojo.widget.Dialog"); cbColWidth = '#{cbColWidth}px'; cbColHeight = '#{cbColHeight}px'; cbBorderWidth = '#{cbBorderWidth}px'; cbColWidthFull = '#{cbColWidthFull}'; EOF %>

CMS » Pages

<%= flash_message %>
<%= form_tag('', :id => "delete_form", :style => "display: none") do %> <% end %>
<%- @page_levels.each_with_index do |name, i| -%> <%- if !name.blank? @path << '/' if !@path.blank? @path << name end @parent = @page @page = CmsPage.find_by_path @path @page_level = i @pages = @parent.children if @parent break_flag = false if !@page if @parent && @parent.children.first @page = @parent.children.first elsif @parent @page = @parent else @page = CmsPage.find(:first) end break_flag = true end -%>
; border-style: solid; border-color: gray;"> <%- if i == 0 -%> <%= render :partial => 'list_page', :locals => { :list_page => CmsPage.find(1) } %> <%- else -%> <%= render :partial => 'list_pages' %> <%- end -%> <%= javascript_tag "$('cb_item_#{@parent.id}').className = 'cb_item cb_item_selected';" if @parent %>
<%- break if break_flag -%> <%- end -%>
<%- list_page = @page -%> <%= render :partial => '/imagine_cms/dialogs' %>