2010-11-05 15:45:05 -07:00
|
|
|
!!! 5
|
|
|
|
%html
|
|
|
|
%head
|
2010-11-06 08:52:58 -07:00
|
|
|
%title
|
|
|
|
- if content_for? :title
|
|
|
|
= yield :title
|
2011-05-13 05:21:42 -07:00
|
|
|
|
|
2011-05-21 19:58:48 -07:00
|
|
|
- if content_for? :title_category
|
|
|
|
= yield :title_category
|
|
|
|
- else
|
|
|
|
Dress to Impress: Preview customized Neopets' clothing and wearables
|
2010-12-11 07:11:56 -08:00
|
|
|
/[if IE]
|
|
|
|
= include_javascript_libraries :html5
|
2011-07-15 22:09:04 -07:00
|
|
|
= yield :stylesheets
|
2010-11-05 15:45:05 -07:00
|
|
|
= stylesheet_link_tag "compiled/screen"
|
2011-05-20 16:29:04 -07:00
|
|
|
= yield :meta
|
2010-11-10 13:59:54 -08:00
|
|
|
= csrf_meta_tag
|
2010-11-11 10:43:22 -08:00
|
|
|
= signed_in_meta_tag
|
2010-11-05 15:45:05 -07:00
|
|
|
%body{:class => body_class}
|
2010-12-06 15:50:13 -08:00
|
|
|
= javascript_include_tag "analytics"
|
2010-11-05 15:45:05 -07:00
|
|
|
#container
|
2011-07-09 08:45:30 -07:00
|
|
|
= yield :before_title
|
2011-05-13 05:20:29 -07:00
|
|
|
- if content_for?(:title) && show_title_header?
|
2010-11-06 08:52:58 -07:00
|
|
|
%h1#title= yield :title
|
2010-11-14 11:40:51 -08:00
|
|
|
= render 'static/announcement.html'
|
2010-11-05 15:45:05 -07:00
|
|
|
= yield :before_flashes
|
|
|
|
= flashes
|
|
|
|
|
|
|
|
- if content_for? :content
|
|
|
|
= yield(:content)
|
|
|
|
- else
|
|
|
|
= yield
|
2011-03-23 15:23:01 -07:00
|
|
|
|
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?
|
2011-07-02 12:51:30 -07:00
|
|
|
- if can_use_image_mode?
|
2011-07-02 14:09:42 -07:00
|
|
|
= link_to image_mode_path, :id => 'userbar-image-mode' do
|
2011-07-02 12:51:30 -07:00
|
|
|
= image_tag 'image_mode_icon.png', :alt => 'Image Mode'
|
2011-07-02 14:09:42 -07:00
|
|
|
Welcome to Image Mode!
|
2010-11-06 15:12:42 -07:00
|
|
|
%span
|
2011-07-02 12:51:30 -07:00
|
|
|
Hey,
|
|
|
|
= succeed '!' do
|
|
|
|
= link_to current_user.name, user_contributions_path(current_user)
|
2010-11-06 15:12:42 -07:00
|
|
|
== You have #{current_user.points} points.
|
2011-07-15 13:59:22 -07:00
|
|
|
= link_to 'Items', user_closet_hangers_path(current_user)
|
2011-03-23 15:23:01 -07:00
|
|
|
= link_to 'Outfits', current_user_outfits_path
|
2011-01-10 14:52:26 -08:00
|
|
|
= link_to 'Settings', Openneo::Auth.remote_settings_url
|
2010-11-10 13:59:54 -08:00
|
|
|
= 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
|
2010-11-16 05:50:01 -08:00
|
|
|
%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
|
2010-11-16 05:50:01 -08:00
|
|
|
%a{:href => "http://openneo.uservoice.com/forums/40720-dress-to-impress"} Suggestions
|
2010-11-05 15:45:05 -07:00
|
|
|
%li
|
2010-11-16 05:50:01 -08:00
|
|
|
%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
|
2010-12-06 15:50:13 -08:00
|
|
|
= yield(:javascripts)
|
2011-03-23 15:23:01 -07:00
|
|
|
|