mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
15 lines
874 B
Plaintext
15 lines
874 B
Plaintext
mixin boardnav(selected, showIndex, upLevel)
|
|
if showIndex
|
|
|
|
|
a(href=`${upLevel ? '../' : ''}index.html` class=(selected === 'index' ? 'bold' : '')) [#{__('Index')}]
|
|
|
|
|
a(href=`${upLevel ? '../' : ''}catalog.html` class=(selected === 'catalog' ? 'bold' : '')) [#{__('Catalog')}]
|
|
if board.settings != null && board.settings.hideBanners === false
|
|
|
|
|
a(href=`${upLevel ? '../' : ''}banners.html` class=(selected === 'banners' ? 'bold' : '')) [#{__('Banners')}]
|
|
|
|
|
a(href=`${upLevel ? '../' : ''}logs.html` class=(selected === 'logs' ? 'bold' : '')) [#{__('Logs')}]
|
|
if thread != null && board.settings != null && board.settings.archiveLinks === true
|
|
|
|
|
a(href=`${archiveLinksURL.replace('%s', encodeURIComponent(meta.url+'/'+thread.board+'/thread/'+thread.postId+'.html'))}` rel='nofollow' referrerpolicy='same-origin' target='_blank') [#{__('Archive')}]
|