{% extends 'base.html' %}{% from 'macros.html' import page_header,empty with context %} {% block content %}{{ page_header(t('competitors'),t('competitors_hint')) }}

{{ t('competitor_summary') }}

{% if companies %}
{% for label, value in summary.items() %}
{{ t(label) }}
{{ value }}
{% endfor %}
{% else %}

{{ t('no_monitored_sites') }}

{% endif %}
{% if user.role in ['admin','analyst'] %}
{% endif %} {% if companies %}
{% for company in companies %}
{{ company.name[0] }}

{{ company.name }}

{{ t('website') }} ↗

{{ t(company.status) }}

{{ t('last_update') }}: {% if company.updated %}{{ company.updated[:16]|replace('T',' ') }} UTC{% else %}{{ t('date_unknown') }}{% endif %}

{% if company.last_change %} {{ t('last_detected_change') }}: {% else %} {{ t('no_detected_changes') }} {% endif %}

{% endfor %}
{% endif %}

{{ t('alerts') }}

{% for item in changes %}

{{ item.name }}

{{ day(item.created) }}

{{ t('change') }}

{{ t('change_hint') }}

{{ t('why_important') }}

{{ t('hypothesis') }}

{{ t('reaction') }}

{{ t('reaction_hint') }}

{{ t('original') }} ↗
{{ t('details') }}

{{ t('previous') }}

{{ item.previous }}

{{ t('current') }}

{{ item.current }}

{% else %}{{ empty() }}{% endfor %}{% endblock %}