Hide participate projects

This commit is contained in:
Vladimir Sharshov 2012-01-28 04:25:11 +04:00
parent 0c0e131c98
commit f9abc2d39c
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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)