{% 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'] %}| {{ t(key) }} | {% endfor %}{% if user.role=='admin' %}{{ t('settings') }} | {% endif %}
{% for source in sources %}| {{ source.name }} ↗ | {{ source.category }} | {{ source.country }} | {{ t(source.status if source.enabled else 'disabled') }} | {{ day(source.updated) }} | {{ source.count }} | {% if user.role=='admin' %} | {% endif %}
{% endfor %}
{% if user.role in ['admin','analyst'] %}{% endif %}
{{ t('logs') }}
| {{ t('published') }} | {{ t('name') }} | {{ t('status') }} | {{ t('materials') }} |
{% for item in logs %}| {{ item.created[:16]|replace('T',' ') }} | {{ t('connection') if item.name=='analysis' else item.name }} | {{ t(item.status) }} | {{ item.added }} |
{% endfor %}
{% if not logs %}{{ empty() }}{% endif %}
{% endblock %}