summaryrefslogtreecommitdiff
path: root/httemplate/search/log.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-10-20 20:56:13 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-12-22 03:10:18 -0600
commit7461526f923d4cc9341b5bbebad3bf409b778120 (patch)
treea0a395c4836066010abf2a46c003a2e5e372773a /httemplate/search/log.html
parent796750496ab90b7e10823e2a3a008b600ab8f090 (diff)
RT#38217 Send email when logging conditions are met [v4 merge]
Diffstat (limited to 'httemplate/search/log.html')
-rw-r--r--httemplate/search/log.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/search/log.html b/httemplate/search/log.html
index d1bfb6c..a707928 100644
--- a/httemplate/search/log.html
+++ b/httemplate/search/log.html
@@ -1,6 +1,7 @@
<& elements/search.html,
'title' => 'System Log',
'name_singular' => 'event',
+ 'menubar' => \@menubar,
'html_init' => include('.head'),
'query' => $query,
'count_query' => $count_query,
@@ -204,6 +205,9 @@ my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
unless $curuser->access_right([ 'View system logs', 'Configuration' ]);
+my @menubar = ();
+push @menubar, qq(<A HREF="${fsurl}browse/log_email.html" STYLE="text-decoration: underline;">Configure conditions for sending email when logging</A>),
+
$cgi->param('min_level', 0) unless defined($cgi->param('min_level'));
$cgi->param('max_level', 7) unless defined($cgi->param('max_level'));