|
|
|
@ -26,6 +26,8 @@ class InfosBanner extends Component{
|
|
|
|
|
let {username}= this.props.match.params;
|
|
|
|
|
let {pathname}=this.props.location;
|
|
|
|
|
moduleName=pathname.split("/")[3];
|
|
|
|
|
|
|
|
|
|
console.log(is_current)
|
|
|
|
|
return(
|
|
|
|
|
<div className="bannerPanel mb60">
|
|
|
|
|
<div className="educontent">
|
|
|
|
@ -113,6 +115,14 @@ class InfosBanner extends Component{
|
|
|
|
|
onClick={() => this.setState({moduleName: 'videos'})}
|
|
|
|
|
to={`/users/${username}/videos`}>视频</Link>
|
|
|
|
|
</li>}
|
|
|
|
|
|
|
|
|
|
{((is_current && current_user && current_user.is_teacher ) || current_user && current_user.admin)
|
|
|
|
|
&& <li className={`${moduleName == 'videos' ? 'active' : '' }`}>
|
|
|
|
|
<Link
|
|
|
|
|
onClick={() => this.setState({moduleName: 'videos'})}
|
|
|
|
|
to={`/users/${username}/videos`}>题库</Link>
|
|
|
|
|
</li>}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|