<table class='newsitem-table'>
{% for key, item in newsfeed %}
<tr class='newsitem newsitem-first' data-href='#'>
{% if item.type == 'fossildb' %}<td class="newsitem-icon text-fossildb"><span class="feather-18" data-feather="eye"></span></td>
{% elseif item.type == 'community' %}<td class="newsitem-icon text-community"><span class="feather-18" data-feather="message-circle"></span></td>
{% elseif item.type == 'siteupdate' %}<td class="newsitem-icon text-updates"><span class="feather-18" data-feather="circle"></span></td>
{% elseif item.type == 'media' %}<td class="newsitem-icon text-media"><span class="feather-18" data-feather="instagram"></span></td>
{% elseif item.type == 'link' %}<td class="newsitem-icon text-link"><span class="feather-18" data-feather="link"></span></td>
{% elseif item.type == 'calendar' %}<td class="newsitem-icon text-calendar"><span class="feather-18" data-feather="calendar"></span></td>
{% elseif item.type == 'article' %}<td class="newsitem-icon text-information"><span class="feather-18" data-feather="file-text"></span></td>
{% elseif item.type == 'glossary' %}<td class="newsitem-icon text-information"><span class="feather-18" data-feather="book-open"></span></td>
{% elseif item.type == 'literature' %}<td class="newsitem-icon text-information"><span class="feather-18" data-feather="book"></span></td>
{% elseif item.type == 'locations_fossil' %}<td class="newsitem-icon text-locations"><span class="feather-18" data-feather="map-pin"></span></td>
{% elseif item.type == 'locations_geology' %}<td class="newsitem-icon text-locations"><span class="feather-18" data-feather="map-pin"></span></td>
{% elseif item.type == 'locations_museum' %}<td class="newsitem-icon text-locations"><span class="feather-18" data-feather="map-pin"></span></td>
{% elseif item.type == 'locations_society' %}<td class="newsitem-icon text-locations"><span class="feather-18" data-feather="map-pin"></span></td>
{% endif %}
<td class="newsitem-date"><i class="text-muted">{{ item.time|date("d-m-Y H:i") }}</i></td>
<td class="newsitem-title">
{% if item.type == 'fossildb' %}<a href="{{ path('fossildb_item',{ 'id' : item.remoteid }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %} {% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'community' %}{# ToDo-Ante #}
{% elseif item.type == 'siteupdate' %}<a>{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'media' %}<a href="{{ path('media_item',{ 'id' : item.remoteid }) }}">{#<span class="feather-18" data-feather="external-link"></span>#}{% if item.isupdate %}{{ 'Bijgewerk:'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: }{% endif %} {% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'link' %}<a href="{{ path('links_item',{ 'id' : item.remoteid }) }}">{#<span class="feather-18" data-feather="external-link"></span>#}{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %} {% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'calendar' %}<a href="{{ path('calendar_event',{ 'id' : item.remoteid }) }}">{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'article' %}<a href="{{ path('article',{ 'id' : item.remoteid, 'url' : '-' }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'glossary' %}<a href="{{ path('glossary',{ 'id' : item.remoteid, 'url' : '-' }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'locations_fossil' %}<a href="{{ path('locations_fossil',{ 'id' : item.remoteid }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'locations_geology' %}<a href="{{ path('locations_geology',{ 'id' : item.remoteid }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: }{% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'locations_museum' %}<a href="{{ path('locations_museum',{ 'id' : item.remoteid }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'locations_society' %}<a href="{{ path('locations_society',{ 'id' : item.remoteid }) }}">{% if item.isupdate %}{{ 'Bijgewerkt'|trans }}: {% else %}{{ 'Toegevoegd'|trans }}: {% endif %}{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% elseif item.type == 'literature' %}<a href="{{ path('literature_by_id',{ 'id' : item.remoteid }) }}">{% if app.request.locale == 'nl' %}{{ item.titlenl|bbcode|raw }}{% else %}{{ item.titleen|bbcode|raw }}{% endif %}</a>
{% endif %}
</tr>
{% endfor %}
</table>