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
87d7ae5e
Commit
87d7ae5e
authored
May 23, 2019
by
svilayphiou
Browse files
show working tree when looking at a blob
parent
a4f7367c
Changes
1
Hide whitespace changes
Inline
Side-by-side
contour.html
View file @
87d7ae5e
...
...
@@ -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
;
...
...
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