From 7ecd23bb6cf828f61e65c1211f65c89bcdf5d3e2 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 1 Apr 2016 12:02:14 -0400 Subject: Revert "PLT-2027- Improvements to about dialog" --- webapp/components/about_build_modal.jsx | 127 +++++++++++++------------------- webapp/components/post.jsx | 12 +-- 2 files changed, 52 insertions(+), 87 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/about_build_modal.jsx b/webapp/components/about_build_modal.jsx index 0dd2a7db6..a47225f7e 100644 --- a/webapp/components/about_build_modal.jsx +++ b/webapp/components/about_build_modal.jsx @@ -6,7 +6,6 @@ import {Modal} from 'react-bootstrap'; import {FormattedMessage} from 'react-intl'; import React from 'react'; -import Constants from 'utils/constants.jsx'; export default class AboutBuildModal extends React.Component { constructor(props) { @@ -21,7 +20,6 @@ export default class AboutBuildModal extends React.Component { render() { const config = global.window.mm_config; const license = global.window.mm_license; - const mattermostLogo = Constants.MATTERMOST_ICON_SVG; let title = ( ); - let subTitle = ( - - ); - - let learnMore = ( -
- - - {'mattermost.org'} - -
- ); - let licensee; if (config.BuildEnterpriseReady === 'true') { title = ( @@ -60,29 +36,6 @@ export default class AboutBuildModal extends React.Component { defaultMessage='Enterprise Edition' /> ); - - subTitle = ( - - ); - - learnMore = ( -
- - - {'about.mattermost.com'} - -
- ); - if (license.IsLicensed === 'true') { title = ( ); licensee = ( -
- -  {license.Company} +
+
+ +
+
{license.Company}
); } @@ -104,7 +59,6 @@ export default class AboutBuildModal extends React.Component { return ( @@ -117,38 +71,57 @@ export default class AboutBuildModal extends React.Component { -
-
- {'Mattermost'} {title} + {licensee} +
+
+
-
-

{'Mattermost'} {title}

-

{subTitle}

-
-
- -  {config.Version} ({config.BuildNumber}) -
-
- {licensee} +
{config.Version}
+
+
+
+ +
+
{config.BuildNumber}
+
+
+
+
+
{config.BuildDate}
-
- {learnMore} -
+
+
+
{config.BuildHash}
+ + + ); } diff --git a/webapp/components/post.jsx b/webapp/components/post.jsx index bbf8d9bf6..30c47ee22 100644 --- a/webapp/components/post.jsx +++ b/webapp/components/post.jsx @@ -129,7 +129,6 @@ export default class Post extends React.Component { const post = this.props.post; const parentPost = this.props.parentPost; const posts = this.props.posts; - const mattermostLogo = Constants.MATTERMOST_ICON_SVG; if (!post.props) { post.props = {}; @@ -192,6 +191,8 @@ export default class Post extends React.Component { } else { src = Constants.DEFAULT_WEBHOOK_LOGO; } + } else if (Utils.isSystemMessage(post)) { + src = Constants.SYSTEM_MESSAGE_PROFILE_IMAGE; } profilePic = ( @@ -201,15 +202,6 @@ export default class Post extends React.Component { width='36' /> ); - - if (Utils.isSystemMessage(post)) { - profilePic = ( - - ); - } } return ( -- cgit v1.2.3-1-g7c22