[% MACRO zebra_table_vertical BLOCK %] [%# Usage: items - hash of key value pairs to display. the key will be the title and the value the content. -%] [% PROCESS "include/code_standout.tmpl"; DEFAULT no_information_text = CPANEL.locale.maketext('No information found.'); %] [% # Ensure that we aren't creating a completely empty table. SET items_to_display = 0; FOREACH item IN items.keys; IF items.$item; items_to_display = 1; LAST; END; END; %] [% IF title %]

[% title %]

[% END %] [% SET zebra_counter = 1; %] [% IF items_to_display %] [% FOREACH item IN items.keys %] [% IF items.$item %] [% zebra_counter = !zebra_counter %] [% END %] [% END %]
[% item %] [% items.$item %]
[% ELSIF title %] [% code_standout(command=no_information_text); %] [% END %] [% END %]