mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Add current_endpoint variable to menu, navbar, settings_plugins, and settings_tabs templates back with the fixed logic
This commit is contained in:
parent
7d7fab9af9
commit
f010ac6e44
4 changed files with 8 additions and 0 deletions
2
src/ui/templates/menu.html
vendored
2
src/ui/templates/menu.html
vendored
|
|
@ -1,3 +1,5 @@
|
|||
{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip()
|
||||
%}
|
||||
<!-- float button-->
|
||||
<button
|
||||
aria-controls="sidebar-menu"
|
||||
|
|
|
|||
2
src/ui/templates/navbar.html
vendored
2
src/ui/templates/navbar.html
vendored
|
|
@ -1,3 +1,5 @@
|
|||
{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip()
|
||||
%}
|
||||
<div class="navigation-wrap bg-custom start-header start-style">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
|
|||
2
src/ui/templates/settings_plugins.html
vendored
2
src/ui/templates/settings_plugins.html
vendored
|
|
@ -1,3 +1,5 @@
|
|||
{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip().replace('_', '-')
|
||||
%}
|
||||
{% set global_config = config["CONFIG"].get_config() %}
|
||||
{% set plugins = config["CONFIG"].get_plugins() %}
|
||||
<!-- plugin item -->
|
||||
|
|
|
|||
2
src/ui/templates/settings_tabs.html
vendored
2
src/ui/templates/settings_tabs.html
vendored
|
|
@ -1,3 +1,5 @@
|
|||
{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip().replace('_', '-')
|
||||
%}
|
||||
{% set plugins = config["CONFIG"].get_plugins() %}
|
||||
<div data-{{current_endpoint}}-tabs class="col-span-12 grid grid-cols-12 {% if current_endpoint == 'services' %}mb-4{% endif %}">
|
||||
<!-- desktop tabs -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue