diff options
author | winniehell <git@winniehell.de> | 2016-07-09 03:47:05 +0300 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-07-20 18:44:28 +0300 |
commit | 6558586f15f493968129b78544d76486cd2a6cd4 (patch) | |
tree | 21eb690f24c215413882f1e037779671198b08f8 /app/helpers/commits_helper.rb | |
parent | dc761e3a0a7bf9ff4feddc4785113df33a585cd2 (diff) |
Add link to user profile to commit avatar (!5163)
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r-- | app/helpers/commits_helper.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb index 474041eccbb..052ce56809e 100644 --- a/app/helpers/commits_helper.rb +++ b/app/helpers/commits_helper.rb @@ -16,16 +16,6 @@ module CommitsHelper commit_person_link(commit, options.merge(source: :committer)) end - def commit_author_avatar(commit, options = {}) - options = options.merge(source: :author) - user = commit.send(options[:source]) - - source_email = clean(commit.send "#{options[:source]}_email".to_sym) - person_email = user.try(:email) || source_email - - image_tag(avatar_icon(person_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]} hidden-xs", width: options[:size], alt: "") - end - def image_diff_class(diff) if diff.deleted_file "deleted" |