[%# spamreports/toptable.tt Display tables for spam reports Authors: Jen Griffin Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- IF mode == 'top10ip'; sections.title = '.top10ip.title' | ml( count = count ); ELSIF mode == 'top10user'; sections.title = '.top10user.title' | ml( count = count ); ELSIF mode == 'tlast10'; sections.title = ".tlast10.title.${view}" | ml( count = count ); ELSIF mode == 'tlasthrs'; sections.title = ".tlasthrs.title.${view}" | ml( count = count, hours = hours ); END -%]

[ << [% '.nav.frontpage' | ml %] ]

[%- IF ! count -%]

[% '.view.noreports' | ml %]

[%- ELSE -%] [%- FOREACH header IN headers -%] [%- END -%] [%- FOREACH row IN rows -%] [%- FOREACH item IN row -%] [%- END -%] [%- END -%]
[% header | ml %]
[% item %]

[% '.view.numreports' | ml( count = count ) %]

[%- END -%]