Removed the string conversion for the years in the period chooser template because the years are already in strings in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-10 23:43:22 +08:00
parent 7fc49f5d24
commit b0e5720c8d

View File

@ -83,7 +83,7 @@ First written: 2020/7/10
<ul class="nav nav-pills">
{% for year in period.years_to_choose %}
<li class="nav-item">
<a class="nav-link {% if period.spec == year|stringformat:"i" %} active {% endif %}" href="{% url_period year|stringformat:"i" %}">{{ year }}</a>
<a class="nav-link {% if period.spec == year %} active {% endif %}" href="{% url_period year %}">{{ year }}</a>
</li>
{% endfor %}
</ul>