Fix search page text
authorr <r@freesoftwareextremist.com>
Tue, 28 Jul 2020 14:01:32 +0000 (14:01 +0000)
committerr <r@freesoftwareextremist.com>
Tue, 28 Jul 2020 14:01:32 +0000 (14:01 +0000)
templates/search.tmpl
templates/userlist.tmpl
templates/usersearch.tmpl

index 11c584adf2218ce07922b846d455bfdeb2886433..f81c0613487f1f319156c2ab763b298f221c3d82 100644 (file)
@@ -3,11 +3,11 @@
 <div class="page-title"> Search </div>
 
 <form class="search-form" action="/search" method="GET">
-       <span class="post-form-field>
+       <span class="post-form-field">
                <label for="query"> Query </label>
                <input id="query" name="q" value="{{.Q | HTMLEscape}}">
        </span>
-       <span class="post-form-field>
+       <span class="post-form-field">
                <label for="type"> Type </label>
                <select id="type" name="type">
                        <option value="statuses" {{if eq .Type "statuses"}}selected{{end}}>Statuses</option>
@@ -23,8 +23,8 @@
 {{else}}
 <div class="no-data-found">No data found</div>
 {{end}}
-
 {{end}}
+
 {{if eq .Type "accounts"}}
 {{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
 {{end}}
index 83fa1df534619df5dbda9751b1fa03a26027e92b..426bffc3e89a306ad86d8136c493a4df4b8a6eb3 100644 (file)
                        </a>
                </div>
        </div>
+       {{else}}
+       <div class="no-data-found">No data found</div>
        {{end}}
 </div>
+{{else}}
+<div class="no-data-found">No data found</div>
 {{end}}
index e5f2bfc6311bb613598d0f9fab18b7995fa80726..26186c0bbc20bec0012522eb51fcfabbe16e239a 100644 (file)
@@ -12,6 +12,8 @@
 
 {{range .Statuses}}
 {{template "status.tmpl" (WithContext . $.Ctx)}}
+{{else}}
+<div class="no-data-found">No data found</div>
 {{end}}
 
 <div class="pagination">