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
817b4e0e
Commit
817b4e0e
authored
Oct 06, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update navbar and dropdown: hide API Tokens from users, rename Tokens to Linked Apps
parent
1156d3dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
base.html
templates/base.html
+3
-1
No files found.
templates/base.html
View file @
817b4e0e
...
@@ -33,7 +33,9 @@
...
@@ -33,7 +33,9 @@
<a
href=
"/analyze"
{%
if
active_page =
=
'
analyze
'
%}
class=
"active"
{%
endif
%}
>
Analyze
</a>
<a
href=
"/analyze"
{%
if
active_page =
=
'
analyze
'
%}
class=
"active"
{%
endif
%}
>
Analyze
</a>
<a
href=
"/train"
{%
if
active_page =
=
'
train
'
%}
class=
"active"
{%
endif
%}
>
Train
</a>
<a
href=
"/train"
{%
if
active_page =
=
'
train
'
%}
class=
"active"
{%
endif
%}
>
Train
</a>
<a
href=
"/history"
{%
if
active_page =
=
'
history
'
%}
class=
"active"
{%
endif
%}
>
History
</a>
<a
href=
"/history"
{%
if
active_page =
=
'
history
'
%}
class=
"active"
{%
endif
%}
>
History
</a>
{% if user.get('role') == 'admin' %}
<a
href=
"/api_tokens"
{%
if
active_page =
=
'
api_tokens
'
%}
class=
"active"
{%
endif
%}
>
API Tokens
</a>
<a
href=
"/api_tokens"
{%
if
active_page =
=
'
api_tokens
'
%}
class=
"active"
{%
endif
%}
>
API Tokens
</a>
{% endif %}
<a
href=
"/settings"
{%
if
active_page =
=
'
settings
'
%}
class=
"active"
{%
endif
%}
>
Settings
</a>
<a
href=
"/settings"
{%
if
active_page =
=
'
settings
'
%}
class=
"active"
{%
endif
%}
>
Settings
</a>
</nav>
</nav>
<div
class=
"user-menu"
>
<div
class=
"user-menu"
>
...
@@ -43,7 +45,7 @@
...
@@ -43,7 +45,7 @@
<div
id=
"userDropdown"
class=
"user-dropdown"
>
<div
id=
"userDropdown"
class=
"user-dropdown"
>
<a
href=
"/account"
>
Account
</a>
<a
href=
"/account"
>
Account
</a>
{% if user.get('role') != 'admin' %}
{% if user.get('role') != 'admin' %}
<a
href=
"/api_tokens"
>
Token
s
</a>
<a
href=
"/api_tokens"
>
Linked App
s
</a>
{% else %}
{% else %}
<a
href=
"/admin/users"
>
Users
</a>
<a
href=
"/admin/users"
>
Users
</a>
<a
href=
"/config"
>
Configurations
</a>
<a
href=
"/config"
>
Configurations
</a>
...
...
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