aboutsummaryrefslogtreecommitdiff
path: root/templates/directory_results.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-08-16 16:27:20 +0200
committerAlex Auvolat <alex@adnab.me>2021-08-16 16:27:20 +0200
commit01bf4aa52279630910ce33d065efcda77e6df7bb (patch)
tree78dd9c82e09388aae5fd9f4847c0b854f9846de5 /templates/directory_results.html
parente94bd728ec7f709883fb232b2eb123543ba5660e (diff)
downloadguichet-01bf4aa52279630910ce33d065efcda77e6df7bb.tar.gz
guichet-01bf4aa52279630910ce33d065efcda77e6df7bb.zip
Fix directory searching
Diffstat (limited to 'templates/directory_results.html')
-rw-r--r--templates/directory_results.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/directory_results.html b/templates/directory_results.html
new file mode 100644
index 0000000..c7dd715
--- /dev/null
+++ b/templates/directory_results.html
@@ -0,0 +1,23 @@
+{{if .Results}}
+ {{range .Results}}
+ <div class="card mt-4">
+ <div class="card-body">
+ <div class="float-right">
+ {{if .ProfilePicture}}
+ <a href="/picture/{{.ProfilePicture}}">
+ <img src="/picture/{{.ProfilePicture}}-thumb"/>
+ </a>
+ {{else}}
+ {{end}}
+ </div>
+ <h5 class="card-title">
+ {{.DisplayName}}
+ <code>{{.Id}}@</code>
+ </h5>
+ <p class="card-text">{{.Description}}</p>
+ </div>
+ </div>
+ {{end}}
+{{else}}
+ Aucun résultat.
+{{end}}