diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-15 16:06:53 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-15 16:10:20 +0000 |
commit | f77f7f45e6e51edafcebf37b1253fa5db8e775ef (patch) | |
tree | ac526fb1dd43a96db4b7a501d65c6eb3e1edcf55 /ui | |
parent | dd24746bcde550cffaf698a0c9c727e869e3cfb3 (diff) |
Implementing the templateCache in organisations list
The render() function at the moment requires a templateData struct to be
passed to it, but prior to this commit, that struct only had an
Operations field in it. We have now added an Organisations field too -
the thinking being that we only add the data we need for the page in
question and the other fields remain as nil values.
As of this commit - the slice of Organisations passed is not rendered
correctly by the template - just a raw data dump to prove it works.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/html/pages/organisations_list.tmpl.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/html/pages/organisations_list.tmpl.html b/ui/html/pages/organisations_list.tmpl.html index 1b0e3a9..edf1f89 100644 --- a/ui/html/pages/organisations_list.tmpl.html +++ b/ui/html/pages/organisations_list.tmpl.html @@ -2,7 +2,7 @@ {{ define "main" }} <h3>Organisations <span><a href="#" class="admin-link">[Admin]</a></span></h3> -<p>There is nothing to see here yet.</p> +{{.Organisations}} <table id="home-summary-table"> <thead> <tr id="header-row"> |