[%# Three variables are passed: session_info => { username, session_id, superuser, fullname, etc } unapproved_lists => [ {listname, listadd, etc }, {more...}, etc ] rec_approved_lists => [ {listname, listadd, etc }, {more...}, etc ] descriptions => { camp => { A1 => blah, A2 => ... }, constit => { A2 => blah } } editor_for => { camp => [ A1, A2 ], etc } %] [% superuser = session_info.superuser %] [% username = session_info.username %] [% fullname = session_info.fullname %] [% undefined = "undefined" %] [% editor = 1 %] [% editor_thislist = 1 %] [% none = 'none' %]
[% IF superuser == 1 %]
You are logged in with superuser
privileges. This means you are listed as an editor for every group in
the database. [% ELSE %] [% IF editor_for.camp.keys.size > 0 %] You are the editor for the following Camp:
|
Editor Links
|
[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]
[% IF unapproved_lists.size < 1 %] You have no lists pending administrative approval. [% ELSIF unapproved_lists.size <= 10 %]
[% FOREACH list = unapproved_lists %]
[% INCLUDE colorbar color = "ff0000" height = "3" percent = "80%" UNLESS loop.size == loop.count %] [% END %] [% ELSE %] You are an editor for [% unapproved_lists.size %] items that are currently awaiting approval:List Name | Description | Camp | Constituencies |
---|---|---|---|
[% list.listname or undefined %] | [% list.description %] | [% none IF list.camp.size == 0 %] [% FOREACH camp = list.camp %] [% descriptions.camp.$camp %] [% "|" UNLESS loop.count == loop.size %] [% END %] | [% none IF list.constit.size == 0 %] [% FOREACH constit = list.constit %] [% descriptions.constit.$constit %] [% "|" UNLESS loop.count == loop.size %] [% END %] |
[% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]
Recent changes to items in your categories
[% IF rec_changed_lists.size < 1 %] There are no changes to your items currently on record in the database. [% ELSE %]
Last Change | Item Name | Camps | Constit | Time Changed | Changed By |
---|---|---|---|---|---|
[% list.lastchange %] | [% list.name %] | [% none IF list.camp.size == 0 %] [% FOREACH camp = list.camp %] [% descriptions.camp.$camp %] [% "|" UNLESS loop.count == loop.size %] [% END %] | [% none IF list.constit.size == 0 %] [% FOREACH constit = list.constit %] [% descriptions.constit.$constit %] [% "|" UNLESS loop.count == loop.size %] [% END %] | [% list.updated %] | [% list.lasteditor or " " %] |
[% END %] [% IF toomany == 1 %]
[% END %] [% INCLUDE colorbar color = "ff0000" height = "8" percent = "98%" %]
[% INCLUDE footer %]