client: display moved information on profile

This commit is contained in:
Johann150 2022-11-22 16:17:06 +01:00
parent a55893ac14
commit 836a152fb3
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 15 additions and 0 deletions

View file

@ -831,6 +831,7 @@ oauthErrorGoBack: "An error happened while trying to authenticate a 3rd party ap
\ Please go back and try again." \ Please go back and try again."
appAuthorization: "App authorization" appAuthorization: "App authorization"
noPermissionsRequested: "(No permissions requested.)" noPermissionsRequested: "(No permissions requested.)"
movedTo: "This user has moved to {handle}."
_emailUnavailable: _emailUnavailable:
used: "This email address is already being used" used: "This email address is already being used"
format: "The format of this email address is invalid" format: "The format of this email address is invalid"

View file

@ -9,6 +9,16 @@
<div class="profile"> <div class="profile">
<MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/> <MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/>
<MkInfo v-if="user.movedTo" class="moved">
<I18n :src="i18n.ts.movedTo" tag="span">
<template #handle>
<MkA :to="userPage(user.movedTo)" style="color: var(--accent);">
<MkAcct :user="user.movedTo"/>
</MkA>
</template>
</I18n>
</MkInfo>
<div :key="user.id" class="_block main"> <div :key="user.id" class="_block main">
<div class="banner-container" :style="style"> <div class="banner-container" :style="style">
<div ref="bannerEl" class="banner" :style="style"></div> <div ref="bannerEl" class="banner" :style="style"></div>
@ -193,6 +203,10 @@ onUnmounted(() => {
> .profile { > .profile {
> .moved {
margin-bottom: 1em;
}
> .main { > .main {
position: relative; position: relative;
overflow: hidden; overflow: hidden;