- long_form = translate[district]
- if sum_district == district:
- print('<th>%s</th>' % long_form)
- else:
- print('<th class="district_name">%s</th>' % long_form)
+ # Wrap in div because the vertical orientation otherwise fails
+ # in Chromium.
+ print('<th><div class="vertical_header">%s</div></th>' %
+ translate[district])
+ print('</tr>')
+ print('<tr class="fixed_head">')
+ # In Chromium, the th only stay fixed if also given this class.
+ print('<th class="fixed_head">date</th>')
+ print('<th class="fixed_head"><a href="#symbols">?</a></th>')
+ for district in sorted_districts:
+ print('<th class="fixed_head"><abbr title="%s">%s</abbr></th>' %
+ (translate[district], district))