summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-11 21:19:09 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-11 21:19:09 +0000
commit7d131bea17205c314387700787286365cbd98d5a (patch)
tree996498d649b5e1f826aecee7d27253b96cb72b4d /ui
parent47c2880467d1906c9a40746da4bf7c212634db79 (diff)
wip: Cannot get the dynamic data to show up in template
Diffstat (limited to 'ui')
-rw-r--r--ui/html/pages/operations/list.tmpl.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/html/pages/operations/list.tmpl.html b/ui/html/pages/operations/list.tmpl.html
index c377129..046ca29 100644
--- a/ui/html/pages/operations/list.tmpl.html
+++ b/ui/html/pages/operations/list.tmpl.html
@@ -2,7 +2,17 @@
{{ define "main" }}
<h3>Operations <span><a href="#" class="admin-link">[Admin]</a></span></h3>
-<p>There is nothing to see here yet.</p>
+
+ {{if .Operations}}
+ <ul>
+ {{range .Operations}}
+ <li>{{.Name}} - {{.Description}}</li>
+ {{end}}
+ </ul>
+ {{else}}
+ <p>There are no operations.</p>
+ {{end}}
+
<table id="home-summary-table">
<thead>
<tr id="header-row">