summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playoff.py2
-rw-r--r--playoff/template.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/playoff.py b/playoff.py
index 208af65..70f4925 100644
--- a/playoff.py
+++ b/playoff.py
@@ -53,6 +53,8 @@ def get_match_table(match):
rows = ''
for team in match.teams:
rows += p_temp.MATCH_TEAM_ROW % (
+ ' '.join(['winner' if team.name == match.winner else '',
+ 'loser' if team.name == match.loser else '']).strip(),
match.link,
team.name,
' / '.join([get_shortname(name) for name in team.name.split('<br />')]),
diff --git a/playoff/template.py b/playoff/template.py
index 5a282e3..8648a67 100644
--- a/playoff/template.py
+++ b/playoff/template.py
@@ -11,7 +11,7 @@ MATCH_TABLE = '''
'''
MATCH_TEAM_ROW = '''
-<tr>
+<tr class="%s">
<td class="bd1">&nbsp;<a href="%s" onmouseover="Tip('%s')" onmouseout="UnTip()">%s</a>&nbsp;</td>
<td class="bdc">
<a href="%s" target="_top">