From ed17613c30a79d05cfde7f6961d7b8b1861050c0 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Sat, 3 Oct 2015 16:36:58 +0100 Subject: [PATCH] Fixes #56 --- lib/react/gather.jsx | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/lib/react/gather.jsx b/lib/react/gather.jsx index 360f2b0..59875f8 100644 --- a/lib/react/gather.jsx +++ b/lib/react/gather.jsx @@ -232,11 +232,11 @@ var TeamSpeakButton = React.createClass({ url: "ts3server://ensl.org/", password: password, alien: { - channel: "NS2 Gather/Gather #1/Alien (Team Y)", + channel: "NS2 Gather/Gather #1/Alien", password: password }, marine: { - channel: "NS2 Gather/Gather #1/Marine (Team X)", + channel: "NS2 Gather/Gather #1/Marine", 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() { let self = this; let user = this.props.user; @@ -800,6 +813,7 @@ var Gatherers = React.createClass({ let adminOptions; if (admin) { adminOptions = [ +
,
Admin
,
Hive Stats
{hive}
+
Links
+
+ ENSL Profile  + Hive Profile +
{adminOptions}