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])
|
end.paginate(:page => params[:project_page])
|
||||||
|
|
||||||
@own_projects = current_user.own_projects
|
@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
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
- @own_projects.each do |project|
|
- @own_projects.each do |project|
|
||||||
%li
|
%li
|
||||||
= link_to project.name, project_path(project)
|
= link_to project.name, project_path(project)
|
||||||
.block.notice
|
-#.block.notice
|
||||||
%h3= t("layout.users.part_projects")
|
-# %h3= t("layout.users.part_projects")
|
||||||
.content
|
-# .content
|
||||||
%p
|
-# %p
|
||||||
%ul
|
-# %ul
|
||||||
- @part_projects.each do |project|
|
-# - @part_projects.each do |project|
|
||||||
%li
|
-# %li
|
||||||
= link_to project.owner.uname + '/' + project.name, project_path(project)
|
-# = link_to project.owner.uname + '/' + project.name, project_path(project)
|
||||||
|
|
Loading…
Reference in New Issue