diff --git a/client/src/css/style.css b/client/src/css/style.css index 16e64d80..133acbb4 100644 --- a/client/src/css/style.css +++ b/client/src/css/style.css @@ -237,6 +237,7 @@ i[class^="icon-"]:before, i[class*=" icon-"]:before { .message-sender { color: #6BB758; + cursor: pointer; } .message-input-wrap { diff --git a/client/src/js/components/MessageBox.jsx b/client/src/js/components/MessageBox.jsx index 1d6a71d7..86b4b598 100644 --- a/client/src/js/components/MessageBox.jsx +++ b/client/src/js/components/MessageBox.jsx @@ -4,7 +4,7 @@ var _ = require('lodash'); var Infinite = require('react-infinite'); var Autolinker = require('autolinker'); -var util = require('../util'); +var MessageHeader = require('./MessageHeader.jsx'); var messageLineStore = require('../stores/messageLine'); var selectedTabStore = require('../stores/selectedTab'); var messageActions = require('../actions/message'); @@ -81,13 +81,7 @@ var MessageBox = React.createClass({ messageClass += ' message-' + message.type; } - lines.push( -
- {util.timestamp(message.time)} - {message.from ? {message.from} : null} - -
- ); + lines.push(+ {util.timestamp(message.time)} + {sender} + +
+ ); + } +}); + +module.exports = MessageHeader; \ No newline at end of file