From fc494a9355e67309b1cc85fdbf12ea7380d07e96 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 21 Nov 2025 11:43:28 +1100 Subject: [PATCH] Improve look of http/timer header component --- .../dashboard/http_functions/editor.html | 2 +- .../dashboard/http_functions/header.html | 170 +++++++++--------- templates/dashboard/http_functions/new.html | 2 +- templates/dashboard/timer_functions/edit.html | 2 +- .../dashboard/timer_functions/history.html | 2 +- templates/dashboard/timer_functions/new.html | 2 +- 6 files changed, 87 insertions(+), 93 deletions(-) diff --git a/templates/dashboard/http_functions/editor.html b/templates/dashboard/http_functions/editor.html index be97272..d708739 100644 --- a/templates/dashboard/http_functions/editor.html +++ b/templates/dashboard/http_functions/editor.html @@ -14,7 +14,7 @@ logs_url=url_for('http.logs', function_id=function_id), history_url=url_for('http.history', function_id=function_id)) }} -
+
diff --git a/templates/dashboard/http_functions/header.html b/templates/dashboard/http_functions/header.html index 2b45706..40a4fa3 100644 --- a/templates/dashboard/http_functions/header.html +++ b/templates/dashboard/http_functions/header.html @@ -1,105 +1,99 @@ -
+
- -
- -
-

- {{ title }} -

+ +
+
- - - -
+ New Function + + {% endif %} + +
+ +
+
\ No newline at end of file diff --git a/templates/dashboard/http_functions/new.html b/templates/dashboard/http_functions/new.html index 20580b1..9963643 100644 --- a/templates/dashboard/http_functions/new.html +++ b/templates/dashboard/http_functions/new.html @@ -14,7 +14,7 @@ cancel_url=url_for('http.overview'), title='New HTTP Function') }} -
+
diff --git a/templates/dashboard/timer_functions/edit.html b/templates/dashboard/timer_functions/edit.html index ab09bbe..30f925c 100644 --- a/templates/dashboard/timer_functions/edit.html +++ b/templates/dashboard/timer_functions/edit.html @@ -15,7 +15,7 @@ logs_url=url_for('timer.logs', function_id=function_id), history_url=url_for('timer.history', function_id=function_id)) }} -
+
diff --git a/templates/dashboard/timer_functions/history.html b/templates/dashboard/timer_functions/history.html index ef4db37..7779d28 100644 --- a/templates/dashboard/timer_functions/history.html +++ b/templates/dashboard/timer_functions/history.html @@ -2,7 +2,7 @@ {% block page %} -{{ render_partial('dashboard/timer_functions/header.html', +{{ render_partial('dashboard/http_functions/header.html', user_id=user_id, function_id=function_id, active_tab='history', diff --git a/templates/dashboard/timer_functions/new.html b/templates/dashboard/timer_functions/new.html index 5af28f0..bfa724b 100644 --- a/templates/dashboard/timer_functions/new.html +++ b/templates/dashboard/timer_functions/new.html @@ -13,7 +13,7 @@ cancel_url=url_for('timer.overview'), title='New Timer Function') }} -
+