Commit 44a7308c authored by svilayphiou's avatar svilayphiou
Browse files

add current tree location

parent 95d361aa
......@@ -107,6 +107,9 @@ console.log(data);
const tree_elt = document.querySelector('#tree');
if(path) {
var tree_url = "https://gitlab.constantvzw.org/api/v4/projects/456/repository/tree?path=" + path;
let h3 = document.createElement('h3');
h3.innerHTML = "You're visiting: " + path;
tree_elt.appendChild(h3);
previous_path = path.split('/').slice(0, -1).join('/');
let li = document.createElement('li');
li.innerHTML = "<a href='?path=" + previous_path + "'>..</a>";
......
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