adding the new files
This commit is contained in:
parent
48c212c1ab
commit
5857838a0a
2 changed files with 36 additions and 1 deletions
35
app/views/aspects/public.html.haml
Normal file
35
app/views/aspects/public.html.haml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
-# 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
|
||||||
|
= render "shared/publisher", :aspect_ids => :public
|
||||||
|
|
||||||
|
%h3 Facebook
|
||||||
|
%p
|
||||||
|
- if @logged_in
|
||||||
|
Connected to facebook as
|
||||||
|
- @response_hash = MiniFB.get(@access_token, 'me')
|
||||||
|
= @response_hash[:name]
|
||||||
|
|
||||||
|
- form_tag "/services/fb_post" do
|
||||||
|
= text_area_tag "message"
|
||||||
|
= submit_tag "send it off"
|
||||||
|
|
||||||
|
= link_to "Disconnect from Facebook", services_destroy_path
|
||||||
|
- else
|
||||||
|
= link_to "Connect to Facebook", @fb_access_url
|
||||||
|
|
||||||
|
%ul#stream
|
||||||
|
- for post in @posts
|
||||||
|
= render type_partial(post), :post => post unless post.class == Album
|
||||||
|
#pagination
|
||||||
|
= will_paginate @posts
|
||||||
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
cross_server:
|
cross_server:
|
||||||
deploy_to: '/usr/local/app/diaspora'
|
deploy_to: '/usr/local/app/diaspora'
|
||||||
user: 'root'
|
user: 'root'
|
||||||
repo: 'git@github.com:diaspora/diaspora.git'
|
repo: 'git://github.com/diaspora/diaspora.git'
|
||||||
branch: 'fb'
|
branch: 'fb'
|
||||||
default_env: 'development'
|
default_env: 'development'
|
||||||
servers:
|
servers:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue