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
1c00ff18
Commit
1c00ff18
authored
Oct 06, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change train route to /admin/train and update navbar link
parent
5676896c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
base.html
templates/base.html
+1
-1
web.py
vidai/web.py
+1
-1
No files found.
templates/base.html
View file @
1c00ff18
...
...
@@ -74,7 +74,7 @@
<a
href=
"/dashboard"
{%
if
active_page =
=
'
dashboard
'
%}
class=
"active"
{%
endif
%}
>
Dashboard
</a>
<a
href=
"/analyze"
{%
if
active_page =
=
'
analyze
'
%}
class=
"active"
{%
endif
%}
>
Analyze
</a>
{% if user.get('role') == 'admin' %}
<a
href=
"/train"
{%
if
active_page =
=
'
train
'
%}
class=
"active"
{%
endif
%}
>
Train
</a>
<a
href=
"/
admin/
train"
{%
if
active_page =
=
'
train
'
%}
class=
"active"
{%
endif
%}
>
Train
</a>
{% endif %}
<a
href=
"/history"
{%
if
active_page =
=
'
history
'
%}
class=
"active"
{%
endif
%}
>
History
</a>
{% if user.get('role') == 'admin' %}
...
...
vidai/web.py
View file @
1c00ff18
...
...
@@ -289,7 +289,7 @@ def analyze():
server_dir
=
server_dir
,
active_page
=
'analyze'
)
@
app
.
route
(
'/train'
,
methods
=
[
'GET'
,
'POST'
])
@
app
.
route
(
'/
admin/
train'
,
methods
=
[
'GET'
,
'POST'
])
@
admin_required
def
train
():
user
=
get_current_user_session
()
...
...
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