Ant Zucaro [Sat, 20 Jul 2013 11:52:32 +0000 (07:52 -0400)]
A more comprehensive decision tree for team game stats.
If the game mode is CTF, order by caps. If the game mode is CA,
FT, LMS, or KA then order by rounds. Otherwise order by score. This
corresponds to the default settings for team_game_stat rows in the
submission handler.
Ant Zucaro [Sat, 15 Jun 2013 13:44:47 +0000 (09:44 -0400)]
Separate scoreboards by team.
This is in preparation for the display of team scores. The team
score will be shown to the left of the scoreboard. The tricky
thing with this implementation is keeping the columns aligned
properly. For this I've added a player-nick class (again) as a
percentage to make the two (or more) tables line up.
Ant Zucaro [Fri, 19 Apr 2013 23:34:12 +0000 (19:34 -0400)]
Replace the game_index view w/ game_finder.
The game_index view was cluttered, ugly, slow, and not used much.
This changeset makes the page similar to the "recent games" lists
throughout the app, but with a game type filter on it. This should
be a more useable alternative than showing a bunch of scoreboards.
Ant Zucaro [Fri, 19 Apr 2013 00:30:55 +0000 (20:30 -0400)]
Fix the broken things in player_game_index.
- New routes were defined (/player/:id/game_type_cd) when a query
parameter is the better fit. Game types are a filter condition
on the resource, not the resource itself, thus should not be in
the route.
- Pagination was broken. Passing search_query to route_url makes
the query parameters persist, although I pass query parameters
in an awful way that needs to be fixed.
- Multiple lines just to show the game type description when an if
statement would do the same thing.
- No need to pass the player_url to the template. You can reverse-
generate URLs to routes with route_url just fine.
- Remove the extra link back to the player_info page, as the
pattern throughout the rest of the application is to click the
nick itself.
Jan Behrens [Wed, 17 Apr 2013 07:10:53 +0000 (09:10 +0200)]
Adding gametype-filtered game_index view (and fix bug in player_game_index)
Not linked anywhere yet, but can be accessed via .../player/###/games/gametype
Jan Behrens [Thu, 11 Apr 2013 07:50:24 +0000 (09:50 +0200)]
Allowing elos to be shown even for less than 32 games
Since ranks are not defined if this is the case, the notice "preliminary" is shown below these elos.
Ant Zucaro [Thu, 28 Mar 2013 18:27:42 +0000 (14:27 -0400)]
Port over all older styles (tables in particular).
All of the table-based stuff wasn't looking right under default, so
port over the older ones instead. Change all tables having the
"table-bordered" class to "table-hover".
Ant Zucaro [Sun, 24 Mar 2013 13:33:06 +0000 (09:33 -0400)]
Add bootstrap.
Bootstrap release candidate 3 is complete enough for me to use. In
particular I can have the icon font and the minimized CSS (for
responsive and regular).
Ant Zucaro [Sun, 17 Feb 2013 21:05:33 +0000 (16:05 -0500)]
"Intercept" requests during downtime
This is a Golang utility that allows the stats maintainer to still
accept requests from remote servers while the XonStat server is
down for maintenance. It basically takes the requests and stores
them into a small sqlite3 database for future (re)submission.
When users navigate to the normal stats URL, they'll be greeted
with a downpage informing them of maintenance work instead of the
normal app.
Usage of xs_interceptor:
xs_interceptor [options] <command>
Where <command> is one of the following:
create - create the requests db (sqlite3 db file)
drop - remove the requests db
list - lists the requests in the db
serve - listens for stats requests, storing them if found
resubmit - resubmits the requests to another URL
Where [options] is one or more of the following:
-port - port number (int) to listen on for 'serve' command
-url - url (string) to submit requests