optimize ui
add new ki endpoint params
This commit is contained in:
@@ -8,63 +8,113 @@
|
||||
<link href="/assets/styles/bootstrap.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="/assets/styles/base.css">
|
||||
</head>
|
||||
|
||||
<body class="bg-dark text-light">
|
||||
|
||||
<nav class="navbar navbar-dark bg-black text-info px-3">
|
||||
<span class="navbar-brand">mitho Admin</span>
|
||||
{# ============================= #}
|
||||
{# Top Navigation #}
|
||||
{# ============================= #}
|
||||
|
||||
<nav class="navbar navbar-dark bg-black border-bottom border-secondary px-3">
|
||||
<span class="navbar-brand fw-semibold text-info">
|
||||
mitho Admin
|
||||
</span>
|
||||
|
||||
<div class="ms-auto d-flex align-items-center gap-3">
|
||||
{% if app.user %}
|
||||
<span class="small text-secondary">{{ app.user.userIdentifier }}</span>
|
||||
<a class="btn btn-sm btn-outline-light" href="{{ path('admin_logout') }}">Logout</a>
|
||||
<span class="small text-light">
|
||||
{{ app.user.userIdentifier }}
|
||||
</span>
|
||||
|
||||
<a class="btn btn-sm btn-outline-light"
|
||||
href="{{ path('admin_logout') }}">
|
||||
Logout
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-2 bg-black text-info border-end border-secondary min-vh-100 pt-3">
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_dashboard') }}">Dashboard</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3>Dokumente und Wissen</h3>
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_documents') }}">Dokumente</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_jobs') }}">
|
||||
Indexierung (Ingest Jobs)
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_system_agent') }}">
|
||||
Wissensdaten (Chunk-Index)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3>System-Profile</h3>
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_system_prompt') }}">
|
||||
System-Prompt-Profil
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" href="{{ path('admin_ingest_profile_list') }}">
|
||||
Indexierungs-Profil (Ingest Profiles)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{# ============================= #}
|
||||
{# Layout Container #}
|
||||
{# ============================= #}
|
||||
|
||||
<div class="col-10 pt-3">
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
|
||||
{# ============================= #}
|
||||
{# Sidebar #}
|
||||
{# ============================= #}
|
||||
{% if app.user %}
|
||||
<aside class="col-auto col-md-3 col-lg-2 bg-black border-end border-secondary min-vh-100 pt-3">
|
||||
|
||||
{% set route = app.request.attributes.get('_route') %}
|
||||
|
||||
<nav class="nav flex-column small">
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_dashboard' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_dashboard') }}">
|
||||
Dashboard
|
||||
</a>
|
||||
|
||||
<hr class="border-secondary">
|
||||
|
||||
<div class="text-info text-uppercase small mb-2">
|
||||
Dokumente & Wissen
|
||||
</div>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_document' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_documents') }}">
|
||||
Dokumente
|
||||
</a>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_job' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_jobs') }}">
|
||||
Ingest Jobs
|
||||
</a>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_system_agent' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_system_agent') }}">
|
||||
Chunk-Index
|
||||
</a>
|
||||
|
||||
<hr class="border-secondary">
|
||||
|
||||
<div class="text-info text-uppercase small mb-2">
|
||||
System-Profile
|
||||
</div>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_system_prompt' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_system_prompt') }}">
|
||||
System Prompt
|
||||
</a>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_ingest_profile' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_ingest_profile_list') }}">
|
||||
Ingest Profiles
|
||||
</a>
|
||||
|
||||
<hr class="border-secondary">
|
||||
|
||||
<div class="text-info text-uppercase small mb-2">
|
||||
KI-Endpunkte
|
||||
</div>
|
||||
|
||||
<a class="nav-link text-light {% if route starts with 'admin_model_config' %}active fw-bold{% endif %}"
|
||||
href="{{ path('admin_model_config_list') }}">
|
||||
Modell-Generierung
|
||||
</a>
|
||||
|
||||
</nav>
|
||||
</aside>
|
||||
{% endif %}
|
||||
{# ============================= #}
|
||||
{# Main Content #}
|
||||
{# ============================= #}
|
||||
|
||||
<main class="col py-4 px-4">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user