Improved admin_tools for Scoop
Here's a reworked admin_tools which outputs as an unordered list (and puts the "edit user" form in a definition list):
my $content; my @tools = sort { $a->{pos} <=> $b->{pos} } values %{ $S->{ADMIN_TOOLS} }; foreach my $t (@tools) { if ( $S->have_perm($t->{perm}) ) { $content .= qq\| <LI><A href="|rootdir|/admin/$t->{tool}">$t->{menuname}A></LI>\|; } } if ($S->have_perm('edit_user')) { $content .= qq{<LI> <FORM NAME="uedit" METHOD="GET" ACTION="|rootdir|/"> <DL> <DT>Edit User:DT>< /DD> DL> </FORM> LI>}; } return '' unless $content; return{content=>qq{$content<
/UL>}};