Commit 048117c0 authored by randx's avatar randx

projects helper added

parent fed6ab24
module ProjectsHelper
def grouper_project_members(project)
@project.users_projects.sort_by(&:project_access).reverse.group_by(&:project_access)
end
end
- @project.users_projects.group_by(&:project_access).each do |access, members|
- grouper_project_members(@project).each do |access, members|
%table
%thead
%tr
%th.span7= Project.access_options.key(access).pluralize
%th.span7
= Project.access_options.key(access).pluralize
%th
%tbody
- members.each do |up|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment