admin-redesign #26
@ -11,10 +11,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="bg-gray-50 text-gray-900 min-h-screen flex flex-col">
|
<body class="bg-gray-50 text-gray-900 min-h-screen flex flex-col">
|
||||||
|
|
||||||
<!-- Optional: Shoelace modals, toasts -->
|
|
||||||
<sl-alert id="global-alert" variant="primary" duration="4000" closable></sl-alert>
|
|
||||||
<sl-dialog id="global-dialog" label="Dialog"></sl-dialog>
|
|
||||||
|
|
||||||
<!-- Layout Container -->
|
<!-- Layout Container -->
|
||||||
<div class="flex flex-1 h-full overflow-hidden">
|
<div class="flex flex-1 h-full overflow-hidden">
|
||||||
|
|
||||||
|
|||||||
@ -15,18 +15,9 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Page title or logo -->
|
<!-- Page title or logo -->
|
||||||
<a href="/" class="flex ml-2 md:mr-24">
|
{% if page_title %}
|
||||||
<img
|
<h1 class="text-xl flex ml-2 md:mr-24 font-semibold text-gray-900 sm:text-2xl dark:text-white">{{page_title}}</h1>
|
||||||
src="{{ url_for('static', path='logo.svg') }}"
|
{% endif %}
|
||||||
class="h-11 mr-3"
|
|
||||||
alt="Sshecret Logo"
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
class="self-center text-xl font-semibold sm:text-2xl whitespace-nowrap dark:text-white"
|
|
||||||
>Sshecret</span
|
|
||||||
>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Right: User menu -->
|
<!-- Right: User menu -->
|
||||||
|
|||||||
@ -4,7 +4,8 @@
|
|||||||
<div class="px-4 py-6">
|
<div class="px-4 py-6">
|
||||||
|
|
||||||
<a href="/" class="text-xl font-semibold text-gray-800">
|
<a href="/" class="text-xl font-semibold text-gray-800">
|
||||||
🐚 Sshecret
|
<sl-icon src="{{ url_for('static', path='logo.svg') }}"></sl-icon>
|
||||||
|
Sshecret
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
<div class="flowbite-init-target">
|
<div class="flowbite-init-target">
|
||||||
<div class="tree-header grid grid-cols-2 place-content-between mb-6">
|
<div class="tree-header grid grid-cols-2 place-content-between mb-6">
|
||||||
<h1 class="text-xl font-semibold text-gray-900 sm:text-2xl dark:text-white">Clients</h1>
|
|
||||||
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div
|
<div
|
||||||
class="htmx-indicator mt-2"
|
class="htmx-indicator mt-2"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends "/shared/_base.html" %} {% block content %} {% if login_error %}
|
{% extends "/base/bare.html.j2" %} {% block content %} {% if login_error %}
|
||||||
|
|
||||||
<div class="flex bg-gray-100">
|
<div class="flex bg-gray-100">
|
||||||
<div
|
<div
|
||||||
@ -88,7 +88,5 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %} {% endblock %}
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -55,9 +55,6 @@
|
|||||||
{% block master %}
|
{% block master %}
|
||||||
|
|
||||||
<div class="flowbite-init-target">
|
<div class="flowbite-init-target">
|
||||||
<div class="tree-header grid grid-cols-2 place-content-between mb-6">
|
|
||||||
<h1 class="text-xl font-semibold text-gray-900 sm:text-2xl dark:text-white">Secrets</h1>
|
|
||||||
</div>
|
|
||||||
<div id="secret-tree">
|
<div id="secret-tree">
|
||||||
<sl-tree class="tree-with-icons">
|
<sl-tree class="tree-with-icons">
|
||||||
<sl-tree-item
|
<sl-tree-item
|
||||||
|
|||||||
@ -57,6 +57,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
request,
|
request,
|
||||||
"audit/index.html.j2",
|
"audit/index.html.j2",
|
||||||
{
|
{
|
||||||
|
"page_title": "Audit Log",
|
||||||
"breadcrumbs": breadcrumbs,
|
"breadcrumbs": breadcrumbs,
|
||||||
"entries": audit_log.results,
|
"entries": audit_log.results,
|
||||||
"user": current_user,
|
"user": current_user,
|
||||||
|
|||||||
@ -81,7 +81,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
request,
|
request,
|
||||||
"dashboard.html",
|
"dashboard.html",
|
||||||
{
|
{
|
||||||
"page_title": "sshecret",
|
"page_title": "Dashboard",
|
||||||
"user": current_user,
|
"user": current_user,
|
||||||
"stats": stats,
|
"stats": stats,
|
||||||
"last_login_events": last_login_events,
|
"last_login_events": last_login_events,
|
||||||
|
|||||||
@ -69,6 +69,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
request,
|
request,
|
||||||
"secrets/index.html.j2",
|
"secrets/index.html.j2",
|
||||||
{
|
{
|
||||||
|
"page_title": "Secrets",
|
||||||
"groups": groups,
|
"groups": groups,
|
||||||
"breadcrumbs": breadcrumbs,
|
"breadcrumbs": breadcrumbs,
|
||||||
"user": current_user,
|
"user": current_user,
|
||||||
@ -104,6 +105,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
else:
|
else:
|
||||||
groups = await admin.get_secret_groups()
|
groups = await admin.get_secret_groups()
|
||||||
template_name = "secrets/index.html.j2"
|
template_name = "secrets/index.html.j2"
|
||||||
|
context["page_title"] = "Secrets"
|
||||||
context["user"] = current_user
|
context["user"] = current_user
|
||||||
context["groups"] = groups
|
context["groups"] = groups
|
||||||
context["group_path_nodes"] = ["/"]
|
context["group_path_nodes"] = ["/"]
|
||||||
@ -151,6 +153,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
template_name = "secrets/index.html.j2"
|
template_name = "secrets/index.html.j2"
|
||||||
|
|
||||||
groups = await admin.get_secret_groups()
|
groups = await admin.get_secret_groups()
|
||||||
|
context["page_title"] = "Secrets"
|
||||||
context["user"] = current_user
|
context["user"] = current_user
|
||||||
context["groups"] = groups
|
context["groups"] = groups
|
||||||
context["group_path_nodes"] = group.path.split("/")
|
context["group_path_nodes"] = group.path.split("/")
|
||||||
@ -198,6 +201,7 @@ def create_router(dependencies: FrontendDependencies) -> APIRouter:
|
|||||||
group_path = group.path.split("/")
|
group_path = group.path.split("/")
|
||||||
|
|
||||||
template_name = "secrets/index.html.j2"
|
template_name = "secrets/index.html.j2"
|
||||||
|
context["page_title"] = "Secrets"
|
||||||
context["user"] = current_user
|
context["user"] = current_user
|
||||||
context["groups"] = groups
|
context["groups"] = groups
|
||||||
context["group_path_nodes"] = group_path
|
context["group_path_nodes"] = group_path
|
||||||
|
|||||||
Reference in New Issue
Block a user