diff options
Diffstat (limited to 'app/views/refs/logs_tree.js.haml')
-rw-r--r-- | app/views/refs/logs_tree.js.haml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/refs/logs_tree.js.haml b/app/views/refs/logs_tree.js.haml index b0ac0c4b0fd..23a6dae7810 100644 --- a/app/views/refs/logs_tree.js.haml +++ b/app/views/refs/logs_tree.js.haml @@ -1,9 +1,8 @@ - @logs.each do |content_data| - file_name = content_data[:file_name] - - content_commit = content_data[:commit] - - tm = @project.team_member_by_name_or_email(content_commit.author_email, content_commit.author_name) + - commit = content_data[:commit] :plain 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_commit").html('#{escape_javascript(render("tree/tree_commit", tm: tm, content_commit: content_commit))}'); + 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_column", commit: commit)}'); |