wikijs-fork/views/common/header.pug

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-08-18 03:52:23 +00:00
#header-container
2016-11-21 01:09:50 +00:00
nav.nav.stickyscroll#header
.nav-left
block rootNavLeft
a.nav-item(href='/')
2016-11-22 03:41:57 +00:00
h1
i.icon-layers
= appconfig.title
.nav-center
block rootNavCenter
2016-09-05 18:11:51 +00:00
.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
2016-11-21 01:09:50 +00:00
.nav-right
block rootNavRight
i.nav-item#notifload
transition(name="searchresults-anim", enter-active-class="slideInDown", leave-active-class="fadeOutUp")
2016-11-22 03:41:57 +00:00
.searchresults.animated(v-show='searchactive', v-cloak, style={'display':'none'})
p.searchresults-label Search Results
ul.searchresults-list
li(v-if="searchres.length === 0")
a: em No results matching your query
li(v-for='sres in searchres', v-bind:class="{ 'is-active': searchmovekey === 'res.' + sres._id }")
a(v-bind:href="'/' + sres._id") {{ sres.title }}
p.searchresults-label(v-if='searchsuggest.length > 0') Did you mean...?
ul.searchresults-list(v-if='searchsuggest.length > 0')
li(v-for='sug in searchsuggest', v-bind:class="{ 'is-active': searchmovekey === 'sug.' + sug }")
a(v-on:click="useSuggestion(sug)") {{ sug }}
2016-08-18 03:52:23 +00:00