From 2a09ad730cc7d80bceb55117e29b2269bfeb988c Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 15 Feb 2022 15:01:46 -0700 Subject: [PATCH] add search page, results template --- spike/review/reinvent/ezmded/ui/render.go | 9 +++++++++ spike/review/reinvent/ezmded/ui/search.ctmpl | 20 +++++++++++++++++++ .../ezmded/ui/templates/_results.ctmpl | 14 +++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 spike/review/reinvent/ezmded/ui/search.ctmpl create mode 100644 spike/review/reinvent/ezmded/ui/templates/_results.ctmpl diff --git a/spike/review/reinvent/ezmded/ui/render.go b/spike/review/reinvent/ezmded/ui/render.go index 174cfb5..1a66b1e 100644 --- a/spike/review/reinvent/ezmded/ui/render.go +++ b/spike/review/reinvent/ezmded/ui/render.go @@ -83,6 +83,15 @@ newlines `, }, + "Results": []struct { + Title string + ID string + }{ + {Title: "title id00", ID: "id00"}, + {Title: "title id07", ID: "id07"}, + {Title: "title id00 / title id10", ID: "id00/id10/id10"}, + {Title: "title id00 / title id10 / title id20", ID: "id00/id10/id20"}, + }, "Tree": `{ "Leaf": {"Title": ""}, "Branches": { diff --git a/spike/review/reinvent/ezmded/ui/search.ctmpl b/spike/review/reinvent/ezmded/ui/search.ctmpl new file mode 100644 index 0000000..7323f72 --- /dev/null +++ b/spike/review/reinvent/ezmded/ui/search.ctmpl @@ -0,0 +1,20 @@ +{{ define "search" }} + + +
+ {{ .This.Title }} + {{ template "_import" }} +
+ +
+ {{ template "_searchbar" }} +
+ {{ template "_filetree" . }} +
+ {{ template "_results" . }} +
+
+
+ + +{{ end }} diff --git a/spike/review/reinvent/ezmded/ui/templates/_results.ctmpl b/spike/review/reinvent/ezmded/ui/templates/_results.ctmpl new file mode 100644 index 0000000..3d84cab --- /dev/null +++ b/spike/review/reinvent/ezmded/ui/templates/_results.ctmpl @@ -0,0 +1,14 @@ +{{ define "_results" }} + + +
+ +
+{{ end }}