Skip to content

Instantly share code, notes, and snippets.

@coreymartella
Created August 18, 2009 04:12
Show Gist options
  • Save coreymartella/169531 to your computer and use it in GitHub Desktop.
Save coreymartella/169531 to your computer and use it in GitHub Desktop.
dmd layout
!!! Strict
%html
%head
%title=yield(:title) || "FIXME: Default Title"
= stylesheet_link_tag 'general', 'dashboard', 'tables', 'pagination', 'forms', 'tooltips', 'widgets', :cache => "cache/all"
= javascript_include_tag :defaults, :cache => "cache/all"
= "<!--[if IE]>#{stylesheet_link_tag 'ie', :media => 'screen'}<![endif]-->"
= javascript_include_tag *@behaviours if @behaviours
%script{:type => "text/javascript"}= "rails_authenticity_token = '#{form_authenticity_token}';"
%body
#wrapper
#head
#menus_wrapper
#main_menu
-ubermenu do |m|
-for table in ActiveRecord::Base.connection.tables - ["schema_migrations","sessions"]
-m.action table.humanize, "/#{table}", :current => controller?(table.to_sym)
#content
= yield :heading
#page{:class => yield(:sidebar) ? '' : :no_sidebar}
.inner
#flash_messages
-unless flash.keys.empty?
%ul.flash_messages
- flash.each do |key, value|
%li{:class => key}
%span.ico
%strong.flash_message= value
= yield
#footnotes_holder
-if yield :sidebar
#sidebar
.inner= yield :sidebar
#footer
#footer_inner
%dl.copy
%dt
%strong FIXME Application Name
%dd="&copy; 2008-#{Time.now.year} DMD All Rights Reserved."
/ / -admin_content do
/ / %dl.quick_links
/ / %dt
/ / %strong Quick Links:
/ / %dd
/ / %ul
/ / %li=link_to 'Stuff', '/'
/ / %li.list=link_to 'Stuff','/'
/ %dl.help_links
/ %dt
/ %strong Need Help?
/ %dd
/ %ul
/ %li.last= link_to "Support", 'http://support.pickupyourprofits.com/osticket'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment