debian-mirror-gitlab/app/views/projects/refs/logs_tree.js.haml

24 lines
873 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- @logs.each do |content_data|
- file_name = content_data[:file_name]
- commit = content_data[:commit]
- next unless commit
:plain
var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
2016-09-29 09:46:39 +05:30
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-09-02 18:07:02 +05:30
2018-11-08 19:23:39 +05:30
= render_if_exists 'projects/refs/logs_tree_lock_label', lock_label: content_data[:lock_label]
2016-06-02 11:05:42 +05:30
- if @more_log_url
2014-09-02 18:07:02 +05:30
:plain
2016-06-02 11:05:42 +05:30
if($('#tree-slider').length) {
2015-09-11 14:41:01 +05:30
// Load more commit logs for each file in tree
2014-09-02 18:07:02 +05:30
// if we still on the same page
2015-09-11 14:41:01 +05:30
var url = "#{escape_javascript(@more_log_url)}";
2017-08-17 22:00:37 +05:30
gl.utils.ajaxGet(url);
2014-09-02 18:07:02 +05:30
}
2017-08-17 22:00:37 +05:30
:plain
gl.utils.localTimeAgo($('.js-timeago', 'table.table_#{@hex_path} tbody'));