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 <dzaporozhets@sphereconsultinginc.com>2011-11-07 00:38:08 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-11-07 00:38:08 +0400
commitb4868a897284940a3e5e8e6ebcc246f21fb17fbe (patch)
tree3932afe6362f9ab605c873e752958e996735cbd5 /app/views/projects/_tree_item.html.haml
parentf87f0201f0e3386d1e0408a217650b545f57029a (diff)
Improved commit author detection
Diffstat (limited to 'app/views/projects/_tree_item.html.haml')
-rw-r--r--app/views/projects/_tree_item.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/_tree_item.html.haml b/app/views/projects/_tree_item.html.haml
index d15c379b009..273d0272322 100644
--- a/app/views/projects/_tree_item.html.haml
+++ b/app/views/projects/_tree_item.html.haml
@@ -13,6 +13,6 @@
ago
%td.commit
= link_to truncate(content_commit.safe_message, :length => fixed_mode? ? 40 : 80), project_commit_path(@project, content_commit), :class => "tree-commit-link"
- - user = @project.users.find_by_email(content_commit.author_email)
- - if user
- = link_to "[#{user.name}]", project_team_member_path(@project, @project.users_projects.find_by_user_id(user.id))
+ - tm = @project.team_member_by_name_or_email(content_commit.author_email, content_commit.author_name)
+ - if tm
+ = link_to "[#{tm.user_name}]", project_team_member_path(@project, tm)