]> git.sesse.net Git - foosball/commitdiff
Show the ratings in the assessments.
authorSteinar H. Gunderson <sesse@debian.org>
Fri, 5 Oct 2007 21:05:00 +0000 (23:05 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Fri, 5 Oct 2007 21:05:00 +0000 (23:05 +0200)
www/assess-single.pl [changed mode: 0644->0755]
www/assess.xml

old mode 100644 (file)
new mode 100755 (executable)
index c2948ff..66480e6
@@ -43,6 +43,8 @@ print CGI->header(-type=>'application/xhtml+xml');
 my $doc = XML::Template::process_file('assess.xml', {
        'username1' => $username1,
        'username2' => $username2,
+       'rating1' => int($rating1+0.5),
+       'rating2' => int($rating2+0.5),
        '#results' => \@results,
 });
 print $doc->toString;
index 44f7ddf538d532e924abc9645be3403b346afb52..887acf01caa7bf33103332f07a21e16b4104ef4a 100644 (file)
@@ -9,7 +9,7 @@
     <meta name="MSSmartTagsPreventParsing" content="TRUE" />
   </head>
   <body>
-    <h1>Assessment of singles match between <t:username1 /> and <t:username2 /></h1>
+    <h1>Assessment of singles match between <t:username1 /> (<t:rating1 />) and <t:username2 /> (<t:rating2 />)</h1>
     
     <table>
       <thead>