gitlabhq/app/controllers/public/projects_controller.rb

13 lines
369 B
Ruby
Raw Normal View History

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