2021-01-10 21:52:25 +02:00
|
|
|
template(name="globalSearchHeaderBar")
|
|
|
|
|
h1
|
|
|
|
|
i.fa.fa-search
|
|
|
|
|
| {{_ 'globalSearch-title'}}
|
|
|
|
|
|
|
|
|
|
template(name="globalSearchModalTitle")
|
|
|
|
|
h2
|
|
|
|
|
i.fa.fa-keyboard-o
|
|
|
|
|
| {{_ 'globalSearch-title'}}
|
|
|
|
|
|
|
|
|
|
template(name="globalSearch")
|
2021-01-10 22:58:29 +02:00
|
|
|
.wrapper
|
2021-01-13 20:31:41 +02:00
|
|
|
form.global-search-instructions.js-search-query-form
|
|
|
|
|
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" autofocus dir="auto")
|
2021-01-12 00:48:43 +02:00
|
|
|
if searching.get
|
|
|
|
|
+spinner
|
|
|
|
|
else if hasResults.get
|
|
|
|
|
.global-search-dueat-list-wrapper
|
2021-01-12 16:48:29 +02:00
|
|
|
h1
|
2021-01-13 21:54:15 +02:00
|
|
|
if $eq resultsCount.get 0
|
2021-01-15 00:33:24 +02:00
|
|
|
| {{_ 'no-cards-found' }}
|
2021-01-13 21:54:15 +02:00
|
|
|
else if $eq resultsCount.get 1
|
2021-01-15 00:33:24 +02:00
|
|
|
| {{_ 'one-card-found' }}
|
2021-01-14 16:54:44 +02:00
|
|
|
else if $eq resultsCount.get totalHits.get
|
2021-01-15 00:33:24 +02:00
|
|
|
| {{_ 'n-cards-found' resultsCount.get }}
|
2021-01-14 16:54:44 +02:00
|
|
|
else
|
2021-01-15 00:33:24 +02:00
|
|
|
| {{_ 'n-n-of-n-cards-found' 1 resultsCount.get totalHits.get }}
|
2021-01-13 01:14:49 +02:00
|
|
|
if queryErrors.get
|
|
|
|
|
div
|
|
|
|
|
each msg in errorMessages
|
|
|
|
|
span.global-search-error-messages
|
|
|
|
|
| {{_ msg.tag msg.value }}
|
2021-01-12 00:48:43 +02:00
|
|
|
each card in results
|
2021-01-13 21:46:18 +02:00
|
|
|
+resultCard(card)
|
2021-01-12 00:48:43 +02:00
|
|
|
else
|
2021-01-13 20:31:41 +02:00
|
|
|
.global-search-instructions
|
|
|
|
|
h1 Search Operators
|
|
|
|
|
+viewer
|
2021-01-14 12:47:23 +02:00
|
|
|
= 'Searches can include operators to refine the search. Operators are specified by writing the operator'
|
|
|
|
|
= 'name and value separated by a colon. For example, an operator specification of `list:Blocked` would limit the search'
|
2021-01-13 20:31:41 +02:00
|
|
|
= 'to cards that are contained in a list named *Blocked*. If the value contains spaces or special characters'
|
2021-01-14 12:47:23 +02:00
|
|
|
= 'it must be enclosed in quotation marks (e.g. `list:"To Review"`).\n'
|
2021-01-13 20:31:41 +02:00
|
|
|
= 'Available operators are:\n'
|
2021-01-14 12:47:23 +02:00
|
|
|
= '* `board:title` - cards in boards matching the specified title\n'
|
|
|
|
|
= '* `list:title` - cards in lists matching the specified title\n'
|
|
|
|
|
= '* `swimlane:title` - cards in swimlanes matching the specified title\n'
|
|
|
|
|
= '* `label:color` - cards that have a label matching the given color\n'
|
|
|
|
|
= '* `label:name` - cards that have a label matching the given name\n'
|
2021-01-13 20:31:41 +02:00
|
|
|
= '* `user:username` - cards where the specified user is a member or assignee\n'
|
|
|
|
|
= '* `@username` - shorthand for `user:username`\n'
|
|
|
|
|
= '* `#label` - shorthand for `label:color-or-name`\n'
|
|
|
|
|
= '## Notes\n'
|
|
|
|
|
= '* Multiple operators may be specified.\n'
|
2021-01-14 12:47:23 +02:00
|
|
|
= '* Similar operators are *OR*ed together. Cards that match any of the conditions will be returned.\n'
|
2021-01-13 20:31:41 +02:00
|
|
|
= ' `list:Available list:Blocked` would return cards contained in any list named *Blocked* or *Available*.\n'
|
2021-01-14 12:47:23 +02:00
|
|
|
= '* Differing operators are *AND*ed together. Only cards that match all of the differing operators are returned.\n'
|
2021-01-13 20:31:41 +02:00
|
|
|
= '`list:Available label:red` returns only cards in the list *Available* with a *red* label.\n'
|
|
|
|
|
= '* Text searches are case insensitive.\n'
|
2021-01-10 21:52:25 +02:00
|
|
|
|
|
|
|
|
template(name="globalSearchViewChangePopup")
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
|
|
|
|
with "globalSearchViewChange-choice-me"
|
2021-01-10 22:58:29 +02:00
|
|
|
a.js-global-search-view-me
|
2021-01-10 21:52:25 +02:00
|
|
|
i.fa.fa-user.colorful
|
|
|
|
|
| {{_ 'globalSearchViewChange-choice-me'}}
|
|
|
|
|
if $eq Utils.globalSearchView "me"
|
|
|
|
|
i.fa.fa-check
|
|
|
|
|
li
|
|
|
|
|
with "globalSearchViewChange-choice-all"
|
2021-01-10 22:58:29 +02:00
|
|
|
a.js-global-search-view-all
|
2021-01-10 21:52:25 +02:00
|
|
|
i.fa.fa-users.colorful
|
|
|
|
|
| {{_ 'globalSearchViewChange-choice-all'}}
|
|
|
|
|
span.sub-name
|
|
|
|
|
+viewer
|
|
|
|
|
| {{_ 'globalSearchViewChange-choice-all-description' }}
|
|
|
|
|
if $eq Utils.globalSearchView "all"
|
|
|
|
|
i.fa.fa-check
|