[%# This template is passed the following variables: session_info => { username, session_id, superuser, fullname, etc } types => { Issues => [ { code, description, [ {list1name, list1info}, {list2name, list2info} ], type }, { code, description, [ {list1name, list1info}, {list2name, list2info} ], type } ] Constit => [ { code, description, [ {list1name, list1info}, {list2name, list2info} ], type }, { code, description, [ {list1name, list1info}, {list2name, list2info} ], type } ] } That datastructure is probably the ugliest thing anywhere in the code. :) Sorry. It was one of the first things I wrote. :) %] [% username = session_info.username %] [% superuser = session_info.superuser %] CALF Editor's Page | [% username %] | All My Items [% INCLUDE groupshead %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %] [% INCLUDE editorsmenu %] [% FOREACH type = types.keys %] [% IF types.$type.size > 0; "You are currently the editor for the following "; "issues" IF type == 'issues'; "constituencies" IF type == 'constit'; ": "; END; %] [% FOREACH category = types.$type %] [% category.description %] [% UNLESS loop.count == loop.size %] | [% END %] [% END %]

[% FOREACH category = types.$type %] [% category.description %]
[% lists = category.lists.sort('name') %] [% FOREACH list = lists %] [% END %]
Status Name Description Options
[% UNLESS list.approved == 1 %] PENDING [% ELSE %]   [% END %] [% list.name %] [% list.description %] view
edit
delete

[% END %] [% END %] [% INCLUDE footer %]