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:
authorTim Zallmann <tzallmann@gitlab.com>2017-09-22 16:49:56 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-04 15:26:33 +0300
commit79c80de99d511d084cff072bd90192ffe8ba4cda (patch)
treee2bcf7d07fdefabb30b899e64f41ee766fcb771a /app/helpers/lazy_image_tag_helper.rb
parent4a0f720a502ac02423cb9db20727ba386de3e1f1 (diff)
Making private project avatars use local paths + Some Group Icons
Diffstat (limited to 'app/helpers/lazy_image_tag_helper.rb')
-rw-r--r--app/helpers/lazy_image_tag_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/lazy_image_tag_helper.rb b/app/helpers/lazy_image_tag_helper.rb
index 2c5619ac41b..aea1fcc7e91 100644
--- a/app/helpers/lazy_image_tag_helper.rb
+++ b/app/helpers/lazy_image_tag_helper.rb
@@ -9,7 +9,11 @@ module LazyImageTagHelper
unless options.delete(:lazy) == false
options[:data] ||= {}
- options[:data][:src] = path_to_image(source)
+ unless options.delete(:use_original_source) == true
+ options[:data][:src] = path_to_image(source)
+ else
+ options[:data][:src] = source
+ end
options[:class] ||= ""
options[:class] << " lazy"