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
|
2012-12-29 22:46:36 -08:00
|
|
|
#{t 'app_name'}: #{t '.title_tagline'}
|
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
|
2012-07-29 13:45:12 -07:00
|
|
|
= open_graph_tags
|
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}
|
2012-12-29 22:46:36 -08:00
|
|
|
%span= t 'app_name'
|
2010-11-05 15:45:05 -07:00
|
|
|
|
|
|
|
#userbar
|
|
|
|
- if user_signed_in?
|
2010-11-06 15:12:42 -07:00
|
|
|
%span
|
2012-12-29 22:46:36 -08:00
|
|
|
= t '.userbar.greeting', :user_name => current_user.name
|
|
|
|
= userbar_contributions_summary(current_user)
|
|
|
|
= link_to t('.userbar.items'), user_closet_hangers_path(current_user), :id => 'userbar-items-link'
|
|
|
|
= link_to t('.userbar.outfits'), current_user_outfits_path
|
|
|
|
= link_to t('.userbar.settings'), Openneo::Auth.remote_settings_url
|
|
|
|
= link_to t('.userbar.logout'), 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
|
2012-12-29 22:46:36 -08:00
|
|
|
%span= t('.userbar.login')
|
2010-11-05 15:45:05 -07:00
|
|
|
|
|
|
|
#footer
|
2013-01-11 09:46:14 -08:00
|
|
|
= form_tag choose_locale_path, :id => 'locale-form' do
|
|
|
|
= hidden_field_tag 'return_to', request.fullpath
|
|
|
|
= select_tag 'locale', options_for_select(locale_options, locale)
|
|
|
|
= submit_tag 'Go'
|
|
|
|
|
2010-11-05 15:45:05 -07:00
|
|
|
%ul
|
2012-12-29 22:46:36 -08:00
|
|
|
%li= link_to t('organization_name'), 'http://openneo.net/'
|
|
|
|
%li= link_to t('.footer.blog'), 'http://blog.openneo.net/'
|
|
|
|
%li= link_to t('.footer.source_code'),
|
|
|
|
'http://github.com/matchu/openneo-impress-rails'
|
|
|
|
%li= link_to t('.footer.terms'), terms_path
|
2013-01-11 09:46:14 -08:00
|
|
|
|
2010-11-05 15:45:05 -07:00
|
|
|
%div
|
2012-12-29 22:46:36 -08:00
|
|
|
#{t('.footer.contact')}:
|
2010-11-05 15:45:05 -07:00
|
|
|
%ul
|
2012-12-29 22:46:36 -08:00
|
|
|
%li= link_to t('.footer.suggestions'), feedback_url
|
|
|
|
%li= mail_to contact_email, t('.footer.email')
|
2013-01-11 09:46:14 -08:00
|
|
|
|
2012-12-29 22:46:36 -08:00
|
|
|
%p= t '.footer.copyright', :year => Date.today.year
|
2013-01-11 09:46:14 -08:00
|
|
|
|
2010-12-06 15:50:13 -08:00
|
|
|
= yield(:javascripts)
|
2011-03-23 15:23:01 -07:00
|
|
|
|