|
|
|
@ -1123,15 +1123,15 @@ class NewHeader extends Component {
|
|
|
|
|
<a href={"/register"} className="mr5 color-white">注册</a>
|
|
|
|
|
</span> :
|
|
|
|
|
<div className="fr edu-menu-panel mr25" style={{ height: '60px' }}>
|
|
|
|
|
<a href={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/courses`} className="fl ml15">
|
|
|
|
|
<a href={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/classrooms`} className="fl ml15">
|
|
|
|
|
<img alt="头像" className="radius mt13" height="34" id="nh_user_logo" name="avatar_image"
|
|
|
|
|
src={getImageUrl(`images/` + user.image_url)} width="34">
|
|
|
|
|
</img>
|
|
|
|
|
</a>
|
|
|
|
|
<ul className="edu-menu-list" style={{ top: '60px' }}>
|
|
|
|
|
{/*<span className="bor-bottom-greyE currentName task-hide">{user.username}</span>*/}
|
|
|
|
|
<li><Link to={`/users/${this.props.current_user.login}/courses`}>我的个人主页</Link></li>
|
|
|
|
|
{coursestypes === true ? "" : <li><Link to={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/courses`}>{this.props.user && this.props.user.main_site === false ? "我的课堂" : "我的教学课堂"}</Link></li>}
|
|
|
|
|
<li><Link to={`/users/${this.props.current_user.login}/classrooms`}>我的个人主页</Link></li>
|
|
|
|
|
{coursestypes === true ? "" : <li><Link to={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/classrooms`}>{this.props.user && this.props.user.main_site === false ? "我的课堂" : "我的教学课堂"}</Link></li>}
|
|
|
|
|
{/* p 老师 l 学生 */}
|
|
|
|
|
{shixuntype === true ? "" : <li><Link to={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/shixuns`}>我的实训项目</Link></li>}
|
|
|
|
|
{pathstype === true ? "" : <li><Link to={`/users/${this.props.current_user === undefined ? "" : this.props.current_user.login}/paths`}>{this.props.user && this.props.user.main_site === false ? "我的课程" : "我的实践课程"}</Link></li>}
|
|
|
|
|