2008-10-01 02:19:35 -04:00
|
|
|
!!! Strict
|
|
|
|
%html{html_attrs{'en-us'}}
|
|
|
|
%head
|
|
|
|
%title Binary Attraction
|
|
|
|
%meta{ 'http-equiv' => "content-type", :content => "text/html; charset=utf8" }
|
|
|
|
%link{ :href => "/stylesheets/ba.css", :rel => "stylesheet", :type => "text/css", :media => "screen", :charset => "utf-8" }
|
2008-10-11 04:22:58 -04:00
|
|
|
%script{ :src => "/javascripts/prototype_and_effects_minimized.js", :type => "text/javascript" }
|
2008-10-01 02:19:35 -04:00
|
|
|
%script{ :src => "/javascripts/application.js", :type => "text/javascript" }
|
|
|
|
- unless flash.keys.empty?
|
|
|
|
:javascript
|
|
|
|
hide_flashes();
|
|
|
|
%body
|
|
|
|
#container
|
|
|
|
- unless flash.keys.empty?
|
|
|
|
#flash_container
|
|
|
|
- flash.keys.each do |key|
|
|
|
|
%div{ :class => key }= flash[key]
|
2008-10-11 04:22:58 -04:00
|
|
|
#header_image
|
|
|
|
%a{ :href => '/', :title => 'B.A. Home' }
|
|
|
|
%img{ :src => '/images/binaryattraction.png', :alt => 'Binary Attraction' }
|
2008-10-11 18:37:43 -04:00
|
|
|
- if logged_in?
|
|
|
|
#header_user
|
|
|
|
%p
|
2008-10-15 02:31:50 -04:00
|
|
|
Welcome,
|
2008-10-11 18:37:43 -04:00
|
|
|
== <strong>#{current_user.user_name}</strong>
|
|
|
|
%br
|
|
|
|
%a{ :href => url(:delete_session, :id => session[:user_id]), :title => 'Log out of B.A.' }
|
|
|
|
Log out
|
|
|
|
%img{ :src => '/images/system-log-out.png' }
|
2008-10-15 02:31:50 -04:00
|
|
|
- if administrator?
|
|
|
|
%br
|
|
|
|
%a{ :href => url(:moderate_photos) } Moderate
|
2008-10-17 02:03:48 -04:00
|
|
|
%br
|
|
|
|
%a{ :href => url(:users) } Voters
|
2008-10-11 04:22:58 -04:00
|
|
|
#tool_bar
|
|
|
|
- menu_items.each do |menu_item|
|
|
|
|
%a{ :href => menu_item[:href], :title => menu_item[:title] }
|
|
|
|
%img{ :src => menu_item[:img] }
|
|
|
|
= menu_item[:name]
|
|
|
|
- if menu_item != menu_items.last
|
2008-10-01 02:19:35 -04:00
|
|
|
|
|
|
|
|
#content
|
|
|
|
= catch_content :for_layout
|
|
|
|
#footer
|
|
|
|
© 2008
|
|
|
|
%a{ :href => 'http://penguincoder.org' } penguincoder
|
|
|
|
| Usage of this site requires
|
|
|
|
%a{ :href => '/acceptable_use' } acceptable use policy
|
2008-10-11 18:37:43 -04:00
|
|
|
|
|
|
|
|
%a{ :href => '/disclaimer' } disclaimer
|