- if sum_district == district:
- print('<th>%s</th>' % long_form)
- else:
- # Wrap in div because the vertical orientation otherwise fails
- # in Chromium.
- print('<th><div class="district_name">%s</div></th>' % long_form)
+ # Wrap in div because the vertical orientation otherwise fails
+ # in Chromium.
+ print('<th><div class="vertical_header">%s</div></th>' % long_form)
+ 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"></th>')
+ for district in sorted_districts:
+ print('<th class="fixed_head">%s</th>' % district)