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.

38 lines
1.4 KiB

  1. #header-container
  2. nav.nav.has-shadow.stickyscroll#header
  3. .nav-left
  4. block rootNavLeft
  5. a.nav-item.is-brand(href='/')
  6. img(src='/favicons/android-icon-96x96.png', alt='Wiki')
  7. a.nav-item(href='/')
  8. h1.title Wiki
  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.nav-menu
  19. block rootNavRight
  20. i.nav-item#notifload
  21. .box.searchresults.animated(v-show='searchactive', transition='slide', v-cloak, style={'display':'none'})
  22. .menu
  23. p.menu-label
  24. | Search Results
  25. ul.menu-list
  26. li(v-if="searchres.length === 0")
  27. a: em No results matching your query
  28. li(v-for='sres in searchres')
  29. a(href='/{{ sres.document.entryPath }}', v-bind:class="{ 'is-active': searchmovekey === 'res.' + sres.document.entryPath }") {{ sres.document.title }}
  30. p.menu-label(v-if='searchsuggest.length > 0')
  31. | Did you mean...?
  32. ul.menu-list(v-if='searchsuggest.length > 0')
  33. li(v-for='sug in searchsuggest')
  34. a(v-on:click="useSuggestion(sug)", v-bind:class="{ 'is-active': searchmovekey === 'sug.' + sug }") {{ sug }}