|
|
@ -1187,7 +1187,7 @@ submittojoinclass=(value)=>{
|
|
|
|
onBlur={(e)=>this.hideshowSearchOpen(e)} onMouseLeave={()=>this.setevaluatinghides()}>
|
|
|
|
onBlur={(e)=>this.hideshowSearchOpen(e)} onMouseLeave={()=>this.setevaluatinghides()}>
|
|
|
|
<Search
|
|
|
|
<Search
|
|
|
|
id={"HeaderSearchs"}
|
|
|
|
id={"HeaderSearchs"}
|
|
|
|
placeholder="实践课程/课堂/实训项目/交流问答"
|
|
|
|
placeholder="实践课程/翻转课堂/实训项目/交流问答"
|
|
|
|
onInput={()=>this.onKeywordSearchKeyDowns()}
|
|
|
|
onInput={()=>this.onKeywordSearchKeyDowns()}
|
|
|
|
onSearch={(value) => this.onKeywordSearchKeyDown(value)}
|
|
|
|
onSearch={(value) => this.onKeywordSearchKeyDown(value)}
|
|
|
|
// onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
|
// onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
@ -1233,10 +1233,10 @@ submittojoinclass=(value)=>{
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<ul className="edu-menu-list" style={{top:'60px'}}>
|
|
|
|
<ul className="edu-menu-list" style={{top:'60px'}}>
|
|
|
|
{/*<span className="bor-bottom-greyE currentName task-hide">{user.username}</span>*/}
|
|
|
|
{/*<span className="bor-bottom-greyE currentName task-hide">{user.username}</span>*/}
|
|
|
|
{coursestypes===true?"":<li><Link to={`/users/${this.props.current_user===undefined?"":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>}
|
|
|
|
{/* p 老师 l 学生 */}
|
|
|
|
{/* p 老师 l 学生 */}
|
|
|
|
{shixuntype===true?"":<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/shixuns`}>我的实训项目</Link></li>}
|
|
|
|
{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`}>我的实践课程</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>}
|
|
|
|
{this.props.user&&this.props.user.main_site===true?<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/projects`}>我的开发项目</Link></li>:""}
|
|
|
|
{this.props.user&&this.props.user.main_site===true?<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/projects`}>我的开发项目</Link></li>:""}
|
|
|
|
{/*<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/package`}>我的众包</Link></li>*/}
|
|
|
|
{/*<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/package`}>我的众包</Link></li>*/}
|
|
|
|
<li style={{display: this.props.Headertop === undefined ? 'none' : this.props.Headertop.customer_management_url===null || this.props.Headertop.customer_management_url===""? 'none' : 'block'}}>
|
|
|
|
<li style={{display: this.props.Headertop === undefined ? 'none' : this.props.Headertop.customer_management_url===null || this.props.Headertop.customer_management_url===""? 'none' : 'block'}}>
|
|
|
@ -1284,17 +1284,17 @@ submittojoinclass=(value)=>{
|
|
|
|
<div className="edu-menu-list" style={{top: '60px',width:"240px"}}>
|
|
|
|
<div className="edu-menu-list" style={{top: '60px',width:"240px"}}>
|
|
|
|
<div className="overPart"></div>
|
|
|
|
<div className="overPart"></div>
|
|
|
|
<ul className={coursestypes===true&&this.props.user&&this.props.user.main_site===false?"fl headwith100b edu-txt-center pr ul-leftline":"fl with50 edu-txt-center pr ul-leftline"}>
|
|
|
|
<ul className={coursestypes===true&&this.props.user&&this.props.user.main_site===false?"fl headwith100b edu-txt-center pr ul-leftline":"fl with50 edu-txt-center pr ul-leftline"}>
|
|
|
|
{this.props.current_user&&this.props.current_user.user_identity==="学生"?"":coursestypes===true?"":<li><a onClick={(url)=>this.getUser("/courses/new")}>新建课堂</a></li>}
|
|
|
|
{this.props.current_user&&this.props.current_user.user_identity==="学生"?"":coursestypes===true?"":<li><a onClick={(url)=>this.getUser("/courses/new")}>{this.props.user&&this.props.user.main_site===false?"新建课堂":"翻转课堂"}</a></li>}
|
|
|
|
{shixuntype===true?"":<li><a onClick={(url)=>this.getUser("/shixuns/new")}>新建实训项目</a></li>}
|
|
|
|
{shixuntype===true?"":<li><a onClick={(url)=>this.getUser("/shixuns/new")}>新建实训项目</a></li>}
|
|
|
|
{this.props.Headertop===undefined?"":
|
|
|
|
{this.props.Headertop===undefined?"":
|
|
|
|
pathstype===true?"":<li><a onClick={(url)=>this.getUser("/paths/new")} >新建实践课程</a></li>
|
|
|
|
pathstype===true?"":this.props.user&&this.props.user.main_site===true||this.props.user&&this.props.user.admin===true?<li><a onClick={(url)=>this.getUser("/paths/new")} >新建实践课程</a></li>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{this.props.user&&this.props.user.main_site===true?<li><a onClick={(url)=>this.getUser("/projects/new","projects")} target="_blank">新建开发项目</a></li>:""}
|
|
|
|
{this.props.user&&this.props.user.main_site===true?<li><a onClick={(url)=>this.getUser("/projects/new","projects")} target="_blank">新建开发项目</a></li>:""}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
{coursestypes===true&&this.props.user&&this.props.user.main_site===false?"":<ul className="fl with50 edu-txt-center">
|
|
|
|
{coursestypes===true&&this.props.user&&this.props.user.main_site===false?"":<ul className="fl with50 edu-txt-center">
|
|
|
|
|
|
|
|
|
|
|
|
{coursestypes===true?"":<li>
|
|
|
|
{coursestypes===true?"":<li>
|
|
|
|
<a onClick={this.tojoinclass}>加入课堂</a>
|
|
|
|
<a onClick={this.tojoinclass}>{this.props.user&&this.props.user.main_site===false?"加入课堂":"加入翻转课堂"}</a>
|
|
|
|
</li>}
|
|
|
|
</li>}
|
|
|
|
|
|
|
|
|
|
|
|
{Addcoursestypes===true?<Addcourses
|
|
|
|
{Addcoursestypes===true?<Addcourses
|
|
|
|