Commit d4d86f93 authored by Sean McGivern's avatar Sean McGivern

Remove EE-specific code from logs tree dropdown

parent d161f031
- @logs.each do |content_data|
- file_name = content_data[:file_name]
- commit = content_data[:commit]
- lock_label = content_data[:lock_label]
- next unless commit
:plain
......@@ -9,13 +8,7 @@
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 lock_label
:plain
var label = $("<span>")
.attr('title', '#{escape_javascript lock_label.html_safe}')
.attr('data-toggle', 'tooltip')
.addClass('fa fa-lock prepend-left-5');
row.find('td.tree-item-file-name').append(label);
= render_if_exists 'projects/refs/logs_tree_lock_label', lock_label: content_data[:lock_label]
- if @more_log_url
:plain
......
- lock_label = local_assigns.fetch(:lock_label)
- return unless lock_label
:plain
var label = $("<span>")
.attr('title', '#{escape_javascript lock_label.html_safe}')
.attr('data-toggle', 'tooltip')
.addClass('fa fa-lock prepend-left-5');
row.find('td.tree-item-file-name').append(label);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment