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.
79 lines
2.7 KiB
79 lines
2.7 KiB
![]()
3 years ago
|
.uk-navbar-container.uk-padding-remove.uk-position-fixed.uk-position-top
|
||
|
nav(uk-navbar)
|
||
|
.uk-navbar-left
|
||
|
.uk-navbar-item
|
||
|
button(type="button", uk-toggle="target: #dtp-offcanvas").uk-button.uk-button-link.uk-padding-small
|
||
|
i.fas.fa-chevron-right
|
||
|
|
||
|
.uk-navbar-center
|
||
|
a(href="/").uk-navbar-item.uk-logo
|
||
|
img(src=`/img/icon/${site.domainKey}/icon-48x48.png`)
|
||
|
|
||
|
.uk-navbar-right
|
||
|
.uk-navbar-item
|
||
|
if user
|
||
|
div.no-select
|
||
|
if user.picture_url
|
||
|
img(
|
||
|
src= user.picture_url || '/img/default-member.png',
|
||
|
title="Member Menu",
|
||
|
).profile-navbar
|
||
|
else
|
||
|
include missing-profile-icon
|
||
|
div(uk-dropdown={ mode: 'click' }).uk-navbar-dropdown
|
||
|
ul.uk-nav.uk-navbar-dropdown-nav(style="z-index: 1024;")
|
||
|
li.uk-nav-heading.uk-text-center= user.displayName || user.username
|
||
|
li.uk-nav-divider
|
||
|
if (user.channel)
|
||
|
li
|
||
|
a(href=`/channel/${user.channel.slug}`)
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-broadcast-tower
|
||
|
span(style="max-width: 120px;").uk-text-truncate= user.channel.name
|
||
|
if (user.channel.liveEpisode)
|
||
|
li
|
||
|
a(href=`/channel/${user.channel.slug}/broadcaster`)
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-box-open
|
||
|
span Broadcaster
|
||
|
li
|
||
|
a(href='/dashboard')
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-tachometer-alt
|
||
|
span Dashboard
|
||
|
|
||
|
li.uk-nav-divider
|
||
|
|
||
|
li
|
||
|
a(href=`/user/${user._id}`)
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-user
|
||
|
span Profile
|
||
|
li
|
||
|
a(href=`/user/${user._id}/settings`)
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-cog
|
||
|
span Settings
|
||
|
|
||
|
if user.flags && user.flags.isAdmin
|
||
|
li.uk-nav-divider
|
||
|
li
|
||
|
a(href='/admin')
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-user-lock
|
||
|
span Admin
|
||
|
|
||
|
li.uk-nav-divider
|
||
|
|
||
|
li
|
||
|
a(href='/auth/logout')
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-sign-out-alt
|
||
|
span Logout
|
||
|
else
|
||
|
ul.uk-navbar-nav
|
||
|
li
|
||
|
a(href='/welcome').uk-button.uk-button-link
|
||
|
span.nav-item-icon
|
||
|
i.fas.fa-sign-in-alt
|
||
|
span(class="uk-visible@m").uk-margin-small-left GET STARTED!
|