gitlab-org--gitlab-foss/app/views/projects/refs/logs_tree.js.haml

22 lines
775 B
Text
Raw Normal View History

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]
- next unless commit
2012-07-10 15:52:38 -04:00
:plain
var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
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)}');
- if @more_log_url
:plain
if($('#tree-slider').length) {
// Load more commit logs for each file in tree
// if we still on the same page
var url = "#{escape_javascript(@more_log_url)}";
gl.utils.ajaxGet(url);
}
2016-09-08 14:57:24 -04:00
:plain
gl.utils.localTimeAgo($('.js-timeago', 'table.table_#{@hex_path} tbody'));