2021-01-10 21:52:25 +02:00
|
|
|
template(name="globalSearchHeaderBar")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
h1
|
|
|
|
|
i.fa.fa-search
|
|
|
|
|
| {{_ 'globalSearch-title'}}
|
2021-01-10 21:52:25 +02:00
|
|
|
|
|
|
|
|
template(name="globalSearchModalTitle")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
h2
|
|
|
|
|
i.fa.fa-keyboard-o
|
|
|
|
|
| {{_ 'globalSearch-title'}}
|
2021-01-10 21:52:25 +02:00
|
|
|
|
|
|
|
|
template(name="globalSearch")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
.wrapper
|
|
|
|
|
form.global-search-instructions.js-search-query-form
|
2021-01-17 16:01:42 +02:00
|
|
|
input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" value="{{ query.get }}" autofocus dir="auto")
|
2021-01-16 04:59:17 +02:00
|
|
|
if searching.get
|
|
|
|
|
+spinner
|
|
|
|
|
else if hasResults.get
|
2021-01-17 16:01:42 +02:00
|
|
|
.global-search-results-list-wrapper
|
|
|
|
|
if hasQueryErrors.get
|
2021-01-16 04:59:17 +02:00
|
|
|
div
|
|
|
|
|
each msg in errorMessages
|
|
|
|
|
span.global-search-error-messages
|
|
|
|
|
| {{_ msg.tag msg.value }}
|
2021-01-17 16:01:42 +02:00
|
|
|
else
|
|
|
|
|
h1
|
|
|
|
|
= resultsHeading.get
|
2021-01-17 21:04:05 +02:00
|
|
|
a.fa.fa-link(title="{{_ 'link-to-search' }}" href="{{ getSearchHref }}")
|
2021-01-17 16:01:42 +02:00
|
|
|
each card in results
|
|
|
|
|
+resultCard(card)
|
2021-01-16 04:59:17 +02:00
|
|
|
else
|
|
|
|
|
.global-search-instructions
|
|
|
|
|
+viewer
|
2021-01-17 00:05:45 +02:00
|
|
|
= searchInstructions
|
2021-01-10 21:52:25 +02:00
|
|
|
|
|
|
|
|
template(name="globalSearchViewChangePopup")
|
2021-01-16 04:59:17 +02:00
|
|
|
if currentUser
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
|
|
|
|
with "globalSearchViewChange-choice-me"
|
|
|
|
|
a.js-global-search-view-me
|
|
|
|
|
i.fa.fa-user.colorful
|
|
|
|
|
| {{_ 'globalSearchViewChange-choice-me'}}
|
|
|
|
|
if $eq Utils.globalSearchView "me"
|
|
|
|
|
i.fa.fa-check
|
|
|
|
|
li
|
|
|
|
|
with "globalSearchViewChange-choice-all"
|
|
|
|
|
a.js-global-search-view-all
|
|
|
|
|
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
|