Skip to content

Commit 71bbab7

Browse files
committed
borders around table
1 parent bc02564 commit 71bbab7

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

core/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ async def schoolweek(request):
326326
try:
327327
day_info = list(filter(lambda d: d['date'] == day, all_days))[0]
328328
except IndexError:
329-
week_fmt.append(f"{day}<br>NO SCHOOL")
329+
week_fmt.append(f"{day.strftime('%a %m/%d')}<br>NO SCHOOL")
330330
else:
331-
week_fmt.append(f"{day}<br>{day_info['cohort'].title()} {day_map[day_info['day'] % 2]} day")
331+
week_fmt.append(f"{day.strftime('%a %m/%d')}<br>{day_info['cohort'].title()} {day_map[day_info['day'] % 2]} day")
332332

333333
return await render_template('schoolweek', request, week=week_fmt, title='School Week', description='This week\'s maroon and gray A and B days.')

core/templates/schoolweek.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ <h5>This week's maroon and gray A and B days.</h5>
1313
</tr>
1414
</table>
1515
</div>
16+
<style>
17+
table, td, th {
18+
border: 1px solid black;
19+
}
20+
table {
21+
border-collapse: collapse;
22+
}
23+
</style>
1624
{% endblock content %}

0 commit comments

Comments
 (0)