{% extends 'base.html' %} {% block content %}

{{ t('dashboard') }}

{% if debug_mode %}Debug Mode ON{% endif %}{% if dry_run %}Dry Run ON{% endif %}
{% set cards = [(t('instagram'), account.status if account else 'disconnected'), (t('scheduler'), scheduler.status), (t('comments_today'), counts.comments_today), (t('dm_today'), counts.dm_today), (t('errors_today'), counts.errors_today), (t('active_automations'), counts.active_automations)] %} {% for title, value in cards %}
{{ title }}
{{ value }}
{% endfor %}
Scheduler Last Run: {{ scheduler.last_run or '-' }}
Next Expected Run: {{ scheduler.next_expected or '-' }}
Last Error: {{ scheduler.last_error or '-' }}
{{ t('latest_activity') }}
{% for r in activities %}{% else %}{% endfor %}
{{ r.created_at }}{{ r.category }}{{ r.message }}
No data
{{ t('recent_errors') }}
{% for r in errors %}{% else %}{% endfor %}
{{ r.created_at }}{{ r.error_type }}{{ r.message }}
No errors
{% endblock %}