summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/html/pages/organisations_list.tmpl.html31
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 }}