mirror of https://github.com/requarks/wiki
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.
40 lines
1.4 KiB
40 lines
1.4 KiB
|
|
#header-container
|
|
nav.nav.has-shadow.stickyscroll#header
|
|
.nav-left
|
|
block rootNavLeft
|
|
a.nav-item.is-brand(href='/')
|
|
img(src='/favicons/android-icon-96x96.png', alt='Wiki')
|
|
a.nav-item(href='/')
|
|
h1.title Wiki
|
|
.nav-center
|
|
block rootNavCenter
|
|
.nav-item
|
|
p.control(v-bind:class="{ 'is-loading': searchload > 0 }")
|
|
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...')
|
|
span.nav-toggle
|
|
span
|
|
span
|
|
span
|
|
.nav-right.nav-menu
|
|
block rootNavRight
|
|
i.nav-item#notifload
|
|
|
|
transition(name="searchresults-anim", enter-active-class="slideInDown", leave-active-class="fadeOutUp")
|
|
.box.searchresults.animated(v-show='searchactive', v-cloak, style={'display':'none'})
|
|
.menu
|
|
p.menu-label
|
|
| Search Results
|
|
ul.menu-list
|
|
li(v-if="searchres.length === 0")
|
|
a: em No results matching your query
|
|
li(v-for='sres in searchres')
|
|
a(v-bind:href="'/' + sres._id", v-bind:class="{ 'is-active': searchmovekey === 'res.' + sres._id }") {{ sres.title }}
|
|
p.menu-label(v-if='searchsuggest.length > 0')
|
|
| Did you mean...?
|
|
ul.menu-list(v-if='searchsuggest.length > 0')
|
|
li(v-for='sug in searchsuggest')
|
|
a(v-on:click="useSuggestion(sug)", v-bind:class="{ 'is-active': searchmovekey === 'sug.' + sug }") {{ sug }}
|
|
|
|
|