Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
048117c0
Commit
048117c0
authored
Sep 07, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projects helper added
parent
fed6ab24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+6
-0
app/views/projects/_team.html.haml
app/views/projects/_team.html.haml
+3
-2
No files found.
app/helpers/projects_helper.rb
0 → 100644
View file @
048117c0
module
ProjectsHelper
def
grouper_project_members
(
project
)
@project
.
users_projects
.
sort_by
(
&
:project_access
).
reverse
.
group_by
(
&
:project_access
)
end
end
app/views/projects/_team.html.haml
View file @
048117c0
-
@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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment