2020-10-29 19:13:31 +00:00
|
|
|
<template>
|
|
|
|
<nav
|
|
|
|
id="nav"
|
|
|
|
class="DesktopNav"
|
|
|
|
:class="{ '-logoLeft': logoLeft }"
|
|
|
|
@click="scrollToTop()"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
<div class="inner-nav">
|
|
|
|
<div class="item sitename">
|
|
|
|
<router-link
|
|
|
|
v-if="!hideSitename"
|
|
|
|
class="site-name"
|
|
|
|
:to="{ name: 'root' }"
|
|
|
|
active-class="home"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
{{ sitename }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
<router-link
|
|
|
|
class="logo"
|
|
|
|
:to="{ name: 'root' }"
|
|
|
|
:style="logoBgStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
<div
|
|
|
|
class="mask"
|
|
|
|
:style="logoMaskStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2020-10-29 19:13:31 +00:00
|
|
|
<img
|
|
|
|
:src="logo"
|
|
|
|
:style="logoStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
</router-link>
|
|
|
|
<div class="item right actions">
|
|
|
|
<search-bar
|
|
|
|
v-if="currentUser || !privateMode"
|
|
|
|
@toggled="onSearchBarToggled"
|
|
|
|
@click.stop.native
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2020-11-24 10:32:42 +00:00
|
|
|
<button
|
|
|
|
class="button-unstyled nav-icon"
|
2020-10-29 19:13:31 +00:00
|
|
|
@click.stop="openSettingsModal"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="cog"
|
|
|
|
:title="$t('nav.preferences')"
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2020-11-24 10:32:42 +00:00
|
|
|
</button>
|
2020-10-29 19:13:31 +00:00
|
|
|
<a
|
|
|
|
v-if="currentUser && currentUser.role === 'admin'"
|
|
|
|
href="/pleroma/admin/#/login-pleroma"
|
|
|
|
class="nav-icon"
|
|
|
|
target="_blank"
|
2022-02-20 14:06:26 +00:00
|
|
|
@click.stop
|
2020-11-24 10:32:42 +00:00
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="tachometer-alt"
|
|
|
|
:title="$t('nav.administration')"
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
<button
|
2020-10-29 19:13:31 +00:00
|
|
|
v-if="currentUser"
|
2020-11-24 10:32:42 +00:00
|
|
|
class="button-unstyled nav-icon"
|
2020-10-29 19:13:31 +00:00
|
|
|
@click.prevent="logout"
|
2020-11-24 10:32:42 +00:00
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="sign-out-alt"
|
|
|
|
:title="$t('login.logout')"
|
|
|
|
/>
|
|
|
|
</button>
|
2020-10-29 19:13:31 +00:00
|
|
|
</div>
|
2020-11-01 14:44:57 +00:00
|
|
|
</div>
|
2020-10-29 19:13:31 +00:00
|
|
|
</nav>
|
|
|
|
</template>
|
|
|
|
<script src="./desktop_nav.js"></script>
|
|
|
|
|
|
|
|
<style src="./desktop_nav.scss" lang="scss"></style>
|