1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/layouts/application.html.haml
2010-11-05 18:45:05 -04:00

55 lines
1.7 KiB
Text

!!! 5
%html
%head
%title Dress to Impress
= stylesheet_link_tag "compiled/screen"
= javascript_include_tag "http://#{RemoteImpressHost}/assets/js/analytics.js"
%body{:class => body_class}
#container
= yield :before_flashes
= flashes
- if content_for? :content
= yield(:content)
- else
= yield
- if content_for? :home_link
= yield :home_link
- else
%a#home-link{:href => root_path}
%span Dress to Impress
#userbar
- if user_signed_in?
== Hey, #{current_user.name}!
== You have #{current_user.points} points.
= link_to 'Log out', logout_path
- else
= link_to login_path_with_return_to, :id => 'userbar-log-in' do
= image_tag auth_server_icon_url
%span Log in
#footer
%ul
%li
%a{:href => "http://openneo.net/", :target => "_blank"} OpenNeo
%li
%a{:href => "http://blog.openneo.net/", :target => "_blank"} Blog
%li
%a{:href => "http://forum.openneo.net/", :target => "_blank"} Forum
%li
%a{:href => "http://github.com/matchu/openneo-impress"} The Source Code
%li
%a{:href => "/terms.html"} Terms of Use
%div
Contact:
%ul
%li
%a{:href => "http://openneo.uservoice.com/forums/40720-dress-to-impress"} Feedback
%li
%a{:href => "mailto:webmaster@openneo.net"} Questions, comments, bug reports
%p
Images © 2000-2010 Neopets, Inc. All Rights Reserved.
Used With Permission
= yield(:javascripts)