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 %table
%thead %thead
%tr %tr
%th.span7= Project.access_options.key(access).pluralize %th.span7
= Project.access_options.key(access).pluralize
%th %th
%tbody %tbody
- members.each do |up| - 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