diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-15 16:15:36 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-15 16:15:36 +0000 |
commit | f4c1d21d5e582cb82f899272af205cc7827833c7 (patch) | |
tree | d2c044b1d0c030cc05979c481cb90966c52b375d | |
parent | f77f7f45e6e51edafcebf37b1253fa5db8e775ef (diff) |
Removes the raw data dump of the []Organisation slice and renders the
dummy contents in a template.
-rw-r--r-- | ui/html/pages/organisations_list.tmpl.html | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/ui/html/pages/organisations_list.tmpl.html b/ui/html/pages/organisations_list.tmpl.html index edf1f89..5fedb09 100644 --- a/ui/html/pages/organisations_list.tmpl.html +++ b/ui/html/pages/organisations_list.tmpl.html @@ -2,7 +2,6 @@ {{ define "main" }} <h3>Organisations <span><a href="#" class="admin-link">[Admin]</a></span></h3> -{{.Organisations}} <table id="home-summary-table"> <thead> <tr id="header-row"> @@ -15,22 +14,20 @@ </tr> </thead> <tbody> - <tr> - <td><a href="#">First organisation</a></td> - <td>Tim Gudgeon</td> - <td>Tina McKinchey / Barbara Snelland</td> - <td>Bobbins</td> - <td>Bobbins</td> - <td><a href="#">Link</a></td> - </tr> - <tr> - <td>Second organisation</td> - <td>Seth Pring</td> - <td>Barbara Snelland</td> - <td>Bobbins</td> - <td>Bobbins</td> - <td><a href="#">Link</a></td> - </tr> + {{ if .Organisations }} + {{range .Organisations}} + <tr> + <td><a href="#">{{.Name}}</a></td> + <td>Tim Gudgeon</td> + <td>Tina McKinchey / Barbara Snelland</td> + <td>Bobbins</td> + <td>Bobbins</td> + <td><a href="#">Link</a></td> + </tr> + {{end}} + {{else}} + <p>There are no organisations yet.</p> + {{end}} </tbody> </table> {{ end }} |