2012-05-02 10:18:07 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
|
|
|
class Users::ProfileController < Users::BaseController
|
2012-10-02 13:04:26 +01:00
|
|
|
skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access']
|
2012-05-02 10:18:07 +01:00
|
|
|
|
|
|
|
def show
|
2012-10-02 16:14:08 +01:00
|
|
|
@projects = @user.projects.by_visibilities(['open']).
|
|
|
|
search(params[:search]).search_order.
|
|
|
|
paginate(:page => params[:page], :per_page => 25)
|
2012-05-02 10:18:07 +01:00
|
|
|
end
|
|
|
|
end
|