From 04a0d771475412b6f7304257ffea8f12326ae096 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 15 Jan 2012 05:18:27 +0000 Subject: [PATCH] display spam status on account view, RT#15987 --- httemplate/view/elements/svc_export_status.html | 24 ++++++++++++++++++++++++ httemplate/view/svc_acct.cgi | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 httemplate/view/elements/svc_export_status.html diff --git a/httemplate/view/elements/svc_export_status.html b/httemplate/view/elements/svc_export_status.html new file mode 100644 index 000000000..7efd3df16 --- /dev/null +++ b/httemplate/view/elements/svc_export_status.html @@ -0,0 +1,24 @@ +% my ( $html, $hashref ) = $svc_x->export_getstatus; +% if ( keys %$hashref ) { + + Status settings + <% ntable('#cccccc',2) %> + +% foreach my $key ( sort {$a cmp $b} keys %$hashref ) { + + <% $key |h %> + + <% $hashref->{$key} |h %> + + +% } + + +
+ +% } +<%init> + +my $svc_x = shift; + + diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 6f79a01a4..441e4945d 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -71,6 +71,8 @@

% } +<& elements/svc_export_status.html, $svc_acct &> + <& elements/svc_export_settings.html, $svc_acct &> <% joblisting({'svcnum'=>$svcnum}, 1) %> -- 2.11.0