Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1f0a8c559a9e
Commit
71cdb249
authored
Sep 16, 2015
by
Stan Hu
Browse files
Fix default avatars to ensure that helpers don't have /assets dir appended
parent
1459c1d2124e
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/helpers/application_helper.rb
View file @
1f0a8c55
...
@@ -82,7 +82,7 @@ def gravatar_icon(user_email = '', size = nil)
...
@@ -82,7 +82,7 @@ def gravatar_icon(user_email = '', size = nil)
end
end
def
default_avatar
def
default_avatar
image_path
(
'no_avatar.png'
)
'no_avatar.png'
end
end
def
last_commit
(
project
)
def
last_commit
(
project
)
...
...
app/helpers/groups_helper.rb
View file @
1f0a8c55
...
@@ -27,7 +27,7 @@ def group_icon(group)
...
@@ -27,7 +27,7 @@ def group_icon(group)
if
group
&&
group
.
avatar
.
present?
if
group
&&
group
.
avatar
.
present?
group
.
avatar
.
url
group
.
avatar
.
url
else
else
image_path
(
'no_group_avatar.png'
)
'no_group_avatar.png'
end
end
end
end
...
...
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