mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 23:52:50 +00:00
Fixes #56
This commit is contained in:
parent
a169c44929
commit
ed17613c30
1 changed files with 25 additions and 2 deletions
|
@ -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>
|
||||||
|
<a href={this.hiveUrl(gatherer)}
|
||||||
|
className="btn btn-xs btn-primary"
|
||||||
|
target="_blank">Hive Profile</a>
|
||||||
|
</dd>
|
||||||
{adminOptions}
|
{adminOptions}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue