From c5e8c48295209012beea627916cec875aebc659c Mon Sep 17 00:00:00 2001 From: "stone-24tch3r (aider)" <100294019+stone-w4tch3r@users.noreply.github.com> Date: Fri, 27 Sep 2024 00:21:29 +0500 Subject: [PATCH] refactor: extract common/base parts to base.html and rewrite topbar to use html nav --- front/html/base.html | 28 +++++++++++++++++++++++++ front/html/dashboard.html | 43 +++++++++++++++------------------------ front/html/logs.html | 34 ++++++++++--------------------- 3 files changed, 55 insertions(+), 50 deletions(-) create mode 100644 front/html/base.html diff --git a/front/html/base.html b/front/html/base.html new file mode 100644 index 0000000..b588f05 --- /dev/null +++ b/front/html/base.html @@ -0,0 +1,28 @@ + + + + + + {% block title %}SSH Certificate Management{% endblock %} + + + + +
+

{% block header %}{% endblock %}

+
+ {% block content %}{% endblock %} +
+ {% block bottom_button %}{% endblock %} +
+{% block extra_content %}{% endblock %} +{% block scripts %}{% endblock %} + + diff --git a/front/html/dashboard.html b/front/html/dashboard.html index 6a97b1c..8ddc037 100644 --- a/front/html/dashboard.html +++ b/front/html/dashboard.html @@ -1,24 +1,10 @@ - - - - - - - SSH Certificate Management - Dashboard - - - -
- -
- - - -
-
-
-

Certificate Management

-
+{% extends "base.html" %} + +{% block title %}SSH Certificate Management - Dashboard{% endblock %} + +{% block header %}Certificate Management{% endblock %} + +{% block content %} @@ -88,10 +74,13 @@
-
- -
+{% endblock %} +{% block bottom_button %} + +{% endblock %} + +{% block extra_content %} - +{% endblock %} +{% block scripts %} - - \ No newline at end of file +{% endblock %} diff --git a/front/html/logs.html b/front/html/logs.html index 402c2a8..0f6306d 100644 --- a/front/html/logs.html +++ b/front/html/logs.html @@ -1,23 +1,10 @@ - - - - - - SSH Certificate Management - Logs - - - -
- -
- - - -
-
-
-

Logs and Command History

-
+{% extends "base.html" %} + +{% block title %}SSH Certificate Management - Logs{% endblock %} + +{% block header %}Logs and Command History{% endblock %} + +{% block content %}