summaryrefslogtreecommitdiff
path: root/app/helpers/commits_helper.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-22 09:11:53 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-22 09:11:53 +0000
commit32a829445c8cd9e542acbf3168e0592ea8bdf323 (patch)
tree1f10c50090d324863f2a1f5c4f80c817abf411d1 /app/helpers/commits_helper.rb
parenta81524038e6dcc33493fcef5804f7f83433caf59 (diff)
downloadgitlab-ce-32a829445c8cd9e542acbf3168e0592ea8bdf323.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index 53017beee85..ee5f4bb364a 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -17,6 +17,15 @@ module CommitsHelper
commit_person_link(commit, options.merge(source: :committer))
end
+ def commit_committer_avatar(committer, options = {})
+ user_avatar(options.merge({
+ user: committer,
+ user_name: committer.name,
+ user_email: committer.email,
+ css_class: 'd-none d-sm-inline-block float-none gl-mr-0! gl-vertical-align-text-bottom'
+ }))
+ end
+
def commit_to_html(commit, ref, project)
render 'projects/commits/commit.html',
commit: commit,