{% load i18n week_helpers %} {% now_datetime as now_dt %} {% if period.has_documentation %} check_circle {% else %} {% period_to_time_start week period.period as time_start %} {% period_to_time_end week period.period as time_end %} {% if now_dt > time_end %} history {% elif now_dt > time_start and now_dt < time_end %} more_horiz {% else %} {% if period.get_substitution %} {% if period.get_substitution.cancelled %} cancel {% else %} update {% endif %} {% endif %} {% endif %} {% endif %}