diaspora/app/views/aspects/index.html.haml

46 lines
1.3 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.
- content_for :head do
= include_javascripts :home
.span-15.append-2
= render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count
#aspect_stream_container
= render 'aspect_stream',
:aspect => @aspect,
:aspect_ids => @aspect_ids,
:posts => @posts,
:fakes => @fakes
.span-7.last
#home_user_badge
= owner_image_link
%h3{:style => "position:relative;"}
= current_user.name
.description
= link_to current_user.diaspora_handle, person_path(current_user.person)
- if @notification_count > 0 || @request_count > 0
#new_requests
- if @request_count > 0
%h4
= new_request_link(@request_count)
#new_notifications
- if @notification_count > 0
= image_tag 'icons/mail_big.png', :height => 20, :width => 20, :style=>"margin-top:3px;"
%h4
= new_notification_link(@notification_count)
%hr
#aspect_listings.section
= render 'aspects/aspect_listings', :aspects => @aspects, :contacts => @contacts
.section
%h4= t('shared.invitations.invites')
= render "shared/invitations", :invites => @invites