|
|
@ -326,21 +326,10 @@ class Challenges extends Component {
|
|
|
|
}} /> :
|
|
|
|
}} /> :
|
|
|
|
|
|
|
|
|
|
|
|
<div className="mt30 pl20 pr20">
|
|
|
|
<div className="mt30 pl20 pr20">
|
|
|
|
|
|
|
|
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
|
|
|
|
<span className="font-16 fl">简介</span>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={"编辑"}>
|
|
|
|
|
|
|
|
<a style={{ display: this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status < 3 ? "block" : 'none' }}
|
|
|
|
|
|
|
|
href={"/shixuns/" + id + "/settings?edit=1"} className="ring-green fr">
|
|
|
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/edit.svg")} className="fl mt3 ml2" />
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/new"}
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/new"}
|
|
|
|
className="white-btn edu-greenline-btn fr"
|
|
|
|
className="white-btn edu-greenline-btn fr addshixuns"
|
|
|
|
// data-tip-down="新增代码编辑类型任务"
|
|
|
|
// data-tip-down="新增代码编辑类型任务"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Tooltip placement="bottom" title={"新增代码编辑类型任务"}>
|
|
|
|
<Tooltip placement="bottom" title={"新增代码编辑类型任务"}>
|
|
|
@ -353,7 +342,7 @@ class Challenges extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/newquestion"}
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/newquestion"}
|
|
|
|
className="white-btn edu-greenline-btn fr mr20"
|
|
|
|
className="white-btn edu-greenline-btn fr mr20 addshixuns"
|
|
|
|
// data-tip-down="新增选择题类型任务"
|
|
|
|
// data-tip-down="新增选择题类型任务"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Tooltip placement="bottom" title={"新增选择题类型任务"}>
|
|
|
|
<Tooltip placement="bottom" title={"新增选择题类型任务"}>
|
|
|
@ -364,6 +353,17 @@ class Challenges extends Component {
|
|
|
|
</Link> : ""
|
|
|
|
</Link> : ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
|
|
|
|
<span className="font-16 fl">简介</span>
|
|
|
|
|
|
|
|
<Tooltip placement="bottom" title={"编辑"}>
|
|
|
|
|
|
|
|
<a style={{ display: this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status < 3 ? "block" : 'none' }}
|
|
|
|
|
|
|
|
href={"/shixuns/" + id + "/settings?edit=1"} className="ring-green fr">
|
|
|
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/edit.svg")} className="fl mt3 ml2" />
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="justify break_full_word new_li "
|
|
|
|
<div className="justify break_full_word new_li "
|
|
|
|
id="challenge_editorMd_description">
|
|
|
|
id="challenge_editorMd_description">
|
|
|
|
<p id="ReactMarkdown" style={{overflow:'hidden'}}>
|
|
|
|
<p id="ReactMarkdown" style={{overflow:'hidden'}}>
|
|
|
@ -382,7 +382,7 @@ class Challenges extends Component {
|
|
|
|
<span className="font-16 fl">全部任务</span>
|
|
|
|
<span className="font-16 fl">全部任务</span>
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/new"}
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/new"}
|
|
|
|
className="white-btn edu-greenline-btn fr"
|
|
|
|
className="white-btn edu-greenline-btn fr addshixuns"
|
|
|
|
// data-tip-down="新增代码编辑类型任务"
|
|
|
|
// data-tip-down="新增代码编辑类型任务"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Tooltip placement="bottom" title={"新增代码编辑类型任务"}>
|
|
|
|
<Tooltip placement="bottom" title={"新增代码编辑类型任务"}>
|
|
|
@ -395,7 +395,7 @@ class Challenges extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
{this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/newquestion"}
|
|
|
|
<Link to={"/shixuns/" + id + "/challenges/newquestion"}
|
|
|
|
className="white-btn edu-greenline-btn fr mr20"
|
|
|
|
className="white-btn edu-greenline-btn fr mr20 addshixuns"
|
|
|
|
// data-tip-down="新增选择题类型任务"
|
|
|
|
// data-tip-down="新增选择题类型任务"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Tooltip placement="bottom" title={"新增选择题类型任务"}>
|
|
|
|
<Tooltip placement="bottom" title={"新增选择题类型任务"}>
|
|
|
|