Browse Source

feat: 优化年份范围与显示

master
欧醚 3 years ago
parent
commit
41aea4d3d0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      templates/list.html

+ 3
- 3
templates/list.html View File

@ -285,7 +285,7 @@
<div class="col-sm-9">
<select class="custom-select" name="year">
<option selected>不详/不适用</option>
{% for y in range(curr_year, curr_year-10, -1) %}
{% for y in range(curr_year, curr_year-20, -1) %}
<option value="{{y}}">{{y}}</option>
{% endfor %}
</select>
@ -407,7 +407,7 @@
<div class="card-body">
{% for y, count in all_years %}
<span class="cate {{'selected' if y==year else ''}}">
<a href="?year={{'' if y==year else y}}#part2">{{y or '/'}}</a>
<a href="?year={{'' if y==year else y}}#part2">{{y or '不详'}}</a>
<span class="count">({{count}})</span>
</span>
</span>
@ -441,7 +441,7 @@
{% endif %}
<h5>{{p.course}}</h5>
<p class="ml-3">
{{p.teacher}} - {{p.year or '/'}}
{{p.teacher}} - {{p.year or '不详'}}
</p>
<pre class="ml-3">{{p.notes}}</pre>
<div class="text-right">

Loading…
Cancel
Save