Commit d03ac05c authored by Phil Hughes's avatar Phil Hughes

Merge branch '331445-lazy-load-avatars' into 'master'

Lazy load avatar images

See merge request gitlab-org/gitlab!65745
parents 71bea374 b8efcdf7
...@@ -50,7 +50,7 @@ module Gitlab ...@@ -50,7 +50,7 @@ module Gitlab
def get_commit_data(commit) def get_commit_data(commit)
CommitData.new.tap do |data| CommitData.new.tap do |data|
data.author_avatar = author_avatar(commit, size: 36, has_tooltip: false) data.author_avatar = author_avatar(commit, size: 36, has_tooltip: false, lazy: true)
data.age_map_class = age_map_class(commit.committed_date, project_duration) data.age_map_class = age_map_class(commit.committed_date, project_duration)
data.commit_link = link_to commit.title, project_commit_path(project, commit.id), class: "cdark", title: commit.title data.commit_link = link_to commit.title, project_commit_path(project, commit.id), class: "cdark", title: commit.title
data.commit_author_link = commit_author_link(commit, avatar: false) data.commit_author_link = commit_author_link(commit, avatar: false)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment