Merge remote-tracking branch 'origin/develop' into admin-recent-users
This commit is contained in:
commit
5f3b33cce7
4 changed files with 20 additions and 2 deletions
|
@ -6,7 +6,9 @@ import { FormattedMessage } from 'react-intl';
|
||||||
import Avatar from './avatar';
|
import Avatar from './avatar';
|
||||||
import DisplayName from './display_name';
|
import DisplayName from './display_name';
|
||||||
import Permalink from './permalink';
|
import Permalink from './permalink';
|
||||||
|
import Icon from './icon';
|
||||||
import IconButton from './icon_button';
|
import IconButton from './icon_button';
|
||||||
|
import RelativeTimestamp from './relative_timestamp';
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
|
||||||
|
@ -41,6 +43,7 @@ class Account extends ImmutablePureComponent {
|
||||||
actionIcon: PropTypes.string,
|
actionIcon: PropTypes.string,
|
||||||
actionTitle: PropTypes.string,
|
actionTitle: PropTypes.string,
|
||||||
onActionClick: PropTypes.func,
|
onActionClick: PropTypes.func,
|
||||||
|
withDate: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
handleFollow = () => {
|
handleFollow = () => {
|
||||||
|
@ -68,7 +71,7 @@ class Account extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { account, intl, hidden, onActionClick, actionIcon, actionTitle, me } = this.props;
|
const { account, intl, hidden, onActionClick, actionIcon, actionTitle, me, withDate } = this.props;
|
||||||
|
|
||||||
if (!account) {
|
if (!account) {
|
||||||
return <div />;
|
return <div />;
|
||||||
|
@ -136,6 +139,11 @@ class Account extends ImmutablePureComponent {
|
||||||
{buttons}
|
{buttons}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{withDate && (<div className='account__joined-at'>
|
||||||
|
<Icon id='calendar' />
|
||||||
|
<RelativeTimestamp timestamp={account.get('created_at')} />
|
||||||
|
</div>)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ class UserIndex extends ImmutablePureComponent {
|
||||||
emptyMessage={intl.formatMessage(messages.empty)}
|
emptyMessage={intl.formatMessage(messages.empty)}
|
||||||
>
|
>
|
||||||
{accountIds.map(id =>
|
{accountIds.map(id =>
|
||||||
<AccountContainer key={id} id={id} withNote={false} />,
|
<AccountContainer key={id} id={id} withDate />,
|
||||||
)}
|
)}
|
||||||
</ScrollableList>
|
</ScrollableList>
|
||||||
</Column>
|
</Column>
|
||||||
|
|
|
@ -138,6 +138,7 @@ const buildAccount = adminUser => fromJS({
|
||||||
header_static: '',
|
header_static: '',
|
||||||
emojis: [],
|
emojis: [],
|
||||||
fields: [],
|
fields: [],
|
||||||
|
created_at: adminUser.get('created_at'),
|
||||||
pleroma: {
|
pleroma: {
|
||||||
is_active: adminUser.get('is_active'),
|
is_active: adminUser.get('is_active'),
|
||||||
is_confirmed: adminUser.get('is_confirmed'),
|
is_confirmed: adminUser.get('is_confirmed'),
|
||||||
|
|
|
@ -516,3 +516,12 @@ a .account__avatar {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.account__joined-at {
|
||||||
|
padding: 3px 2px 0 48px;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
i.fa-calendar {
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue