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
|
|
|
|
|
form.js-search-query-form
|
|
|
|
|
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 16:52:56 +02:00
|
|
|
if $eq resultCount.get 0
|
|
|
|
|
| {{_ 'no-results' }}
|
|
|
|
|
else if $eq resultCount.get 1
|
|
|
|
|
| {{_ 'one-result' }}
|
|
|
|
|
else
|
|
|
|
|
| {{_ 'n-results' resultsCount.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
|
|
|
|
|
.global-search-card-wrapper
|
|
|
|
|
a.minicard-wrapper.card-title(href=card.absoluteUrl)
|
|
|
|
|
+minicard(card)
|
|
|
|
|
//= card.title
|
|
|
|
|
ul.global-search-context-list
|
|
|
|
|
li.global-search-context(title="{{_ 'board'}}")
|
|
|
|
|
+viewer
|
|
|
|
|
= card.getBoard.title
|
|
|
|
|
li.global-search-context.global-search-context-separator
|
|
|
|
|
= ' '
|
|
|
|
|
| {{_ 'context-separator'}}
|
|
|
|
|
= ' '
|
|
|
|
|
li.global-search-context(title="{{_ 'swimlane'}}")
|
|
|
|
|
+viewer
|
|
|
|
|
= card.getSwimlane.title
|
|
|
|
|
li.global-search-context
|
|
|
|
|
= ' '
|
|
|
|
|
| {{_ 'context-separator'}}
|
|
|
|
|
= ' '
|
|
|
|
|
li.global-search-context(title="{{_ 'list'}}")
|
|
|
|
|
+viewer
|
|
|
|
|
= card.getList.title
|
|
|
|
|
else
|
|
|
|
|
h2 Search Operators
|
2021-01-13 18:12:21 +02:00
|
|
|
.global-search-instructions
|
|
|
|
|
+viewer
|
|
|
|
|
= 'Searches can include the operators to refine the search. Operators are specified by writing the operator'
|
|
|
|
|
= 'name and value separated by a colon. An operator specification of `list:Blocked` would limit the search'
|
|
|
|
|
= 'to cards that are contained in a list named *Blocked*. If the value contains spaces or special characters'
|
|
|
|
|
= 'it most be enclosed in quotation marks (e.g. `list:"To Review"`).\n'
|
|
|
|
|
= 'Available operators are:\n'
|
|
|
|
|
= '* `board` - searches for cards in boards with the specified title\n'
|
|
|
|
|
= '* `list` - searches for cards in lists with the specified title\n'
|
|
|
|
|
= '* `swimlane` - searches for cards in swimlanes with the specified title\n'
|
|
|
|
|
= '* `label` - searches for cards that have a label with the given color or name\n'
|
|
|
|
|
= '* `user` - cards where the given username is a member or assignee\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
|