From 7108932856dbf3063bb32b08cb43509793e45d2b Mon Sep 17 00:00:00 2001 From: "Paul S. Ferrell" Date: Thu, 8 Oct 2009 12:33:01 -0600 Subject: [PATCH] Fixed mainly formatting issues. Upped the max bitrate to 4000k/s for the videos. --- tanks/lib/Pflanzarr.py | 12 +++++++----- tanks/www/ctf.css | 4 ++++ tanks/www/errors.cgi | 1 + 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/tanks/lib/Pflanzarr.py b/tanks/lib/Pflanzarr.py index a99c5fa..ae0d985 100644 --- a/tanks/lib/Pflanzarr.py +++ b/tanks/lib/Pflanzarr.py @@ -202,14 +202,16 @@ class Pflanzarr: winner = random.choice(winners) html = ['', - 'Game %d results', - '', + 'Game %d Results' % self._gameNum , + '', '', '', - '
TeamKillsCause of Death'] + '

Game %d Results

' % self._gameNum, + '', + '
TeamKillsCause of Death'] for tank in tanks: if tank is winner: - rowStyle = 'style="font-weight:bold; '\ + rowStyle = 'style="text-decoration:underline; '\ 'background-color:%s"' % tank.color else: rowStyle = 'style="background-color:%s"' % tank.color @@ -238,7 +240,7 @@ class Pflanzarr: movieCmd = ['ffmpeg', '-r', '10', # Set the framerate to 10/second - '-b', '400k', # Set the bitrate + '-b', '4000k', # Set the bitrate '-i', '%s/%%05d.ppm' % self._imageDir, # The input files. # '-vcodec', 'msmpeg4v2', '%s/game.avi' % self._gameDir] diff --git a/tanks/www/ctf.css b/tanks/www/ctf.css index f3b91d1..cf21d76 100644 --- a/tanks/www/ctf.css +++ b/tanks/www/ctf.css @@ -98,3 +98,7 @@ fieldset * { margin: 3px; } +table.results td, th{ + padding : 3px; + font-weight : bold; +} diff --git a/tanks/www/errors.cgi b/tanks/www/errors.cgi index f61d2bc..821082a 100755 --- a/tanks/www/errors.cgi +++ b/tanks/www/errors.cgi @@ -24,6 +24,7 @@ teams.build_teams() head = open('head.html').read() % "Error Report" print(head) +print('

Your Errors

') print(open('links.html').read()) def done():