diaspora/app/views/layouts/application.mobile.haml
danielvincent 7ac0e9eb49 wip
2011-01-24 12:22:18 -08:00

48 lines
1.1 KiB
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
!!!
%html{:lang => I18n.locale.to_s}
%head
%title
DIASPORA*
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= include_javascripts :mobile
= stylesheet_link_tag 'vendor/jquery_mobile.min', 'mobile'
= csrf_meta_tag
:javascript
$(document).ready(Mobile.initialize);
= yield(:head)
%body
#content{:data => {:role => 'page'}}
#header_sauce
- if current_user
.right
= link_to(image_tag('icons/search_white.png'), people_path)
= link_to(image_tag('white.png'), aspects_path)
= yield
#footer_sauce
- if current_user
logged in as
= link_to current_user.name, current_user.person
%br
%br
%b your aspects
%br
- for aspect in @all_aspects
= link_to aspect, aspects_path('a_ids[]' => aspect.id)
|
%br
%br
= link_to 'logout', destroy_user_session_path