From: Ant Zucaro Date: Wed, 16 Nov 2011 17:25:20 +0000 (-0500) Subject: Reverse sort the player index page. X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=012efdd4e0aebb7b99eb01ac7017ef3c64c25ee1;p=xonotic%2Fxonstat.git Reverse sort the player index page. --- diff --git a/xonstat/static/css/style.css b/xonstat/static/css/style.css index 865b198..b2e104a 100755 --- a/xonstat/static/css/style.css +++ b/xonstat/static/css/style.css @@ -368,7 +368,9 @@ input[type=text]:hover, .textbox:hover { background-position:-128px -32px; } margin-bottom: 10px; width:100%; } - +#player-index-table{ + width: 600px; +} #recent-games { width: 950px; } @@ -405,6 +407,11 @@ tr.even.blue { background-color:#000F4C; } +/* column-specific table widths */ +.create-dt{ + width: 150px; +} + /* Containers */ #filter { float:left; diff --git a/xonstat/templates/player_index.mako b/xonstat/templates/player_index.mako index 7041705..b8a68c7 100755 --- a/xonstat/templates/player_index.mako +++ b/xonstat/templates/player_index.mako @@ -9,15 +9,13 @@ Player Index - ${parent.title()} % else:

Player Index

- +
- - + % for player in players: - diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 22febaa..239cf06 100755 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -23,7 +23,7 @@ def player_index(request): try: player_q = DBSession.query(Player).\ filter(Player.player_id > 2).\ - order_by(Player.player_id) + order_by(Player.player_id.desc()) players = Page(player_q, current_page, url=page_url)
# NickJoinedJoined
${player.player_id} ${player.nick_html_colors()|n} ${player.create_dt.strftime('%m/%d/%Y at %H:%M')}