This commit is contained in:
Chris Blanchard 2015-10-03 16:36:58 +01:00
parent a169c44929
commit ed17613c30

View file

@ -232,11 +232,11 @@ var TeamSpeakButton = React.createClass({
url: "ts3server://ensl.org/", url: "ts3server://ensl.org/",
password: password, password: password,
alien: { alien: {
channel: "NS2 Gather/Gather #1/Alien (Team Y)", channel: "NS2 Gather/Gather #1/Alien",
password: password password: password
}, },
marine: { marine: {
channel: "NS2 Gather/Gather #1/Marine (Team X)", channel: "NS2 Gather/Gather #1/Marine",
password: password password: password
} }
}; };
@ -724,6 +724,19 @@ var Gatherers = React.createClass({
}); });
}, },
enslUrl(gatherer) {
return `http://www.ensl.org/users/${gatherer.id}`
},
hiveUrl(gatherer) {
let hiveId = gatherer.user.hive.id;
if (hiveId) {
return `http://hive.naturalselection2.com/profile/${hiveId}`
} else {
return null;
}
},
render() { render() {
let self = this; let self = this;
let user = this.props.user; let user = this.props.user;
@ -800,6 +813,7 @@ var Gatherers = React.createClass({
let adminOptions; let adminOptions;
if (admin) { if (admin) {
adminOptions = [ adminOptions = [
<hr />,
<dt>Admin</dt>, <dt>Admin</dt>,
<dd> <dd>
<button <button
@ -844,6 +858,15 @@ var Gatherers = React.createClass({
<dd>{team}</dd> <dd>{team}</dd>
<dt>Hive Stats</dt> <dt>Hive Stats</dt>
<dd>{hive}</dd> <dd>{hive}</dd>
<dt>Links</dt>
<dd>
<a href={this.enslUrl(gatherer)}
className="btn btn-xs btn-primary"
target="_blank">ENSL Profile</a>&nbsp;
<a href={this.hiveUrl(gatherer)}
className="btn btn-xs btn-primary"
target="_blank">Hive Profile</a>
</dd>
{adminOptions} {adminOptions}
</dl> </dl>
</div> </div>