Hide participate projects
This commit is contained in:
parent
0c0e131c98
commit
f9abc2d39c
|
@ -23,7 +23,7 @@ class ProjectsController < ApplicationController
|
|||
end.paginate(:page => params[:project_page])
|
||||
|
||||
@own_projects = current_user.own_projects
|
||||
@part_projects = current_user.projects + current_user.groups.map(&:projects).flatten.uniq - @own_projects
|
||||
#@part_projects = current_user.projects + current_user.groups.map(&:projects).flatten.uniq - @own_projects
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
- @own_projects.each do |project|
|
||||
%li
|
||||
= link_to project.name, project_path(project)
|
||||
.block.notice
|
||||
%h3= t("layout.users.part_projects")
|
||||
.content
|
||||
%p
|
||||
%ul
|
||||
- @part_projects.each do |project|
|
||||
%li
|
||||
= link_to project.owner.uname + '/' + project.name, project_path(project)
|
||||
-#.block.notice
|
||||
-# %h3= t("layout.users.part_projects")
|
||||
-# .content
|
||||
-# %p
|
||||
-# %ul
|
||||
-# - @part_projects.each do |project|
|
||||
-# %li
|
||||
-# = link_to project.owner.uname + '/' + project.name, project_path(project)
|
||||
|
|
Loading…
Reference in New Issue