[refs #641] Show only public projects in group profile
This commit is contained in:
parent
459e1ba2fa
commit
e3bcd2382e
|
@ -10,7 +10,7 @@ class Groups::ProfileController < Groups::BaseController
|
|||
end
|
||||
|
||||
def show
|
||||
@projects = @group.projects #.paginate(:page => params[:project_page], :per_page => 10)
|
||||
@projects = @group.projects.by_visibilities(['open'])
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
@ -3,8 +3,6 @@ class Users::ProfileController < Users::BaseController
|
|||
autocomplete :user, :uname
|
||||
|
||||
def show
|
||||
@groups = @user.groups.uniq
|
||||
@platforms = @user.platforms.paginate(:page => params[:platform_page], :per_page => 10)
|
||||
@projects = @user.projects.paginate(:page => params[:project_page], :per_page => 10)
|
||||
@projects = @user.projects.by_visibilities(['open'])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
%h3= @group.name
|
||||
%h4= t("activerecord.attributes.group.description") + ":"
|
||||
%p= @group.description
|
||||
%h4= t("layout.groups.projects_list") + ":"
|
||||
%h4= t("layout.groups.public_projects_list") + ":"
|
||||
%p
|
||||
- @projects.each do |project|
|
||||
= link_to project.name, project
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%p= @user.professional_experience
|
||||
%h4= t("layout.users.public_projects_list") + ":"
|
||||
%p
|
||||
- @user.projects.by_visibilities(['open']).each do |project|
|
||||
- @projects.each do |project|
|
||||
= link_to project.name, project
|
||||
%br
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ en:
|
|||
description: Descripton
|
||||
leave_group: Leave group
|
||||
projects_list: Projects list
|
||||
public_projects_list: Public projects list
|
||||
public_profile: Public profile
|
||||
delete_warning: Attention! Deleted group can not be restored!
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ ru:
|
|||
description: Описание
|
||||
leave_group: Покинуть группу
|
||||
projects_list: Список проектов
|
||||
public_projects_list: Список публичных проектов
|
||||
public_profile: Публичный профиль
|
||||
delete_warning: Внимание! Удаленная группа восстановлению не подлежит.
|
||||
|
||||
|
|
Loading…
Reference in New Issue