mirror of https://github.com/mikaku/Monitorix.git
added the new option 'enable_back_button' to enable or disable such feature
This commit is contained in:
parent
1409d4299a
commit
24f14a9c32
|
@ -207,6 +207,15 @@ This option defines the string to be used to identify Monitorix in the HTTP requ
|
|||
The default value will depend on the current Perl version in your system. An example would be \fIlibwww-perl/5.833\fP.
|
||||
.RE
|
||||
.P
|
||||
.BI enable_back_button
|
||||
.RS
|
||||
This option enables or disables the ability to go back to the main page from the graphs page without using the browser's back button.
|
||||
.P
|
||||
It will show a back arrow in the upper-left corner and it is specially useful for people using the browser in full-screen mode.
|
||||
.P
|
||||
Default value: \fIn\fP
|
||||
.RE
|
||||
.P
|
||||
.BI base_dir
|
||||
.RS
|
||||
This is the absolute path to the directory where all the web elements are located:
|
||||
|
|
|
@ -435,7 +435,9 @@ EOF
|
|||
print(" <table cellspacing='5' cellpadding='0' bgcolor='" . $colors{graph_bg_color} . "' border='1'>\n");
|
||||
print(" <tr>\n");
|
||||
|
||||
print(" <span style='color:#888888;position:fixed;left:1em;font-size:32px;letter-spacing:-1px;'><a href='javascript:history.back()' style='text-decoration:none;'>◀</a>\n");
|
||||
if(lc($config{enable_back_button} eq "y") {
|
||||
print(" <span style='color:#888888;position:fixed;left:1em;font-size:32px;letter-spacing:-1px;'><a href='javascript:history.back()' style='text-decoration:none;'>◀</a>\n");
|
||||
}
|
||||
|
||||
if(($val ne "all" || $val ne "group") && $mode ne "multihost") {
|
||||
print(" <td bgcolor='" . $colors{title_bg_color} . "'>\n");
|
||||
|
|
Loading…
Reference in New Issue