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.

51 lines
1.7 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. a.nav-item(href='/history/' + pageData.meta.path)
  22. | History
  23. a.nav-item(href='/source/' + pageData.meta.path)
  24. | Source
  25. span.nav-item
  26. a.button(href='/edit/' + pageData.meta.path)
  27. span.icon
  28. i.fa.fa-edit
  29. span Edit
  30. a.button.is-primary.btn-create-prompt
  31. span.icon
  32. i.fa.fa-plus
  33. span Create
  34. .box.searchresults.animated(v-show='searchactive', transition='slide', v-cloak, style={'display':'none'})
  35. .menu
  36. p.menu-label
  37. | Search Results
  38. ul.menu-list
  39. li(v-if="searchres.length === 0")
  40. a: em No results matching your query
  41. li(v-for='sres in searchres')
  42. a(href='/{{ sres.document.entryPath }}', v-bind:class="{ 'is-active': searchmovekey === 'res.' + sres.document.entryPath }") {{ sres.document.title }}
  43. p.menu-label(v-if='searchsuggest.length > 0')
  44. | Did you mean...?
  45. ul.menu-list(v-if='searchsuggest.length > 0')
  46. li(v-for='sug in searchsuggest')
  47. a(v-on:click="useSuggestion(sug)", v-bind:class="{ 'is-active': searchmovekey === 'sug.' + sug }") {{ sug }}