2013-01-10 20:17:57 +02:00
|
|
|
class Public::ProjectsController < ApplicationController
|
|
|
|
skip_before_filter :authenticate_user!,
|
|
|
|
:reject_blocked, :set_current_user_for_observers,
|
|
|
|
:add_abilities
|
|
|
|
|
|
|
|
layout 'public'
|
|
|
|
|
|
|
|
def index
|
2013-01-12 21:54:52 +02:00
|
|
|
@projects = Project.public
|
2013-01-13 17:24:29 +02:00
|
|
|
@projects = @projects.includes(:namespace).order("namespaces.path, projects.name ASC").page(params[:page]).per(20)
|
2013-01-10 20:17:57 +02:00
|
|
|
end
|
|
|
|
end
|