<div class="block-title">{{ lang.nsm['list.news'] }}</div>
<table class="table table-striped table-bordered">
	<tr>
		<th colspan="4">
			<a href="{{ addURL }}">{{ lang.nsm['add.news'] }}</a>
		</th>
	</tr>
	<tr align="center">
		<td width="40">{{ lang.nsm['status.news'] }}</td>
		<td width="60">{{ lang.nsm['data.news.published'] }}</td>
		<td>&nbsp;</td>
		<td>{{ lang.nsm['add.news.title'] }}</td>
	</tr>
	{% for entry in entries %}
		<tr>
			<td width="25" align="center">
				{% if (entry.state == 1) %}
					<img src="{{ skins_url }}/images/yes.png" alt="{{ lang.nsm['state.published'] }}"/>
				{% elseif (entry.state == 0) %}
					<img src="{{ skins_url }}/images/no.png" alt="{{ lang.nsm['state.unpiblished'] }}"/>
				{% else %}
					<img src="{{ skins_url }}/images/no_plug.png" alt="{{ lang.nsm['state.draft'] }}"/>
				{% endif %}
			</td>
			<td width="60">
				{% if entry.flags.canEdit %}
					<a href="{{ entry.editlink }}">{{ entry.itemdate }}</a>
				{% elseif entry.flags.canView %}
					<a href="{{ entry.link }}">{{ entry.itemdate }}</a>
				{% else %}
					{{ entry.itemdate }}
				{% endif %}
			</td>
			<td width="48" cellspacing="0" cellpadding="0" align="center">
				{% if entry.flags.mainpage %}
					<img src="{{ skins_url }}/images/mainpage.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.main'] }}"/>
				{% endif %}
				{% if (entry.attach_count > 0) %}
					<img src="{{ skins_url }}/images/attach.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.files'] }}: {{ entry.attach_count }}"/>
				{% endif %}
				{% if (entry.images_count > 0) %}
					<img src="{{ skins_url }}/images/img_group.png" border="0" width="16" height="16" title="{{ lang.nsm['entry.img'] }}: {{ entry.images_count }}"/>
				{% endif %}
			</td>
			<td>
				{% if entry.flags.status %}
					<a href="{{ entry.link }}">{{ entry.title }}</a>
				{% else %}
					{{ entry.title }}
				{% endif %}
				{% if entry.flags.canEdit %}
					&nbsp;<a href="{{ entry.editlink }}" class="nsm-edit-link" title="Редактировать">[редактировать]</a>
				{% endif %}
			</td>
		</tr>
	{% else %}
		<tr>
			<td colspan="4">{{ lang.nsm['err.news_not'] }}</td>
		</tr>
	{% endfor %}
</table>
<div class="pagination">
	<ul>
		{{ pagination }}
	</ul>
</div>
