width: 14px;
height: 14px;
vertical-align: text-top;
- background-image: url(../img/glyphicons-halflings.png);
+ background-image: url('img/glyphicons-halflings.png');
background-position: 14px 14px;
background-repeat: no-repeat;
*margin-right: .3em;
*margin-left: 0;
}
.icon-white {
- background-image: url(../img/glyphicons-halflings-white.png);
+ background-image: url('img/glyphicons-halflings-white.png');
}
.icon-glass {
background-position: 0 0;
.nav-tabs > li > a { border-radius: 4px 4px 4px 4px; text-align: center; }
.nav-tabs > li > a:hover { background-color: #111; border-color: #333; }
.nav-tabs { border-bottom: 0px solid #000; }
+
+.table .tdcenter { text-align: center; }
</div>
<div class="span5">
<p>
- Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+ Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
% if g.game_type_cd in overall_stats:
% if overall_stats[g.game_type_cd].k_d_ratio is not None:
<th>Map</th>
<th>Result</th>
<th>Played</th>
+ <th>Elo</th>
</tr>
</thead>
<tbody>
% for (gamestat, game, server, map) in recent_games:
<tr>
- <td><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">view</a></td>
- <td style="width:20px;"><img title="${game.game_type_cd}" src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}" /></td>
+ <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">view</a></td>
+ <td class="tdcenter"><img title="${game.game_type_cd}" src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}" /></td>
<td>${server.name}</td>
<td>${map.name}</td>
<td>
% endif
</td>
<td><span class="abstime" data-epoch="${game.epoch()}" title="${game.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${game.fuzzy_date()}</span></td>
+ <td class="tdcenter">
+ % if round(gamestat.elo_delta,2) > 0:
+ <span title="Elo went up by ${round(gamestat.elo_delta,2)}"><i class="icon-arrow-up icon-white"></i></span>
+ % elif round(gamestat.elo_delta,2) < 0:
+ <span title="Elo went down by ${round(gamestat.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
+ % else:
+ <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
+ % endif
+ </td>
</tr>
% endfor
</tbody>