Commit 4fd73683 authored by Riyad Preukschas's avatar Riyad Preukschas

Update author info in tree view

parent aef2031a
...@@ -52,16 +52,28 @@ ...@@ -52,16 +52,28 @@
} }
} }
.tree-commit-link { .tree_author {
color:#333; padding-right: 8px;
img.avatar {
border: 0 none;
float: none;
margin-right: 0;
padding: 0;
width: 16px;
}
} }
a.tree-commit-link { .tree_commit {
color: #666; color: gray;
.tree-commit-link {
color: #444;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
} }
}
} }
.tree-btn-group { .tree-btn-group {
......
- @logs.each do |content_data| - @logs.each do |content_data|
- file_name = content_data[:file_name] - file_name = content_data[:file_name]
- content_commit = content_data[:commit] - commit = content_data[:commit]
- tm = @project.team_member_by_name_or_email(content_commit.author_email, content_commit.author_name)
:plain :plain
var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}"); var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
row.find("td.tree_time_ago").html('#{escape_javascript(time_ago_in_words(content_commit.committed_date))} ago'); row.find("td.tree_time_ago").html('#{escape_javascript time_ago_in_words(commit.committed_date)} ago');
row.find("td.tree_commit").html('#{escape_javascript(render("tree/tree_commit", tm: tm, content_commit: content_commit))}'); row.find("td.tree_commit").html('#{escape_javascript render("tree/tree_commit_column", commit: commit)}');
- if tm
= link_to "[#{tm.user_name}]", project_team_member_path(@project, tm)
= link_to_gfm truncate(content_commit.title, length: tm ? 30 : 50), project_commit_path(@project, content_commit.id), class: "tree-commit-link"
%span.tree_author= commit.author_link avatar: true
= link_to_gfm truncate(commit.title, length: 80), project_commit_path(@project, commit.id), class: "tree-commit-link"
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