aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-09-14 13:50:03 -0400
committertaehoon <th.dev91@gmail.com>2019-10-01 07:36:41 -0400
commit4f75ad9905005beba07744f33273c2e745e78d2e (patch)
treea9325acbdb80732481abf8fd3bc12794c4adc6cb
parent57fedd63cacf3bac86d96c4a0d05e941422ec712 (diff)
add admin link to nav
-rw-r--r--src/App.vue8
-rw-r--r--src/i18n/en.json1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
index 8d7f6c79..5d502f26 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -54,6 +54,14 @@
/>
</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
v-if="currentUser"
href="#"
class="mobile-hidden"
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 52cf0f36..389e84c8 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -68,6 +68,7 @@
},
"nav": {
"about": "About",
+ "admin_panel": "Admin Panel",
"back": "Back",
"chat": "Local Chat",
"friend_requests": "Follow Requests",