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
Ant Zucaro [Wed, 6 Feb 2013 02:30:12 +0000 (21:30 -0500)]
Two new utilities written in Go.
xs_parselog parses XonStat log and extracts/recreates requests
into text files, one request per file.
xs_submit takes a XonStat request via a text file and submits it
to a user-specified URL.
Both of these utlities can be run with "go run <filename> [opts]"
after having install the Go programming language on your machine.
Alternatively, one can build executables with "go build <filename>".