Remove Project#publicish
This commit is contained in:
parent
42fcd3881f
commit
fc8d64b3a0
|
|
@ -252,12 +252,6 @@ class Project < ActiveRecord::Base
|
|||
where('projects.last_activity_at < ?', 6.months.ago)
|
||||
end
|
||||
|
||||
def publicish(user)
|
||||
visibility_levels = [Project::PUBLIC]
|
||||
visibility_levels << Project::INTERNAL if user
|
||||
where(visibility_level: visibility_levels)
|
||||
end
|
||||
|
||||
def with_push
|
||||
joins(:events).where('events.action = ?', Event::PUSHED)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
- publicish_project_count = Project.publicish(current_user).count
|
||||
- publicish_project_count = ProjectsFinder.new.execute(current_user).count
|
||||
%h3.page-title Welcome to GitLab!
|
||||
%p.light Self hosted Git management application.
|
||||
%hr
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
- if current_user.can_create_project?
|
||||
.link_holder
|
||||
= link_to new_project_path, class: "btn btn-new" do
|
||||
%i.fa.fa-plus
|
||||
=icon('plus')
|
||||
New Project
|
||||
|
||||
- if current_user.can_create_group?
|
||||
|
|
|
|||
Loading…
Reference in New Issue