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)}");
|
2013-12-30 07:49:22 -05:00
|
|
|
row.find("td.tree_time_ago").html('#{escape_javascript time_ago_with_tooltip(commit.committed_date)}');
|
2013-06-23 12:47:22 -04:00
|
|
|
row.find("td.tree_commit").html('#{escape_javascript render("projects/tree/tree_commit_column", commit: commit)}');
|
2014-06-12 05:01:54 -04:00
|
|
|
|
|
|
|
- if @logs.present?
|
|
|
|
:plain
|
|
|
|
var current_url = location.href.replace(/\/?$/, '/');
|
2015-07-26 05:17:34 -04:00
|
|
|
var log_url = "#{escape_javascript(@log_url)}".replace(/\/?$/, '/');
|
|
|
|
|
2014-06-12 05:01:54 -04:00
|
|
|
if(current_url == log_url) {
|
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)}";
|
|
|
|
ajaxGet(url);
|
2014-06-12 05:01:54 -04:00
|
|
|
}
|