Add link to user's profile in Pleroma instance

This commit is contained in:
Angelina Filippova 2020-06-09 23:28:04 +03:00
parent cca3e01979
commit 2d510fb348
2 changed files with 9 additions and 1 deletions

View file

@ -9,7 +9,7 @@
<h1 v-else class="invalid">({{ $t('users.invalidNickname') }})</h1>
</div>
</router-link>
<a v-if="propertyExists(user, 'url')" :href="user.url" target="_blank" class="account">
<a v-if="propertyExists(user, 'url')" :href="user.url" target="_blank">
<i class="el-icon-top-right" title="Open user in instance"/>
</a>
</div>

View file

@ -5,6 +5,9 @@
<el-avatar v-if="propertyExists(user, 'avatar')" :src="user.avatar" size="large" />
<h1 v-if="propertyExists(user, 'nickname')">{{ user.nickname }}</h1>
<h1 v-else class="invalid">({{ $t('users.invalidNickname') }})</h1>
<a v-if="propertyExists(user, 'url')" :href="user.url" target="_blank">
<i class="el-icon-top-right" title="Open user in instance"/>
</a>
</div>
<div class="left-header-container">
<moderation-dropdown
@ -207,6 +210,11 @@ table {
.avatar-name-container {
display: flex;
align-items: center;
.el-icon-top-right {
font-size: 2em;
line-height: 36px;
color: #606266;
}
}
.invalid {
color: gray;