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-10-20 20:56:13 -0500
commit974fceaaca8e1404750a60a4daafb568b1be5159 (patch)
treebfd6943babb0551302951cc9fd3a163491b95ba1 /httemplate/search/log.html
parentb25c22890cc4523988b1dc84938d1e52bc681e25 (diff)
RT#38217: Send email when logging conditions are met
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 d1bfb6cc9..a707928d7 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'));