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
3232f547
Commit
3232f547
authored
Jul 12, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group button at Profile#groups page
parent
acb402a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
app/controllers/profiles/groups_controller.rb
app/controllers/profiles/groups_controller.rb
+1
-1
app/views/profiles/groups/index.html.haml
app/views/profiles/groups/index.html.haml
+10
-1
No files found.
app/controllers/profiles/groups_controller.rb
View file @
3232f547
...
...
@@ -2,7 +2,7 @@ class Profiles::GroupsController < ApplicationController
layout
"profile"
def
index
@groups
=
current_user
.
authorized_groups
.
all
@groups
=
current_user
.
authorized_groups
.
page
(
params
[
:page
]).
per
(
20
)
end
def
leave
...
...
app/views/profiles/groups/index.html.haml
View file @
3232f547
.ui-box
%h5
.title
Groups
%h5
.title
%strong
Groups
(
#{
@groups
.
count
}
)
-
if
current_user
.
can_create_group?
%span
.pull-right
=
link_to
new_group_path
,
class:
"btn btn-small btn-primary"
do
%i
.icon-plus
New Group
%ul
.well-list
-
@groups
.
each
do
|
group
|
%li
...
...
@@ -15,3 +22,5 @@
=
link_to
group
,
class:
'group-name'
do
=
group
.
name
=
paginate
@groups
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