add admin link to nav

This commit is contained in:
taehoon 2019-09-14 13:50:03 -04:00
parent 57fedd63ca
commit 4f75ad9905
2 changed files with 9 additions and 0 deletions

View file

@ -53,6 +53,14 @@
:title="$t('nav.preferences')" :title="$t('nav.preferences')"
/> />
</router-link> </router-link>
<a
v-if="currentUser && currentUser.role === 'admin'"
href="/pleroma/admin"
class="mobile-hidden"
><i
class="button-icon icon-gauge nav-icon"
:title="$t('nav.admin_panel')"
/></a>
<a <a
v-if="currentUser" v-if="currentUser"
href="#" href="#"

View file

@ -68,6 +68,7 @@
}, },
"nav": { "nav": {
"about": "About", "about": "About",
"admin_panel": "Admin Panel",
"back": "Back", "back": "Back",
"chat": "Local Chat", "chat": "Local Chat",
"friend_requests": "Follow Requests", "friend_requests": "Follow Requests",