Commit 87d7ae5e authored by svilayphiou's avatar svilayphiou
Browse files

show working tree when looking at a blob

parent a4f7367c
......@@ -98,7 +98,12 @@ console.log(data);
}
// BEGIN TREE
var path = this_url.searchParams.get("path");
if (blob) {
var path = this_url.searchParams.get("path");
path = path.split('/').slice(0, -1).join('/');
} else {
var path = this_url.searchParams.get("path");
}
const tree_elt = document.querySelector('#tree');
if(path) {
var tree_url = "https://gitlab.constantvzw.org/api/v4/projects/456/repository/tree?path=" + path;
......
Supports Markdown
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