mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-12-02 09:02:29 +00:00
Show completed gather timestamp fixes #27
This commit is contained in:
parent
c3722e9f81
commit
fa3aa4307a
1 changed files with 6 additions and 1 deletions
|
@ -798,11 +798,16 @@ var Gatherers = React.createClass({
|
||||||
});
|
});
|
||||||
|
|
||||||
var CompletedGather = React.createClass({
|
var CompletedGather = React.createClass({
|
||||||
|
completionDate() {
|
||||||
|
let d = new Date(this.props.gather.done.time);
|
||||||
|
return d.toLocaleTimeString();
|
||||||
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div id="previous_gather">
|
<div id="previous_gather">
|
||||||
<div className="panel panel-default add-bottom">
|
<div className="panel panel-default add-bottom">
|
||||||
<div className="panel-heading">Previous Gather</div>
|
<div className="panel-heading">Previous Gather ({this.completionDate()})</div>
|
||||||
</div>
|
</div>
|
||||||
<GatherTeams gather={this.props.gather} />
|
<GatherTeams gather={this.props.gather} />
|
||||||
<GatherVotingResults gather={this.props.gather} maps={this.props.maps} servers={this.props.servers}/>
|
<GatherVotingResults gather={this.props.gather} maps={this.props.maps} servers={this.props.servers}/>
|
||||||
|
|
Loading…
Reference in a new issue