Commit 95d361aa authored by svilayphiou's avatar svilayphiou
Browse files

add link to previous directory

parent 87d7ae5e
......@@ -107,6 +107,10 @@ 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;
previous_path = path.split('/').slice(0, -1).join('/');
let li = document.createElement('li');
li.innerHTML = "<a href='?path=" + previous_path + "'>..</a>";
tree_elt.appendChild(li);
} else {
var tree_url = "https://gitlab.constantvzw.org/api/v4/projects/456/repository/tree";
}
......
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