60 lines
2.4 KiB
Plaintext
60 lines
2.4 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.js", :type => "text/javascript" }
|
||
|
%script{ :src => "/javascripts/effects.js", :type => "text/javascript" }
|
||
|
%script{ :src => "/javascripts/dragdrop.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
|
||
|
%span#header_image
|
||
|
%a{ :href => '/', :title => 'B.A. Home' }
|
||
|
%img{ :src => '/images/binaryattraction.png', :alt => 'Binary Attraction' }
|
||
|
#tool_bar
|
||
|
- if logged_in?
|
||
|
%a{ :href => url(:new_vote), :title => 'Vote' }
|
||
|
%img{ :src => '/images/vote.png' }
|
||
|
Vote
|
||
|
|
|
||
|
%a{ :href => url(:new_photo), :title => 'Upload a photo' }
|
||
|
%img{ :src => '/images/camera-photo.png' }
|
||
|
Upload a photo
|
||
|
|
|
||
|
%a{ :href => url(:favorite, :id => session[:user_id]), :title => 'Favorites' }
|
||
|
%img{ :src => '/images/emblem-favorite.png' }
|
||
|
Favorites
|
||
|
|
|
||
|
%a{ :href => url(:stats), :title => 'Stats' }
|
||
|
%img{ :src => '/images/utilities-system-monitor.png' }
|
||
|
Check Stats
|
||
|
|
|
||
|
%a{ :href => url(:delete_session, :id => session[:user_id]), :title => 'Log out' }
|
||
|
%img{ :src => '/images/system-log-out.png' }
|
||
|
Log out
|
||
|
- else
|
||
|
%a{ :href => url(:new_user), :title => 'Sign Up' }
|
||
|
%img{ :src => '/images/system-users.png' }
|
||
|
Sign Up
|
||
|
|
|
||
|
%a{ :href => url(:new_session), :title => 'Log In' }
|
||
|
%img{ :src => '/images/system-lock-screen.png' }
|
||
|
Log In
|
||
|
#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
|