Add link to documentation on Settings tab

This commit is contained in:
Angelina Filippova 2020-02-05 20:30:19 +03:00
parent d4be7d2643
commit 363424cad3
3 changed files with 37 additions and 10 deletions

View file

@ -358,7 +358,8 @@ export default {
successfullyUpdated: 'Successfully updated',
metadatLowerCase: 'metadata',
files: 'files',
successfullyRemoved: 'Setting removed successfully!'
successfullyRemoved: 'Setting removed successfully!',
seeDocs: 'See Documentation'
},
invites: {
inviteTokens: 'Invite tokens',

View file

@ -1,6 +1,20 @@
<template>
<div class="settings-container">
<h1>{{ $t('settings.settings') }}</h1>
<div class="settings-header-container">
<h1 class="settings-header">{{ $t('settings.settings') }}</h1>
<el-link
:underline="false"
href="https://docs-develop.pleroma.social/backend/admin/config/"
target="_blank">
<el-button class="settings-docs-button">
<span>
<i class="el-icon-document"/>
{{ $t('settings.seeDocs') }}
</span>
</el-button>
</el-link>
</div>
<el-tabs v-model="activeTab" :tab-position="tabPosition">
<el-tab-pane :label="$t('settings.activityPub')" :disabled="configDisabled" lazy>
<activity-pub/>
@ -143,9 +157,21 @@ export default {
.el-tabs {
margin-top: 20px
}
h1 {
margin: 22px 0 0 15px;
}
}
.settings-docs-button {
width: 163px;
text-align: left;
padding: 10px;
}
.settings-header {
margin: 0;
}
.settings-header-container {
display: flex;
height: 36px;
justify-content: space-between;
align-items: center;
margin: 22px 15px 15px 15px;
}
@media only screen and (min-width: 1824px) {
.settings-container {

View file

@ -112,11 +112,11 @@ export default {
}
}
.filter-container {
display: flex;
height: 36px;
justify-content: space-between;
align-items: center;
margin: 22px 0 15px 0;
display: flex;
height: 36px;
justify-content: space-between;
align-items: center;
margin: 22px 0 15px 0;
}
.select-instance {
width: 350px;