<div id="news">
	<div class="btn-group">
		<a class="btn btn-default" href="{url}" title="{t}все новости{/t}">
			<img src="/skins/default/images/icons/doc_list.png" alt="{t}все новости"{/t} />
		</a>
		{if access('add')}
			<a class="btn btn-default" title="{t}добавить{/t}"  href="{url action="add"}">
				<img src="/skins/default/images/icons/doc_add.png" alt="{t}добавить{/t}" />
			</a>
		{/if}
	</div>
	{if $new}
		<!-- новость -->
		<div class="well">
			<h1>{if $new->title}{$new->title}{else}{$new->date|date_format:"%d/%m/%Y"}{/if}</h1>
			<div class="descr">
				{$new->date|date_format:"%d/%m/%Y"}
				{if access('edit, delete')}
					<div class="btn-group">
						{if access('delete')}
							<a class="btn btn-default btn-xs" title="{t}редактировать{/t}"  href="{url action="edit" var1=$new->id}"><img src="/skins/default/images/icons/simple_edit.png" alt="{t}редактировать{/t}" /></a>
						{/if}
						{if access('delete')}
							<a class="btn btn-default btn-xs" title="{t}удалить{/t}"  onclick="return confirm('{t}Точно удалить?{/t}');" href="{url action="delete" var1=$new->id var2=$current_page token=1}"><img src="/skins/default/images/icons/simple_delete.png" alt="{t}удалить{/t}" /></a>
						{/if}
					</div>
				{/if}
				<div>{$new->text}</div>
			</div>
		</div>
		{* комментарии *}
		{nocache}
			{if $comments_item}
				{include file="lc_comments/comments.tpl"}
			{/if}
		{/nocache}
	{else}
	{t}А новостей пока нет!{/t}
	{/if}
</div>
