{% extends "base.html" %} {% block title %}班车 · 西湖生存手册{% endblock %} {% block content %}

校区班车

{% if error %}
{{ error }}
{% endif %}

现在出发

{% if departures %} {% for tbl, ts in departures %} {% endfor %}
时刻校区日别方向
{{ ts }} {{ tbl.campus.value }} {{ tbl.day_kind.value }} {{ tbl.direction_note }}

日别仅按公历星期推断,不含法定假期 / 调休;假期以学校邮件通知为准。

{% else %}
暂无班车数据。
{% endif %} {% for campus in campuses %} {% for kind in day_kinds %} {% set table = tables.get((campus.name, kind.name)) %}

{{ campus.value }} · {{ kind.value }}

{% if table and (table.morning or table.noon or table.night) %}
{{ table.direction_note }}
{% for group_label, times in [('早间', table.morning), ('午间', table.noon), ('晚间', table.night)] %} {% if times %} {% endif %} {% endfor %}
时段发车时刻(从 {{ campus.value }} 开出)
{{ group_label }} {% for ts in times %} {% set hl = (campus.name, kind.name, ts) in highlight %} {{ ts }} {% endfor %}
{% else %}
无时刻表数据。
{% endif %} {% endfor %} {% endfor %} {% endblock %}