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

28 lines
812 B
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3. See
-# the COPYRIGHT file.
- content_for :page_title do
= link_to "photos", albums_path(:aspect => @aspect)
- content_for :left_pane do
= render "shared/aspect_friends"
- content_for :publish do
- if @logged_in
= render "shared/publisher", :aspect_ids => :public
- else
= render "shared/publisher", :aspect_ids => :all
%ul#stream
- for post in @posts
= render type_partial(post), :post => post unless post.class == Album
- if @logged_in
- MiniFB.get(@access_token, 'me', :type => "feed")[:data].each do |item|
- if item[:type] == 'status'
= render "fb_status/fb_status", :post => FbStatus.from_api(item)
#pagination
= will_paginate @posts