{% extends '../_manage.html' %}

{% block title %} {{ _('All Headlines') }} {% endblock %}

{% block head %}
<script>
    $(() => {
    	doAsync(
    	    async () => {
                let published = '{{ published }}' === 'true';
    	        let resp = await getJson('/api/headlines', { published: published, page: '{{ page }}' });
    	        let
            		page = resp.page,
            	    headlines = resp.results,
            	    userIds = headlines.map(h => h.userId).filter((element, index, self) 