Commit 5f4256e7 authored by Sheshank Shankar's avatar Sheshank Shankar Committed by Matthew Taylor

Add Link to profile pic (#1576)

* Add Link to profile pic

* Update comment-message.jsx

* Double-Quotes to Single-Quotes

* fix indentation

* Update comment-message.jsx

* Update comment-message.jsx

* Update comment-message.jsx
parent 161f5061
......@@ -133,6 +133,7 @@ var CommentMessage = injectIntl(React.createClass({
var messageText = this.getMessageText(this.props.objectType, this.props.commentee);
var commentorAvatar = 'https://cdn2.scratch.mit.edu/get_image/user/' + this.props.actorId + '_32x32.png';
var commentorAvatarAlt = this.props.actorUsername + '\'s avatar';
var url = '/users/' + this.props.actorUsername;
var classes = classNames(
'mod-comment-message',
......@@ -147,11 +148,13 @@ var CommentMessage = injectIntl(React.createClass({
>
<p className="comment-message-info">{messageText}</p>
<FlexRow className="mod-comment-message">
<img
className="comment-message-info-img"
src={commentorAvatar}
alt={commentorAvatarAlt}
/>
<a href={url}>
<img
className="comment-message-info-img"
src={commentorAvatar}
alt={commentorAvatarAlt}
/>
</a>
<Comment
comment={this.props.commentText}
/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment