Skip to content
Extraits de code Groupes Projets
Valider 48c212c1 rédigé par ilya's avatar ilya
Parcourir les fichiers

made a public view, copied the fb publisher there

parent 73032127
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -45,6 +45,16 @@ class AspectsController < ApplicationController ...@@ -45,6 +45,16 @@ class AspectsController < ApplicationController
respond_with @aspect respond_with @aspect
end end
def public
@fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create",
:scope=>MiniFB.scopes.join(","))
@posts = current_user.visible_posts(:by_members_of => :all).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'
@aspect = :all
respond_with @aspect
end
def manage def manage
@aspect = :manage @aspect = :manage
@remote_requests = Request.for_user(current_user).all @remote_requests = Request.for_user(current_user).all
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
= link_to "All Aspects", root_url = link_to "All Aspects", root_url
%ul{ :style => "position:absolute;right:0;bottom:0.01em;"} %ul{ :style => "position:absolute;right:0;bottom:0.01em;"}
%li{:class => ("selected" if @aspect == :all)}
= link_to "Public", aspects_public_path
%li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)} %li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)}
= link_to ( (@request_count == 0)? "Manage Aspects" : "Manage Aspects (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => "Manage your Aspects" = link_to ( (@request_count == 0)? "Manage Aspects" : "Manage Aspects (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => "Manage your Aspects"
......
fb_api_key: {dcf4e90df086cf6d3e531b31e043ff32} fb_api_key: {dcf4e90df086cf6d3e531b31e043ff32}
fb_secret: {36917c2878d658b8c575952b6a78e3c3} fb_secret: {7fe864834726f8a5e65bc93928b99a53}
fb_app_id: {120373411325347} fb_app_id: {120373411325347}
host: http://localhost:3000/ host: http://localhost:3000/
...@@ -16,6 +16,7 @@ Diaspora::Application.routes.draw do ...@@ -16,6 +16,7 @@ Diaspora::Application.routes.draw do
match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends' match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends'
match 'aspects/move_friend', :to => 'aspects#move_friend', :as => 'move_friend' match 'aspects/move_friend', :to => 'aspects#move_friend', :as => 'move_friend'
match 'aspects/manage', :to => 'aspects#manage' match 'aspects/manage', :to => 'aspects#manage'
match 'aspects/public', :to => 'aspects#public'
resources :aspects, :except => [:edit] resources :aspects, :except => [:edit]
match 'services/create', :to => "services#create" match 'services/create', :to => "services#create"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter