This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/views/layout/application.html.haml

49 lines
1.8 KiB
Plaintext

!!! 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" }
%script{ :src => "/javascripts/prototype_and_effects_minimized.js", :type => "text/javascript" }
%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]
#header_image
%a{ :href => '/', :title => 'B.A. Home' }
%img{ :src => '/images/binaryattraction.png', :alt => 'Binary Attraction' }
- if logged_in?
#header_user
%p
Welcome,
== <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' }
- if administrator?
%br
%a{ :href => url(:moderate_photos) } Moderate
#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
|
#content
= catch_content :for_layout
#footer
&copy; 2008
%a{ :href => 'http://penguincoder.org' } penguincoder
| Usage of this site requires
%a{ :href => '/acceptable_use' } acceptable use policy
|
%a{ :href => '/disclaimer' } disclaimer