link to author on tree view item
This commit is contained in:
parent
1d1b5186c3
commit
f87f0201f0
4 changed files with 19 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
|||
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
|
||||
%span.commit-title
|
||||
%strong
|
||||
= truncate(commit.safe_message, :length => 60)
|
||||
= truncate(commit.safe_message, :length => fixed_mode? ? 60 : 120)
|
||||
%span.commit-author
|
||||
%strong= commit.author_name
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
|
|
|
@ -11,5 +11,8 @@
|
|||
%td
|
||||
= time_ago_in_words(content_commit.committed_date)
|
||||
ago
|
||||
%td
|
||||
= link_to truncate(content_commit.safe_message, :length => 40), project_commit_path(@project, content_commit)
|
||||
%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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue