From 4e38796e6964e22b61293568c85cea5e82c8e533 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaadmahmoodspin@users.noreply.github.com>
Date: Thu, 16 Jun 2016 17:42:38 +0500
Subject: Improving about modal and colon issue with webhooks (#3343)

Updating word break

Updating improvements for about modal
---
 webapp/components/channel_info_modal.jsx | 67 ++++++++++++++------------------
 1 file changed, 30 insertions(+), 37 deletions(-)

(limited to 'webapp/components/channel_info_modal.jsx')

diff --git a/webapp/components/channel_info_modal.jsx b/webapp/components/channel_info_modal.jsx
index d44df4056..7bd004411 100644
--- a/webapp/components/channel_info_modal.jsx
+++ b/webapp/components/channel_info_modal.jsx
@@ -20,8 +20,11 @@ export default class ChannelInfoModal extends React.Component {
 
         return false;
     }
+
     render() {
         let channel = this.props.channel;
+        let channelIcon;
+
         if (!channel) {
             const notFound = Utils.localizeMessage('channel_info.notFound', 'No Channel Found');
 
@@ -33,68 +36,58 @@ export default class ChannelInfoModal extends React.Component {
             };
         }
 
+        if (channel.type === 'O') {
+            channelIcon = (<span className='fa fa-globe'/>);
+        } else if (channel.type === 'P') {
+            channelIcon = (<span className='fa fa-lock'/>);
+        }
+
         const channelURL = Utils.getTeamURLFromAddressBar() + '/channels/' + channel.name;
 
         return (
             <Modal
+                dialogClassName='about-modal'
                 show={this.props.show}
                 onHide={this.props.onHide}
             >
-                <Modal.Header closeButtton={true}>
+                <Modal.Header closeButton={true}>
                     <Modal.Title>
-                        {channel.display_name}
+                        <FormattedMessage
+                            id='channel_info.about'
+                            defaultMessage='About'
+                        />
+                        <strong>{channelIcon}{channel.display_name}</strong>
                     </Modal.Title>
                 </Modal.Header>
                 <Modal.Body ref='modalBody'>
-                    <div className='row form-group'>
-                        <div className='col-sm-3 info__label'>
+                    <div className='form-group'>
+                        <div className='info__label'>
                             <FormattedMessage
-                                id='channel_info.name'
-                                defaultMessage='Channel Name:'
+                                id='channel_info.purpose'
+                                defaultMessage='Purpose:'
                             />
                         </div>
-                        <div className='col-sm-9'>{channel.display_name}</div>
+                        <div className='info__value'>{channel.purpose}</div>
                     </div>
-                    <div className='row form-group'>
-                        <div className='col-sm-3 info__label'>
+                    <div className='form-group'>
+                        <div className='info__label'>
                             <FormattedMessage
                                 id='channel_info.url'
-                                defaultMessage='Channel URL:'
+                                defaultMessage='URL:'
                             />
                         </div>
-                        <div className='col-sm-9'>{channelURL}</div>
+                        <div className='info__value'>{channelURL}</div>
                     </div>
-                    <div className='row form-group'>
-                        <div className='col-sm-3 info__label'>
+                    <div className='about-modal__hash form-group padding-top x2'>
+                        <p>
                             <FormattedMessage
                                 id='channel_info.id'
-                                defaultMessage='Channel ID:'
+                                defaultMessage='ID: '
                             />
-                        </div>
-                        <div className='col-sm-9'>{channel.id}</div>
-                    </div>
-                    <div className='row'>
-                        <div className='col-sm-3 info__label'>
-                            <FormattedMessage
-                                id='channel_info.purpose'
-                                defaultMessage='Channel Purpose:'
-                            />
-                        </div>
-                        <div className='col-sm-9'>{channel.purpose}</div>
+                            {channel.id}
+                        </p>
                     </div>
                 </Modal.Body>
-                <Modal.Footer>
-                    <button
-                        type='button'
-                        className='btn btn-default'
-                        onClick={this.props.onHide}
-                    >
-                        <FormattedMessage
-                            id='channel_info.close'
-                            defaultMessage='Close'
-                        />
-                    </button>
-                </Modal.Footer>
             </Modal>
         );
     }
-- 
cgit v1.2.3-1-g7c22

