1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/layouts/application.html.haml

65 lines
1.9 KiB
Text
Raw Normal View History

2010-11-05 15:45:05 -07:00
!!! 5
%html
%head
2010-11-06 08:52:58 -07:00
%title
Dress to Impress
- if content_for? :title
—
= yield :title
2010-12-05 18:18:52 -08:00
= yield(:html5)
2010-11-05 15:45:05 -07:00
= stylesheet_link_tag "compiled/screen"
= csrf_meta_tag
= signed_in_meta_tag
2010-12-05 18:18:52 -08:00
- javascript_chain 'analytics'
= javascript_chains
2010-11-05 15:45:05 -07:00
%body{:class => body_class}
#container
2010-11-06 08:52:58 -07:00
- if content_for? :title
%h1#title= yield :title
= render 'static/announcement.html'
2010-11-05 15:45:05 -07:00
= yield :before_flashes
= flashes
- if content_for? :content
= yield(:content)
- else
= yield
2010-11-30 13:52:38 -08:00
- if home_link?
2010-11-05 15:45:05 -07:00
%a#home-link{:href => root_path}
%span Dress to Impress
#userbar
- if user_signed_in?
2010-11-06 15:12:42 -07:00
%span
== Hey, #{link_to current_user.name, user_contributions_path(current_user)}!
== You have #{current_user.points} points.
= link_to 'Log out', logout_path_with_return_to
2010-11-05 15:45:05 -07:00
- 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-rails"} Source Code
2010-11-05 15:45:05 -07:00
%li
2010-11-05 15:55:27 -07:00
%a{:href => terms_path} Terms of Use
2010-11-05 15:45:05 -07:00
%div
Contact:
%ul
%li
%a{:href => "http://openneo.uservoice.com/forums/40720-dress-to-impress"} Suggestions
2010-11-05 15:45:05 -07:00
%li
%a{:href => "mailto:webmaster@openneo.net"} Questions, comments, bugs
2010-11-05 15:45:05 -07:00
%p
Images © 2000-2010 Neopets, Inc. All Rights Reserved.
Used With Permission