2013-05-06 08:10:55 -04:00
|
|
|
- @logs.each do |content_data|
|
2012-07-10 15:52:38 -04:00
|
|
|
- file_name = content_data[:file_name]
|
2012-10-18 14:53:35 -04:00
|
|
|
- commit = content_data[:commit]
|
2013-07-02 07:26:13 -04:00
|
|
|
- next unless commit
|
2012-07-10 15:52:38 -04:00
|
|
|
|
|
|
|
:plain
|
2012-07-10 16:12:38 -04:00
|
|
|
var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
|
2016-08-31 12:14:09 -04:00
|
|
|
row.find("td.tree-time-ago").html('#{escape_javascript time_ago_with_tooltip(commit.committed_date)}');
|
|
|
|
row.find("td.tree-commit").html('#{escape_javascript render("projects/tree/tree_commit_column", commit: commit)}');
|
2014-06-12 05:01:54 -04:00
|
|
|
|
2018-06-11 09:19:27 -04:00
|
|
|
= render_if_exists 'projects/refs/logs_tree_lock_label', lock_label: content_data[:lock_label]
|
|
|
|
|
2016-02-23 04:06:26 -05:00
|
|
|
- if @more_log_url
|
2014-06-12 05:01:54 -04:00
|
|
|
:plain
|
2016-02-23 04:06:26 -05:00
|
|
|
if($('#tree-slider').length) {
|
2015-07-26 05:17:34 -04:00
|
|
|
// Load more commit logs for each file in tree
|
2014-06-12 05:01:54 -04:00
|
|
|
// if we still on the same page
|
2015-07-26 05:17:34 -04:00
|
|
|
var url = "#{escape_javascript(@more_log_url)}";
|
2016-11-18 14:52:07 -05:00
|
|
|
gl.utils.ajaxGet(url);
|
2014-06-12 05:01:54 -04:00
|
|
|
}
|
2016-09-08 14:57:24 -04:00
|
|
|
|
|
|
|
:plain
|
2016-11-18 14:52:07 -05:00
|
|
|
gl.utils.localTimeAgo($('.js-timeago', 'table.table_#{@hex_path} tbody'));
|