|
|
@ -124,7 +124,7 @@ class CompetitionsIndex extends Component{
|
|
|
|
size="large"
|
|
|
|
size="large"
|
|
|
|
dataSource={datas&&datas}
|
|
|
|
dataSource={datas&&datas}
|
|
|
|
renderItem={(item,key) => (
|
|
|
|
renderItem={(item,key) => (
|
|
|
|
<a href={item.competition_status==="ended"?`/competitions/${item.identifier}/common_header`:item.competition_status==="nearly_published"? this.props.current_user&&this.props.current_user.business===true?`/competitions/${item.identifier}/common_header`:this.props.current_user&&this.props.current_user.admin===true?`/competitions/${item.identifier}/common_header`:null:item.competition_status==="progressing"?`/competitions/${item.identifier}/common_header`:null}
|
|
|
|
<a href={item.competition_status==="ended"?`/newcompetitions/${item.identifier}/common_header`:item.competition_status==="nearly_published"? this.props.current_user&&this.props.current_user.business===true?`/newcompetitions/${item.identifier}/common_header`:this.props.current_user&&this.props.current_user.admin===true?`/newcompetitions/${item.identifier}/common_header`:null:item.competition_status==="progressing"?`/newcompetitions/${item.identifier}/common_header`:null}
|
|
|
|
className={item.competition_status==="ended"?"competitionstitlesshou":item.competition_status==="nearly_published"?
|
|
|
|
className={item.competition_status==="ended"?"competitionstitlesshou":item.competition_status==="nearly_published"?
|
|
|
|
this.props.current_user&&this.props.current_user.admin===true?"competitionstitlesshou":this.props.current_user&&this.props.current_user.business===true?"competitionstitlesshou":"endedfont":"competitionstitlesshou"}
|
|
|
|
this.props.current_user&&this.props.current_user.admin===true?"competitionstitlesshou":this.props.current_user&&this.props.current_user.business===true?"competitionstitlesshou":"endedfont":"competitionstitlesshou"}
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -182,7 +182,7 @@ class CompetitionsIndex extends Component{
|
|
|
|
title={<a className={item.competition_status==="ended"?"competitionstitlesshou":item.competition_status==="nearly_published"?
|
|
|
|
title={<a className={item.competition_status==="ended"?"competitionstitlesshou":item.competition_status==="nearly_published"?
|
|
|
|
this.props.current_user&&this.props.current_user.admin===true?"competitionstitlesshou":this.props.current_user&&this.props.current_user.business===true?"competitionstitlesshou":"endedfont":"competitionstitlesshou"}>
|
|
|
|
this.props.current_user&&this.props.current_user.admin===true?"competitionstitlesshou":this.props.current_user&&this.props.current_user.business===true?"competitionstitlesshou":"endedfont":"competitionstitlesshou"}>
|
|
|
|
<a className={"competitionstitles"}
|
|
|
|
<a className={"competitionstitles"}
|
|
|
|
href={item.competition_status==="ended"?`/competitions/${item.identifier}/common_header`:item.competition_status==="nearly_published"? this.props.current_user&&this.props.current_user.business===true?`/competitions/${item.identifier}/common_header`:this.props.current_user&&this.props.current_user.admin===true?`/competitions/${item.identifier}/common_header`:null:item.competition_status==="progressing"?`/competitions/${item.identifier}/common_header`:null}
|
|
|
|
href={item.competition_status==="ended"?`/newcompetitions/${item.identifier}/common_header`:item.competition_status==="nearly_published"? this.props.current_user&&this.props.current_user.business===true?`/newcompetitions/${item.identifier}/common_header`:this.props.current_user&&this.props.current_user.admin===true?`/newcompetitions/${item.identifier}/common_header`:null:item.competition_status==="progressing"?`/newcompetitions/${item.identifier}/common_header`:null}
|
|
|
|
>{item.name}{item.sub_title===null?"":`——${item.sub_title}`}</a>
|
|
|
|
>{item.name}{item.sub_title===null?"":`——${item.sub_title}`}</a>
|
|
|
|
{/*<span>{item.sub_title===null?"":*/}
|
|
|
|
{/*<span>{item.sub_title===null?"":*/}
|
|
|
|
{/*<Tag className="competitionsrelative" color="#87d068">{item.sub_title}</Tag>}*/}
|
|
|
|
{/*<Tag className="competitionsrelative" color="#87d068">{item.sub_title}</Tag>}*/}
|
|
|
|