Profile pic changes in LHS Header

Removing profile pic in the LHS Header if the user hasn't uploaded a custom profile pic.
This commit is contained in:
Asaad Mahmood
2015-07-22 20:38:40 +05:00
parent 9dc1f46d6e
commit fe0291a025
2 changed files with 5 additions and 1 deletions

View File

@@ -115,7 +115,11 @@ module.exports = React.createClass({
return (
<div className="team__header theme">
<a className="settings_link" href="#" data-toggle="modal" data-target="#user_settings1">
{ me.last_picture_update ?
<img className="user__picture" src={"/api/v1/users/" + me.id + "/image?time=" + me.update_at} />
:
<div />
}
<div className="header__info">
<div className="user__name">{ '@' + me.username}</div>
<div className="team__name">{ teamDisplayName }</div>