Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m-team
oidc
mytoken
server
Commits
a0e57bc7
Verified
Commit
a0e57bc7
authored
2 years ago
by
Gabriel Zachmann
Browse files
Options
Downloads
Patches
Plain Diff
"unnamed token" in token list
parent
41edacc0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/server/web/static/js/tokeninfo.js
+4
-7
4 additions, 7 deletions
internal/server/web/static/js/tokeninfo.js
with
4 additions
and
7 deletions
internal/server/web/static/js/tokeninfo.js
+
4
−
7
View file @
a0e57bc7
...
...
@@ -130,16 +130,13 @@ const lastArrowI = '<i class="fas fa-arrow-circle-right" style="padding-right: 1
function
_tokenTreeToHTML
(
tree
,
depth
)
{
let
token
=
tree
[
'
token
'
];
let
name
=
token
[
'
name
'
]
||
''
;
let
name
=
token
[
'
name
'
]
||
'
unnamed token
'
;
let
nameClass
=
name
==
'
unnamed token
'
?
'
class="text-muted"
'
:
""
;
if
(
depth
>
0
)
{
name
=
arrowI
.
repeat
(
depth
-
1
)
+
lastArrowI
+
name
name
=
arrowI
.
repeat
(
depth
-
1
)
+
lastArrowI
+
name
;
}
let
time
=
formatTime
(
token
[
'
created
'
]);
let
tableEntries
=
[
'
<tr>
'
+
'
<td>
'
+
name
+
'
</td>
'
+
'
<td>
'
+
time
+
'
</td>
'
+
'
<td>
'
+
token
[
'
ip
'
]
+
'
</td>
'
+
'
</tr>
'
];
let
tableEntries
=
[
`<tr><td
${
nameClass
}
>
${
name
}
</td><td>
${
time
}
</td><td>
${
token
[
'
ip
'
]}
</td></tr>`
];
let
children
=
tree
[
'
children
'
];
if
(
children
!==
undefined
)
{
children
.
forEach
(
function
(
child
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment