summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-16 18:40:18 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-16 18:40:18 +0000
commitf7365ae33efb0690bb1b00260f9dc66bba4b794d (patch)
tree1320e31896374ea8b3ec58041614cbf761a917d9
parent09bcce7d1f29a175734cdf97e33b8ffb1182f02d (diff)
parent1dc04bf6b7b3d3984e1ba69c7fce5f7fa1677fe9 (diff)
downloadgitlab-ce-f7365ae33efb0690bb1b00260f9dc66bba4b794d.tar.gz
Merge branch 'fix-issue-2555' into 'master'
Fix default avatars to ensure that helpers don't have /assets dir appended See issue #2555 See merge request !1314
-rw-r--r--app/helpers/application_helper.rb2
-rw-r--r--app/helpers/auth_helper.rb2
-rw-r--r--app/helpers/groups_helper.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index c3da54fd554..b049bd9fcc2 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -82,7 +82,7 @@ module ApplicationHelper
end
def default_avatar
- image_path('no_avatar.png')
+ 'no_avatar.png'
end
def last_commit(project)
diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb
index d9502181c4f..ce7e9b1db87 100644
--- a/app/helpers/auth_helper.rb
+++ b/app/helpers/auth_helper.rb
@@ -40,7 +40,7 @@ module AuthHelper
if provider_has_icon?(provider)
file_name = "#{provider.to_s.split('_').first}_#{size}.png"
- image_tag(image_path("auth_buttons/#{file_name}"), alt: label, title: "Sign in with #{label}")
+ image_tag("auth_buttons/#{file_name}", alt: label, title: "Sign in with #{label}")
else
label
end
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 82eebf4245b..5e70de23f29 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -27,7 +27,7 @@ module GroupsHelper
if group && group.avatar.present?
group.avatar.url
else
- image_path('no_group_avatar.png')
+ 'no_group_avatar.png'
end
end