!!! Strict %html{ :xmlns => "http://www.w3.org/1999/xhtml" } %head %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" } %meta{ :name => "generator", :content => "adva-cms - Open source content management platform" } %title \#{@site.name}: Admin = controller.controller_name = stylesheet_link_tag "adva_cms/admin" -# FIXME extract to subprojects = stylesheet_link_tag "adva_activity/admin/activities.css" if defined?(AdvaActivity) = stylesheet_link_tag "adva_comments/admin/comments.css" if defined?(Comment) = stylesheet_link_tag "admin.css" # super project can put override styles here = yield :css = yield :before_javascript_include = javascript_include_tag "adva_cms/application" = javascript_include_tag "admin" -# FIXME extract to subprojects - unless Rails.env.test? # fckeditor screws up tests = javascript_include_tag "adva_fckeditor/setup_fckeditor.js" = javascript_tag "window._auth_token = #{form_authenticity_token.inspect}" = csrf_meta_tags = yield :js = yield :head %body = menu.build(self).root.render(:id => 'top') = render :partial => 'admin/shared/header' #page = yield :form if content_for :form .main = menu.root.find(:main).try(:render, :id => 'main_menu') = render :partial => 'shared/flash' #content = yield #sidebar.right = yield :sidebar = raw('') if content_for :form #left.collapsed