Skip to content

Commit

Permalink
🛠️
Browse files Browse the repository at this point in the history
  • Loading branch information
XieXiLin2 authored May 9, 2024
1 parent 688980b commit 3bbf401
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nonebot_plugin_cnrail/templates/train_table.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@
<tr>
<th></th>
<th>停靠站</th>
<th>到点</th>
<th>开点</th>
<th>到点</th>
<th>停留</th>
<th>车次</th>
</tr>
Expand All @@ -343,15 +343,14 @@
{% for station in detail.via_stations -%}
<tr>
<td>

<div class="station-point{% if detail.arrived(loop.index0, train_date) %} arrived{% endif %}"></div>
</td>
<td>{{ station.station_name }}</td>
<td>
{% if loop.first %}-{% else %}{{ station.arrival_time}}{% endif %}
{% if loop.last %}-{% else %}{{ station.departure_time }}{% endif %}
</td>
<td>
{% if loop.last %}-{% else %}{{ station.departure_time }}{% endif %}
{% if loop.first %}-{% else %}{{ station.arrival_time}}{% endif %}
</td>
<td>{% if loop.first %}始发站{% elif loop.last %}终点站{% else %}{{ station.stop_minutes }} 分{% endif %}</td>
<td>{{ station.train_number }}</td>
Expand Down Expand Up @@ -585,4 +584,4 @@
main();
</script>

</html>
</html>

0 comments on commit 3bbf401

Please sign in to comment.