Skip to content
Extraits de code Groupes Projets
Valider 44338a98 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

removed traces of :public

parent 6064b2e0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -22,9 +22,7 @@ class ApplicationController < ActionController::Base
def set_friends_and_status
if current_user
if params[:action] == 'public'
@aspect = :public
elsif params[:aspect] == nil || params[:aspect] == 'all'
if params[:aspect] == nil || params[:aspect] == 'all'
@aspect = :all
else
@aspect = current_user.aspect_by_id( params[:aspect])
......
......@@ -10,9 +10,7 @@
= render "shared/aspect_friends"
- content_for :publish do
- if @logged_in
= render "shared/publisher", :aspect_ids => :public
- else
- if
= render "shared/publisher", :aspect_ids => :all
%ul#stream
......
......@@ -15,11 +15,11 @@
going to...
- for aspect in @aspects
%li
= check_box_tag("aspect_ids[]", aspect.id, @aspect == :public || @aspect == :all || current_aspect?(aspect) )
= check_box_tag("aspect_ids[]", aspect.id, @aspect == :all || current_aspect?(aspect) )
= aspect.name
= connected_fb_as(@access_token) if @logged_in && @aspect == :all
= f.hidden_field( :public, :value => (params[:action] == 'public') )
= f.hidden_field( :public, :value => false )
.buttons
= f.submit t('.share')
......
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