Added lifeform icons
|
@ -54,7 +54,8 @@ var GathererList = React.createClass({
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
var members = this.memberList().map(extractGatherer);
|
var members = this.memberList()
|
||||||
|
.map(extractGatherer);
|
||||||
return (
|
return (
|
||||||
<table className="table">
|
<table className="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -606,6 +607,10 @@ var Gather = React.createClass({
|
||||||
});
|
});
|
||||||
|
|
||||||
var Gatherers = React.createClass({
|
var Gatherers = React.createClass({
|
||||||
|
componentDidMount() {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
|
},
|
||||||
|
|
||||||
joinGather(e) {
|
joinGather(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
socket.emit("gather:join");
|
socket.emit("gather:join");
|
||||||
|
@ -672,6 +677,16 @@ var Gatherers = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var lifeformIcons;
|
||||||
|
if (abilities.length) {
|
||||||
|
lifeformIcons = abilities.map(function (ability) {
|
||||||
|
return <img
|
||||||
|
className="lifeform-icon"
|
||||||
|
alt={ability}
|
||||||
|
src={`/images/${ability.toLowerCase()}.png`} />
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="panel panel-success gatherer-panel" key={gatherer.user.id} data-userid={gatherer.user.id}>
|
<div className="panel panel-success gatherer-panel" key={gatherer.user.id} data-userid={gatherer.user.id}>
|
||||||
<div className="panel-heading">
|
<div className="panel-heading">
|
||||||
|
@ -683,6 +698,7 @@ var Gatherers = React.createClass({
|
||||||
{country} {gatherer.user.username} <span className="caret"></span>
|
{country} {gatherer.user.username} <span className="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<span className="pull-right">
|
<span className="pull-right">
|
||||||
|
<span className="add-right">{lifeformIcons}</span>
|
||||||
{action}
|
{action}
|
||||||
</span>
|
</span>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
@ -49,6 +49,10 @@ html, body {
|
||||||
|
|
||||||
/*Gather Styles*/
|
/*Gather Styles*/
|
||||||
|
|
||||||
|
.lifeform-icon {
|
||||||
|
max-height: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
.gather-voting {
|
.gather-voting {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +96,7 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-right {
|
.add-right {
|
||||||
margin-left: 0.5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.max-width {
|
.max-width {
|
||||||
|
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 329 B |
BIN
public/images/commander_old.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
public/images/fade.png
Normal file
After Width: | Height: | Size: 353 B |
BIN
public/images/gorge.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
public/images/lerk.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
public/images/onos.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
public/images/skulk.png
Normal file
After Width: | Height: | Size: 239 B |