{% extends 'base.html' %}{% from 'macros.html' import page_header,empty with context %} {% block content %}{{ page_header(t('sources'),t('sources_hint')) }} {% if user.role=='admin' %}
+ {{ t('add') }}
{% endif %}
{% for key in ['name','category','country','status','last_update','materials'] %}{% endfor %}{% if user.role=='admin' %}{% endif %}{% for source in sources %}{% if user.role=='admin' %}{% endif %}{% endfor %}
{{ t(key) }}{{ t('settings') }}
{{ source.name }} ↗{{ source.category }}{{ source.country }}{{ t(source.status if source.enabled else 'disabled') }}{{ day(source.updated) }}{{ source.count }}
{% if user.role in ['admin','analyst'] %}
{% endif %}

{{ t('logs') }}

{% for item in logs %}{% endfor %}
{{ t('published') }}{{ t('name') }}{{ t('status') }}{{ t('materials') }}
{{ item.created[:16]|replace('T',' ') }}{{ t('connection') if item.name=='analysis' else item.name }}{{ t(item.status) }}{{ item.added }}
{% if not logs %}{{ empty() }}{% endif %}
{% endblock %}