mirror of
https://github.com/wekan/wekan.git
synced 2026-03-04 12:50:16 +01:00
Global Search improvements
* support for searching from the URL * add support for searching by assignee and member
This commit is contained in:
parent
8059856c39
commit
d74dc92681
7 changed files with 299 additions and 162 deletions
|
|
@ -14,20 +14,21 @@ template(name="globalSearch")
|
|||
if currentUser
|
||||
.wrapper
|
||||
form.global-search-instructions.js-search-query-form
|
||||
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" autofocus dir="auto")
|
||||
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" value="{{ query.get }}" autofocus dir="auto")
|
||||
if searching.get
|
||||
+spinner
|
||||
else if hasResults.get
|
||||
.global-search-dueat-list-wrapper
|
||||
h1
|
||||
= resultsHeading
|
||||
if queryErrors.get
|
||||
.global-search-results-list-wrapper
|
||||
if hasQueryErrors.get
|
||||
div
|
||||
each msg in errorMessages
|
||||
span.global-search-error-messages
|
||||
| {{_ msg.tag msg.value }}
|
||||
each card in results
|
||||
+resultCard(card)
|
||||
else
|
||||
h1
|
||||
= resultsHeading.get
|
||||
each card in results
|
||||
+resultCard(card)
|
||||
else
|
||||
.global-search-instructions
|
||||
+viewer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue