Add joined date to profiles in web UI (#16169)

This commit is contained in:
Eugen Rochko
2021-05-07 14:33:19 +02:00
committed by GitHub
parent b42a8ef7d9
commit 2c77d97e0d
7 changed files with 34 additions and 8 deletions

View File

@ -326,6 +326,8 @@ class Header extends ImmutablePureComponent {
{account.get('id') !== me && !suspended && <AccountNoteContainer account={account} />}
{account.get('note').length > 0 && account.get('note') !== '<p></p>' && <div className='account__header__content translate' dangerouslySetInnerHTML={content} />}
<div className='account__header__joined'><FormattedMessage id='account.joined' defaultMessage='Joined {date}' values={{ date: intl.formatDate(account.get('created_at'), { year: 'numeric', month: 'short', day: '2-digit' }) }} /></div>
</div>
{!suspended && (

View File

@ -909,6 +909,10 @@
{
"defaultMessage": "Group",
"id": "account.badges.group"
},
{
"defaultMessage": "Joined {date}",
"id": "account.joined"
}
],
"path": "app/javascript/mastodon/features/account/components/header.json"
@ -1919,12 +1923,12 @@
"id": "home.hide_announcements"
},
{
"defaultMessage": "Your home timeline is empty! Visit {public} or use search to get started and meet other users.",
"defaultMessage": "Your home timeline is empty! Follow more people to fill it up. {suggestions}",
"id": "empty_column.home"
},
{
"defaultMessage": "the public timeline",
"id": "empty_column.home.public_timeline"
"defaultMessage": "See some suggestions",
"id": "empty_column.home.suggestions"
}
],
"path": "app/javascript/mastodon/features/home_timeline/index.json"
@ -2417,7 +2421,7 @@
"id": "notifications.mark_as_read"
},
{
"defaultMessage": "You don't have any notifications yet. Interact with others to start the conversation.",
"defaultMessage": "You don't have any notifications yet. When other people interact with you, you will see it here.",
"id": "empty_column.notifications"
}
],
@ -3249,4 +3253,4 @@
],
"path": "app/javascript/mastodon/features/video/index.json"
}
]
]

View File

@ -6769,6 +6769,17 @@ noscript {
}
}
.account__header__joined {
font-size: 14px;
padding: 5px 15px;
color: $darker-text-color;
.columns-area--mobile & {
padding-left: 20px;
padding-right: 20px;
}
}
.account__header__fields {
margin: 0;
border-top: 1px solid lighten($ui-base-color, 12%);