Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
a1b6e302
Commit
a1b6e302
authored
Oct 06, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cluster tokens page to match API tokens flow with modals and copy functionality
parent
b2af681f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
160 additions
and
47 deletions
+160
-47
cluster_tokens.html
templates/admin/cluster_tokens.html
+155
-45
web.py
vidai/web.py
+5
-2
No files found.
templates/admin/cluster_tokens.html
View file @
a1b6e302
This diff is collapsed.
Click to expand it.
vidai/web.py
View file @
a1b6e302
...
@@ -436,8 +436,11 @@ def generate_cluster_token():
...
@@ -436,8 +436,11 @@ def generate_cluster_token():
from
.auth
import
generate_worker_token
from
.auth
import
generate_worker_token
token
=
generate_worker_token
(
token_name
)
token
=
generate_worker_token
(
token_name
)
flash
(
f
'New cluster token "{token_name}" generated: {token[:20]}...'
,
'success'
)
# Return with modal data instead of flash
return
redirect
(
url_for
(
'cluster_tokens'
))
from
.database
import
get_worker_tokens
worker_tokens
=
get_worker_tokens
()
user
=
get_current_user_session
()
return
render_template
(
'admin/cluster_tokens.html'
,
user
=
user
,
worker_tokens
=
worker_tokens
,
generated_token
=
token
,
token_name
=
token_name
,
show_modal
=
True
,
active_page
=
'cluster_tokens'
)
@
app
.
route
(
'/admin/cluster_tokens/<int:token_id>/deactivate'
,
methods
=
[
'POST'
])
@
app
.
route
(
'/admin/cluster_tokens/<int:token_id>/deactivate'
,
methods
=
[
'POST'
])
@
admin_required
@
admin_required
...
...
Write
Preview
Markdown
is supported
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