BigW Consortium Gitlab

logs_tree.js.haml 681 Bytes
Newer Older
1
- @logs.each do |content_data|
2
  - file_name = content_data[:file_name]
3
  - commit = content_data[:commit]
4
  - next unless commit
5 6

  :plain
7
    var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
8
    row.find("td.tree_time_ago").html('#{escape_javascript time_ago_with_tooltip(commit.committed_date)}');
9
    row.find("td.tree_commit").html('#{escape_javascript render("projects/tree/tree_commit_column", commit: commit)}');
10

11
- if @more_log_url
12
  :plain
13
    if($('#tree-slider').length) {
14
      // Load more commit logs for each file in tree
15
      // if we still on the same page
16 17
      var url = "#{escape_javascript(@more_log_url)}";
      ajaxGet(url);
18
    }