From 4b0c356cda2bc34714a32c30b15720f94e786c7e Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 18 Dec 2023 22:18:31 +1100 Subject: [PATCH] Add link to selected http function from edit/logs views. Also remove min number of lines from environment info ace editor --- templates/dashboard/http_functions/edit.html | 34 +++++++++--- templates/dashboard/http_functions/logs.html | 54 +++++++++++++------- templates/dashboard/http_functions/new.html | 1 - 3 files changed, 62 insertions(+), 27 deletions(-) diff --git a/templates/dashboard/http_functions/edit.html b/templates/dashboard/http_functions/edit.html index 5c2c963..44de10c 100644 --- a/templates/dashboard/http_functions/edit.html +++ b/templates/dashboard/http_functions/edit.html @@ -1,10 +1,29 @@ -
-

Update: {{ name }}

- +
+
+

Update: {{ name }} +

+ +
+
@@ -55,7 +74,6 @@ var editor_environment = ace.edit("editor-environment"); editor_environment.setOptions({ maxLines: 15, //editor_environment.session.getLength() - minLines: 5 }); editor_environment.setTheme("ace/theme/github_dark"); editor_environment.session.setMode("ace/mode/json"); diff --git a/templates/dashboard/http_functions/logs.html b/templates/dashboard/http_functions/logs.html index 4f76987..451d245 100644 --- a/templates/dashboard/http_functions/logs.html +++ b/templates/dashboard/http_functions/logs.html @@ -1,26 +1,44 @@ -
-
+
+
+
-

Logs: {{ name }}

+

Logs: {{ name }} +

-
- - +
+ + + + +
+ +
+ +
+ - +
- -
diff --git a/templates/dashboard/http_functions/new.html b/templates/dashboard/http_functions/new.html index d0a9305..917e0d9 100644 --- a/templates/dashboard/http_functions/new.html +++ b/templates/dashboard/http_functions/new.html @@ -54,7 +54,6 @@ var editor_environment = ace.edit("editor-environment"); editor_environment.setOptions({ maxLines: 15, //editor_environment.session.getLength() - minLines: 5 }); editor_environment.setTheme("ace/theme/github_dark"); editor_environment.session.setMode("ace/mode/json");