You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

  1. #header-container
  2. nav.nav.stickyscroll#header
  3. .nav-left
  4. block rootNavLeft
  5. a.nav-item(href='/')
  6. h1
  7. i.icon-layers
  8. = appconfig.title
  9. .nav-center
  10. block rootNavCenter
  11. .nav-item
  12. p.control(v-bind:class='{ "is-loading": searchload > 0 }')
  13. input.input#search-input(type='text', v-model='searchq', @keyup.esc='closeSearch', @keyup.down='moveDownSearch', @keyup.up='moveUpSearch', @keyup.enter='moveSelectSearch', debounce='400', placeholder='Search...')
  14. span.nav-toggle
  15. span
  16. span
  17. span
  18. .nav-right
  19. block rootNavRight
  20. i.nav-item#notifload
  21. transition(name='searchresults-anim', enter-active-class='slideInDown', leave-active-class='fadeOutUp')
  22. .searchresults.animated(v-show='searchactive', v-cloak, style={'display':'none'})
  23. p.searchresults-label Search Results
  24. ul.searchresults-list
  25. li(v-if='searchres.length === 0')
  26. a: em No results matching your query
  27. li(v-for='sres in searchres', v-bind:class='{ "is-active": searchmovekey === "res." + sres._id }')
  28. a(v-bind:href='"/" + sres._id') {{ sres.title }}
  29. p.searchresults-label(v-if='searchsuggest.length > 0') Did you mean...?
  30. ul.searchresults-list(v-if='searchsuggest.length > 0')
  31. li(v-for='sug in searchsuggest', v-bind:class='{ "is-active": searchmovekey === "sug." + sug }')
  32. a(v-on:click='useSuggestion(sug)') {{ sug }}