Mercurial > pub > site.implab
annotate shared_view/includes/menu.tt @ 16:e69c970c3ddd default tip
sync
author | sergey |
---|---|
date | Tue, 20 May 2014 01:28:48 +0400 |
parents | d9551c7e7101 |
children |
rev | line source |
---|---|
11 | 1 [% META class='IMPL::Web::View::TTMenuControl' %] |
12 | 2 [% MACRO link(href,title) BLOCK -%] |
3 <a href="$href" class="menu-item"><span class="menu-item-icon"> </span>$title</a> | |
11 | 4 [%- END %] |
12 | 5 [% MACRO span(title) BLOCK -%] |
6 <span class="menu-item"><span class="menu-item-icon"> </span>$title</span> | |
11 | 7 [%- END %] |
8 <ul class="$class" id="$id"> | |
12 | 9 [% FOREACH item IN items ~%] |
11 | 10 <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li> |
12 | 11 [%~ END %] |
11 | 12 </ul> |