Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (53 sloc) 2.013 kb
80781ac @seancribbs Import from old repository.
seancribbs authored
1 !!!
2 %html{html_attrs}
3 %head
4 %meta{"http-equiv"=>"Content-type", :content=>"text/html; charset=utf-8"}/
5 %title= @page_title || default_page_title
6 - @stylesheets.uniq.each do |stylesheet|
7 = stylesheet_link_tag stylesheet
8 - @javascripts.uniq.each do |javascript|
9 = javascript_include_tag javascript
10 /[if lt IE 7]
5ef4058 @seancribbs Correct location of pngfix.js.
seancribbs authored
11 %script{:type=>"text/javascript", :src=>"/javascripts/pngfix.js"}
80781ac @seancribbs Import from old repository.
seancribbs authored
12 - if @content_for_page_scripts
13 = javascript_tag @content_for_page_scripts
14 - if @content_for_page_css
15 %style{:type => "text/css"}= @content_for_page_css
2054d2b @jlong pulled basic layout in
jlong authored
16 = yield :meta
17 %body{:class=>body_classes.join(" ")}
80781ac @seancribbs Import from old repository.
seancribbs authored
18 #page
19 #header
2054d2b @jlong pulled basic layout in
jlong authored
20 / - if logged_in?
21 / #navigation= links_for_navigation
80781ac @seancribbs Import from old repository.
seancribbs authored
22 - if logged_in?
2054d2b @jlong pulled basic layout in
jlong authored
23 #site_links
24 = %{Logged in as #{link_to h(current_user.name), edit_admin_preferences_path}   (#{link_to "Logout", logout_path})}
25  
26 %a{:href=>"#view_site_popup", :id=>"view_site", :onclick=>"return false"} View Site
27 %ul#navigation
28 - @selected = :pages
29 - nav_tabs.each do |primary_item|
30 %li{:class=>(primary_item[@selected] ? 'current' : nil)}
31 %a{:href=>(primary_item.first.url unless primary_item.first.nil?)}
32 = primary_item.proper_name
33 - if primary_item[@selected]
34 %ul#nav_sub
35 - primary_item.each do |sub_item|
36 %li
37 %a{:href=>sub_item.url, :class=>(sub_item.name == @selected ? 'current' : nil)}>
38 %span
39 = sub_item.proper_name
40 #header_bottom
41 %div
80781ac @seancribbs Import from old repository.
seancribbs authored
42 #main
43 - if flash[:notice]
44 #notice
45 %p= flash[:notice]
46 - if flash[:error]
47 #error
48 %p= flash[:error]
49 #content
50 = find_and_preserve(yield)
51 - if @content_for_popups
52 #popups
53 = yield :popups
Something went wrong with that request. Please try again.