globalSearch.jade 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. template(name="globalSearchHeaderBar")
  2. if currentUser
  3. h1
  4. i.fa.fa-search
  5. | {{_ 'globalSearch-title'}}
  6. template(name="globalSearchModalTitle")
  7. if currentUser
  8. h2
  9. i.fa.fa-keyboard-o
  10. | {{_ 'globalSearch-title'}}
  11. template(name="globalSearch")
  12. if currentUser
  13. .wrapper
  14. form.global-search-instructions.js-search-query-form
  15. input.global-search-query-input(type="text" name="searchQuery" placeholder="{{_ 'search-example'}}" autofocus dir="auto")
  16. if searching.get
  17. +spinner
  18. else if hasResults.get
  19. .global-search-dueat-list-wrapper
  20. h1
  21. = resultsHeading
  22. if queryErrors.get
  23. div
  24. each msg in errorMessages
  25. span.global-search-error-messages
  26. | {{_ msg.tag msg.value }}
  27. each card in results
  28. +resultCard(card)
  29. else
  30. .global-search-instructions
  31. h1 Search Operators
  32. +viewer
  33. = 'Searches can include operators to refine the search. Operators are specified by writing the operator'
  34. = 'name and value separated by a colon. For example, an operator specification of `list:Blocked` would limit the search'
  35. = 'to cards that are contained in a list named *Blocked*. If the value contains spaces or special characters'
  36. = 'it must be enclosed in quotation marks (e.g. `list:"To Review"`).\n'
  37. = 'Available operators are:\n'
  38. = '* `board:title` - cards in boards matching the specified title\n'
  39. = '* `list:title` - cards in lists matching the specified title\n'
  40. = '* `swimlane:title` - cards in swimlanes matching the specified title\n'
  41. = '* `label:color` - cards that have a label matching the given color\n'
  42. = '* `label:name` - cards that have a label matching the given name\n'
  43. = '* `user:username` - cards where the specified user is a member or assignee\n'
  44. = '* `@username` - shorthand for `user:username`\n'
  45. = '* `#label` - shorthand for `label:color-or-name`\n'
  46. = '## Notes\n'
  47. = '* Multiple operators may be specified.\n'
  48. = '* Similar operators are *OR*ed together. Cards that match any of the conditions will be returned.\n'
  49. = ' `list:Available list:Blocked` would return cards contained in any list named *Blocked* or *Available*.\n'
  50. = '* Differing operators are *AND*ed together. Only cards that match all of the differing operators are returned.\n'
  51. = '`list:Available label:red` returns only cards in the list *Available* with a *red* label.\n'
  52. = '* Text searches are case insensitive.\n'
  53. template(name="globalSearchViewChangePopup")
  54. if currentUser
  55. ul.pop-over-list
  56. li
  57. with "globalSearchViewChange-choice-me"
  58. a.js-global-search-view-me
  59. i.fa.fa-user.colorful
  60. | {{_ 'globalSearchViewChange-choice-me'}}
  61. if $eq Utils.globalSearchView "me"
  62. i.fa.fa-check
  63. li
  64. with "globalSearchViewChange-choice-all"
  65. a.js-global-search-view-all
  66. i.fa.fa-users.colorful
  67. | {{_ 'globalSearchViewChange-choice-all'}}
  68. span.sub-name
  69. +viewer
  70. | {{_ 'globalSearchViewChange-choice-all-description' }}
  71. if $eq Utils.globalSearchView "all"
  72. i.fa.fa-check