Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-16 21:40:18 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-09-16 23:03:00 +0300
commit9752f5991eae4d9cd7784d13b9b781240415e9a6 (patch)
treefdcb3c3b1a3bea872cfefd13549aceea9082be09
parent47711f38a442c182e0f48c96f332a6bc0a75bdf1 (diff)
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