diaspora/app/views/layouts/application.html.haml
Raphael d71966476b Merge branch 'group-top' of github.com:diaspora/diaspora_rails into group-top
Conflicts:
	app/views/albums/show.html.haml
	app/views/authors/show.html.haml
	app/views/layouts/application.html.haml
	app/views/photos/show.html.haml
2010-08-09 15:09:05 -07:00

69 lines
2.2 KiB
Text

!!!
%html
%head
%title
= "#{current_user.real_name} | diaspora" if current_user
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= stylesheet_link_tag "blueprint/screen", :media => 'screen'
= stylesheet_link_tag "application", "ui", 'bubble'
/= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
= javascript_include_tag 'jquery142', 'rails', 'google'
= javascript_include_tag 'tiny_mce/tiny_mce', 'jquery.infieldlabel', 'jquery.cycle/jquery.cycle.min.js'
= javascript_include_tag 'view', 'publisher', 'image_picker', 'group_nav'
= render 'js/websocket_js'
= csrf_meta_tag
= yield(:head)
/= javascript_include_tag 'satisfaction' , 'satisfaction-display'
= javascript_include_tag 'jquery.html5_upload'
%body
%header
.container
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
#diaspora_text{:href => root_path}
= link_to "DIASPORA*", root_path
%span.sub_text
PREVIEW
#session_action
- if user_signed_in?
= link_to_person current_user
|
= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
= link_to "logout", destroy_user_session_path
- else
= link_to "login", new_user_session_path
= render "shared/group_nav"
.container
- if user_signed_in?
#user_name
= link_to(person_image_tag(current_user), root_path)
%h1
= link_to current_user.real_name, root_path
%span#latest_message
= my_latest_message
- unless @latest_status_message.nil?
%span{:style => "font-size: small", :id => 'latest_message_time'}
= " - #{how_long_ago @latest_status_message}"
%ul.nav
%li= link_to "home", root_path
%li= link_to "photos", albums_path
%li= "|"
%li= link_to "edit profile", edit_user_path(current_user)
.container
.span-24.last
= yield
.span-24.last
= render "posts/debug"