Rejig gather join buttons

This commit is contained in:
Chris Blanchard 2015-10-20 23:49:21 +01:00
parent 67cd9ef46e
commit 94708b9d0d

View file

@ -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>
);
}
} }
}); });