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:
parent
7fc49f5d24
commit
b0e5720c8d
@ -83,7 +83,7 @@ First written: 2020/7/10
|
|||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
{% for year in period.years_to_choose %}
|
{% for year in period.years_to_choose %}
|
||||||
<li class="nav-item">
|
<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>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user