{% 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 period.get_substitution.cancelled %}
cancel
{% elif now_dt > time_end %}
history
{% elif now_dt > time_start and now_dt < time_end %}
more_horiz
{% elif period.get_substitution %}
update
{% endif %}
{% endif %}