<a class="nav-item nav-link {% if active %}active{% endif %}" id="{{ section.schedule.section.slug }}-{{ timetable.day.date|date:"l"|lower}}-tab" data-toggle="tab" href="#{{section.schedule.section.slug}}-{{ timetable.day.date|date:"l"|lower}}" role="tab" aria-controls="{{section.schedule.section.slug}}-{{ timetable.day.date|date:"l"|lower}}" aria-selected="{% if active %}true{% else %}false{% endif %}"> {{ label }} </a>