|
|
|
@ -359,7 +359,7 @@ class Challenges extends Component {
|
|
|
|
|
{item.delete_url != undefined &&
|
|
|
|
|
<Tooltip placement="bottom" title={"删除"}>
|
|
|
|
|
<a onClick={() => this.delOperations(item.challenge_id)}
|
|
|
|
|
style={{ display: this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
style={{ display:this.props.user.admin===true?"block":this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
className="fl ring-op-green mr25">
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/close.svg")}
|
|
|
|
|
className="fl mt5 ml5" />
|
|
|
|
@ -371,7 +371,7 @@ class Challenges extends Component {
|
|
|
|
|
{item.up_url != undefined &&
|
|
|
|
|
<Tooltip placement="bottom" title={"向上移动"}>
|
|
|
|
|
<a onClick={operationstrue===true?"":() => this.operations(item.challenge_id, "up")}
|
|
|
|
|
style={{ display: this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
style={{ display:this.props.user.admin===true?"block":this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
className="fl ring-op-green mr25">
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/moveup.svg")}
|
|
|
|
|
className="fl mt2 ml4" />
|
|
|
|
@ -381,7 +381,7 @@ class Challenges extends Component {
|
|
|
|
|
{item.down_url != undefined &&
|
|
|
|
|
<Tooltip placement="bottom" title={"向下移动"}>
|
|
|
|
|
<a onClick={operationstrue===true?"":() => this.operations(item.challenge_id, "down")}
|
|
|
|
|
style={{ display: this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
style={{ display: this.props.user.admin===true?"block":this.props.identity < 4 && this.props.status === 0 ? "block" : 'none' }}
|
|
|
|
|
className="fl ring-op-green mr25">
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/movedown.svg")} className="fl mt2 ml4" />
|
|
|
|
|
</a>
|
|
|
|
@ -393,7 +393,7 @@ class Challenges extends Component {
|
|
|
|
|
item.st === 1 ?
|
|
|
|
|
<Tooltip placement="bottom" title={"编辑"}>
|
|
|
|
|
<a
|
|
|
|
|
style={{ display: this.props.identity < 4 && this.props.status < 3 ? "block" : 'none' }}
|
|
|
|
|
style={{ display:this.props.user.admin===true?"block":this.props.identity < 4 && this.props.status < 3 ? "block" : 'none' }}
|
|
|
|
|
href={"/shixuns/" + ChallengesDataList.shixun_identifier + "/challenges/" + item.challenge_id + "/editquestion"}
|
|
|
|
|
className="fl ring-green">
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/edit.svg")}
|
|
|
|
@ -403,7 +403,7 @@ class Challenges extends Component {
|
|
|
|
|
:
|
|
|
|
|
<Tooltip placement="bottom" title={"编辑"}>
|
|
|
|
|
<a
|
|
|
|
|
style={{ display: this.props.identity < 4 && this.props.status < 3 ? "block" : 'none' }}
|
|
|
|
|
style={{ display:this.props.user.admin===true?"block":this.props.identity < 4 && this.props.status < 3 ? "block" : 'none' }}
|
|
|
|
|
href={"/shixuns/" + ChallengesDataList.shixun_identifier + "/challenges/" + item.challenge_id + "/editcheckpoint"}
|
|
|
|
|
className="fl ring-green">
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/edit.svg")}
|
|
|
|
|