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
b72bd838
Commit
b72bd838
authored
Nov 26, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backporting little groups_helper refactor from gitlab-org/gitlab-ee!904
parent
12e856a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+1
-5
No files found.
app/helpers/groups_helper.rb
View file @
b72bd838
...
@@ -8,11 +8,7 @@ module GroupsHelper
...
@@ -8,11 +8,7 @@ module GroupsHelper
group
=
Group
.
find_by
(
path:
group
)
group
=
Group
.
find_by
(
path:
group
)
end
end
if
group
&&
group
.
avatar
.
present?
group
.
try
(
:avatar_url
)
||
image_path
(
'no_group_avatar.png'
)
group
.
avatar
.
url
else
image_path
(
'no_group_avatar.png'
)
end
end
end
def
group_title
(
group
,
name
=
nil
,
url
=
nil
)
def
group_title
(
group
,
name
=
nil
,
url
=
nil
)
...
...
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