impress/app/views/layouts/items.html.haml

41 lines
1.5 KiB
Text
Raw Normal View History

2010-05-15 10:47:46 -07:00
!!! 5
%html
%head
2010-05-15 16:34:13 -07:00
%title Infinite Closet
2010-06-30 11:51:49 -07:00
= stylesheet_link_tag "http://#{RemoteImpressHost}/assets/css/clean/layout.css"
= stylesheet_link_tag "compiled/screen"
2010-07-03 08:16:05 -07:00
= javascript_include_tag "http://#{RemoteImpressHost}/assets/js/analytics.js"
2010-05-15 17:46:41 -07:00
%body{:class => params[:action]}
2010-05-15 16:34:13 -07:00
#container
2010-06-30 21:35:54 -07:00
%h1
= link_to items_path do
= image_tag 'http://images.neopets.com/items/mall_floatingneggfaerie.gif'
%span Infinite Closet
2010-05-15 16:34:13 -07:00
= flashes
2010-05-15 17:46:41 -07:00
= form_tag items_path, :method => :get do
= text_field_tag :q, @query
= submit_tag 'Search', :name => nil
2010-05-15 16:34:13 -07:00
= yield
2010-06-30 11:51:49 -07:00
%a#home-link{:href => "http://#{RemoteImpressHost}"}
2010-06-08 14:59:24 -07:00
%span Dress to Impress
2010-10-18 15:10:50 -07:00
#userbar
- if user_signed_in?
2010-10-18 15:13:03 -07:00
== Hey, #{current_user.name}!
== You have #{current_user.points} points.
= link_to 'Log out', logout_path
2010-10-18 15:10:50 -07:00
- else
= link_to login_path, :id => 'userbar-log-in' do
= image_tag auth_server_icon_url
%span Log in
2010-06-30 11:55:31 -07:00
#footer
%ul
%li= link_to 'OpenNeo', 'http://www.openneo.net/'
%li= link_to 'Blog', 'http://blog.openneo.net/'
%li= link_to 'The Source Code', 'http://github.com/matchu/openneo-impress'
%li= link_to 'Forum', 'http://forum.openneo.net/'
%li= link_to 'Terms of Use', "http://#{RemoteImpressHost}/terms.html"
%p
Images © 2000-2010 Neopets, Inc. All Rights Reserved.
Used With Permission
= yield(:javascripts)