aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/templates/dashboard
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-10-05 13:40:12 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-10-08 15:21:16 -0400
commit9e255c7a19da5e4249f1c069e3dcabfa42fc5db1 (patch)
tree6d085374edc508a316d7de6a20d1a849c5adbfad /templates/dashboard
parentfc9d3f4dfea54fb8cad3dda316295a25a2e08056 (diff)
Add server controls to dashboard, update styling
Diffstat (limited to 'templates/dashboard')
-rw-r--r--templates/dashboard/dashboard.html2
-rw-r--r--templates/dashboard/server_controls.html7
-rw-r--r--templates/dashboard/server_logs.html10
-rw-r--r--templates/dashboard/server_status.html2
4 files changed, 20 insertions, 1 deletions
diff --git a/templates/dashboard/dashboard.html b/templates/dashboard/dashboard.html
index 29a852e..b0f7eb3 100644
--- a/templates/dashboard/dashboard.html
+++ b/templates/dashboard/dashboard.html
@@ -3,5 +3,7 @@
<p>Welcome to the Dashboard! It is still under construction so please be patient :) </p>
<main>
{{template "server_status" . }}
+ {{template "server_controls" . }}
+ {{template "server_logs" . }}
</main>
{{ end }}
diff --git a/templates/dashboard/server_controls.html b/templates/dashboard/server_controls.html
new file mode 100644
index 0000000..eba93e8
--- /dev/null
+++ b/templates/dashboard/server_controls.html
@@ -0,0 +1,7 @@
+{{ define "server_controls" }}
+<section class="dashboard-item server-controls">
+ <h2>Server Controls</h2>
+ <button>Start</button>
+ <button>Stop</button>
+</section>
+{{ end }}
diff --git a/templates/dashboard/server_logs.html b/templates/dashboard/server_logs.html
index e69de29..f1977ac 100644
--- a/templates/dashboard/server_logs.html
+++ b/templates/dashboard/server_logs.html
@@ -0,0 +1,10 @@
+{{ define "server_logs" }}
+<section class="dashboard-item server-logs">
+ <h2>Server Logs</h2>
+ <div class="logs-viewer">
+ <label for="logs-viewer-area">Foundry Logs</label>
+ <textarea id="logs-viewer-area" name="logs-viewer-area" readonly="true" placeholder="Loading..."></textarea>
+ <button>Download</button>
+ </div>
+</section>
+{{ end }}
diff --git a/templates/dashboard/server_status.html b/templates/dashboard/server_status.html
index 8019659..d118714 100644
--- a/templates/dashboard/server_status.html
+++ b/templates/dashboard/server_status.html
@@ -1,5 +1,5 @@
{{define "server_status"}}
-<section class="server-status">
+<section class="dashboard-item server-status">
<h2>Server Status</h2>
<div id=uptime>
<dl>