{% extends 'layout.html.twig' %}

{% block content %}

<div class="page-header">
	<h1>Archiv novinek</h1>
</div>

<div class="row">
	{% for newsItem in news %}
		<div class="col-6 mt-5">
			<a href="{{ newsItem.getUrl() }}" title="{{ newsItem.getName() }}" target="_self">
				{{ utils_image(newsItem.getPreviewImage(), 'NewsPreviewImage', null, { 'class': 'img-polaroid' }) }}
			</a>
			<div class="caption">
				<h3><a href="{{ newsItem.getUrl() }}">{{ newsItem.getName() }}</a></h3>
				<p>
					{{ utils_cut_string(newsItem.getPerex(), 300) }}
				</p>
			</div>
		</div>
	{% endfor %}
</div>

{% include 'snippet/pagination.html.twig' with {
	'pagination': paginationData,
} %}

{%  endblock %}
