<div class="menu">
	<a n:href="add" class="btn btn-large btn-primary btn-block" n:if="$user->isInRole('administrator') || $user->isInRole('manager')">
		<i class="icon-plus icon-white"></i> Přidat článek
	</a>
	<span n:if="$user->isInRole('administrator') || $user->isInRole('manager')" style="height: 15px; display: block;"></span>
	<div class="box-content" n:if="count($menuItems)">
		{block helpMenu}
			<ul class="nav nav-list tree">
				{foreach $menuItems as $item}
					<li n:class="$item->id == $presenter->getParameter('harticle') ? active">
						<a n:href="detail, harticle => $item->id">{$item->title}</a>
						{if count($item->subtree) > 0}
							{include #this, menuItems => $item->subtree}
						{/if}
					</li>
				{/foreach}
			</ul>
		{/block}
	</div>
</div>
