Merge pull request #1641 from florianorben/display_system_username

Display username 'System' for system messages
Этот коммит содержится в:
Joram Wilander
2015-12-08 08:14:25 -05:00
родитель 2a9fbd7a26 7d3b3869c9
Коммит eb465501f9
4 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@@ -34,7 +34,7 @@ export default class PostHeader extends React.Component {
userProfile = (
<UserProfile
userId={''}
overwriteName={''}
overwriteName={Constants.SYSTEM_MESSAGE_PROFILE_NAME}
overwriteImage={Constants.SYSTEM_MESSAGE_PROFILE_IMAGE}
disablePopover={true}
/>

Просмотреть файл

@@ -167,7 +167,7 @@ export default class RhsRootPost extends React.Component {
userProfile = (
<UserProfile
userId={''}
overwriteName={''}
overwriteName={Constants.SYSTEM_MESSAGE_PROFILE_NAME}
overwriteImage={Constants.SYSTEM_MESSAGE_PROFILE_IMAGE}
disablePopover={true}
/>

Просмотреть файл

@@ -121,6 +121,7 @@ export default {
POST_DELETED: 'deleted',
POST_TYPE_JOIN_LEAVE: 'system_join_leave',
SYSTEM_MESSAGE_PREFIX: 'system_',
SYSTEM_MESSAGE_PROFILE_NAME: 'System',
SYSTEM_MESSAGE_PROFILE_IMAGE: '/static/images/logo_compact.png',
RESERVED_TEAM_NAMES: [
'www',

Просмотреть файл

@@ -373,10 +373,6 @@ body.ios {
background-color: beige;
}
&.post--system .post__header .col__name {
display: none;
}
ul {
margin: 0;
padding: 0;