diff shared_view/includes/menu.tt @ 12:d9551c7e7101

improved dox library
author sergey
date Fri, 16 May 2014 16:47:50 +0400
parents 573272ec604b
children
line wrap: on
line diff
--- a/shared_view/includes/menu.tt	Thu May 15 18:24:02 2014 +0400
+++ b/shared_view/includes/menu.tt	Fri May 16 16:47:50 2014 +0400
@@ -1,12 +1,12 @@
 [% META class='IMPL::Web::View::TTMenuControl' %]
-[% MACRO link(href,title) BLOCK %]
-<a href="$href">$title</a>
+[% MACRO link(href,title) BLOCK -%]
+<a href="$href" class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</a>
 [%- END %]
-[% MACRO span(title) BLOCK %]
-<span class="menu-item">$title</span>
+[% MACRO span(title) BLOCK -%]
+<span class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</span>
 [%- END %]
 <ul class="$class" id="$id">
-[% FOREACH item IN items %]
+[% FOREACH item IN items ~%]
     <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li>
-[% END %]
+[%~ END %]
 </ul>
\ No newline at end of file