summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/components/sidebar_header.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/react/components/sidebar_header.jsx b/web/react/components/sidebar_header.jsx
index 0b59d2036..7f8fe3d52 100644
--- a/web/react/components/sidebar_header.jsx
+++ b/web/react/components/sidebar_header.jsx
@@ -121,9 +121,12 @@ module.exports = React.createClass({
},
render: function() {
var teamName = this.props.teamName ? this.props.teamName : config.SiteName;
+ var me = UserStore.getCurrentUser()
return (
<div className="team__header theme">
+ <img className="profile-picture" src={"/api/v1/users/" + me.id + "/image?time=" + me.update_at} />
+ <span className="user_name">{me.username}</span>
<a className="team__name" href="/channels/town-square">{ teamName }</a>
<NavbarDropdown teamType={this.props.teamType} />
</div>