]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/html/menu
removing old opac images and css
[working/Evergreen.git] / Open-ILS / src / templates / html / menu
1 [%# menu: generate sequence of buttons with optional left/right/select
2   # ARGS:
3   #     buttons = [ # list of buttons
4   #         { link => 'page1.html', text => 'First Page' },
5   #         { link => 'page2.html', text => 'Second Page' },
6   #           ...
7   #     ],
8   #     select      # item to select in range 1 to n (0: none)
9   #     left        # add left arrowhead to first item
10   #     right       # add right arrowhead to last item
11 -%]
12 [%  INCLUDE html/button 
13         link   = b.link
14         text   = b.text
15         left   = loop.first ? left  : 0
16         right  = loop.last  ? right : 0
17         select = (select == loop.count) ? select : 0
18     FOREACH b = buttons 
19 -%]