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
|
2013-07-01 12:09:36 +01:00
|
|
|
@projects = @user.projects.opened.search(params[:search]).recent
|
2013-09-08 12:56:43 +01:00
|
|
|
.paginate(:page => params[:page], :per_page => 24)
|
2012-05-02 10:18:07 +01:00
|
|
|
end
|
|
|
|
end
|