annotate shared_view/includes/menu.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents
children d9551c7e7101
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
1 [% META class='IMPL::Web::View::TTMenuControl' %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
2 [% MACRO link(href,title) BLOCK %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
3 <a href="$href">$title</a>
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
4 [%- END %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
5 [% MACRO span(title) BLOCK %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
6 <span class="menu-item">$title</span>
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
7 [%- END %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
8 <ul class="$class" id="$id">
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
9 [% FOREACH item IN items %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
10 <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li>
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
11 [% END %]
573272ec604b almost comlete doxygen library
sergey
parents:
diff changeset
12 </ul>