annotate shared_view/includes/menu.tt @ 13:a9ce584a7f3b
test for mercurial repositories
author |
sergey |
date |
Mon, 19 May 2014 04:34:28 +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> |