|
|
|
@ -122,7 +122,10 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
size="large"
|
|
|
|
|
dataSource={datas&&datas}
|
|
|
|
|
renderItem={(item,key) => (
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
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"}
|
|
|
|
|
onClick={()=>this.setcompetitonurl(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)}>
|
|
|
|
|
|
|
|
|
|
<div className={"CompetitionsList"} >
|
|
|
|
|
{item.competition_status==="nearly_published"?
|
|
|
|
@ -131,9 +134,9 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
{item.description===null||item.description===undefined||item.description===""?<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.CompetitionsIndex .ant-list-vertical .ant-list-item-action{
|
|
|
|
|
margin-top:50px;
|
|
|
|
|
}
|
|
|
|
|
// .CompetitionsIndex .ant-list-vertical .ant-list-item-action{
|
|
|
|
|
// margin-top:50px;
|
|
|
|
|
// }
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>:""}
|
|
|
|
@ -174,14 +177,14 @@ class CompetitionsIndex extends Component{
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<List.Item.Meta
|
|
|
|
|
title={<div 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"}>
|
|
|
|
|
<span className={"competitionstitles"}
|
|
|
|
|
onClick={()=>this.setcompetitonurl(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}</span><span>{item.sub_title===null?"":<Tag className="competitionsrelative" color="#87d068">{
|
|
|
|
|
item.sub_title
|
|
|
|
|
}</Tag>}</span>
|
|
|
|
|
</div>}
|
|
|
|
|
</a>}
|
|
|
|
|
/>
|
|
|
|
|
{item.description}
|
|
|
|
|
</List.Item>
|
|
|
|
|