mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-17 01:12:20 +00:00
Rejig gather join buttons
This commit is contained in:
parent
67cd9ef46e
commit
94708b9d0d
1 changed files with 27 additions and 13 deletions
|
@ -663,21 +663,35 @@ var Gather = React.createClass({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
if (gather.gatherers.length > 0) {
|
||||||
<div>
|
return (
|
||||||
<div className="panel panel-primary add-bottom">
|
<div>
|
||||||
<div className="panel-heading">Current Gather</div>
|
<div className="panel panel-primary add-bottom">
|
||||||
<div className="panel-body">
|
<div className="panel-heading">Current Gather</div>
|
||||||
<GatherProgress gather={gather} />
|
<div className="panel-body">
|
||||||
<GatherActions gather={gather} user={user} thisGatherer={thisGatherer} />
|
<GatherProgress gather={gather} />
|
||||||
|
<GatherActions gather={gather} user={user} thisGatherer={thisGatherer} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<Gatherers gather={gather} user={user} thisGatherer={thisGatherer} />
|
||||||
|
{gatherTeams}
|
||||||
|
{voting}
|
||||||
|
{previousGather}
|
||||||
</div>
|
</div>
|
||||||
<Gatherers gather={gather} user={user} thisGatherer={thisGatherer} />
|
);
|
||||||
{gatherTeams}
|
} else {
|
||||||
{voting}
|
return (
|
||||||
{previousGather}
|
<div>
|
||||||
</div>
|
<div className="panel panel-primary add-bottom">
|
||||||
);
|
<div className="panel-heading">Current Gather</div>
|
||||||
|
<div className="panel-body text-center">Be the first to join the gather
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<Gatherers gather={gather} user={user} thisGatherer={thisGatherer} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue