Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.gitlabculture
Commits
95d361aa
Commit
95d361aa
authored
May 23, 2019
by
svilayphiou
Browse files
add link to previous directory
parent
87d7ae5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
contour.html
View file @
95d361aa
...
...
@@ -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
"
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment