Move tree-related views from refs to trees
This commit is contained in:
parent
567767bcf2
commit
6ddb35bd5e
8 changed files with 11 additions and 0 deletions
10
app/views/tree/show.js.haml
Normal file
10
app/views/tree/show.js.haml
Normal file
|
@ -0,0 +1,10 @@
|
|||
:plain
|
||||
// Load Files list
|
||||
$("#tree-holder").html("#{escape_javascript(render(partial: "tree", locals: {repo: @repo, commit: @commit, tree: @tree}))}");
|
||||
$("#tree-content-holder").show("slide", { direction: "right" }, 150);
|
||||
$('.project-refs-form #path').val("#{params[:path]}");
|
||||
|
||||
// Load last commit log for each file in tree
|
||||
$('#tree-slider').waitForImages(function() {
|
||||
ajaxGet('#{@logs_path}');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue