diff --git a/app/.htaccess b/app/.htaccess new file mode 100644 index 00000000..60013d4e --- /dev/null +++ b/app/.htaccess @@ -0,0 +1,2 @@ +ErrorDocument 404 /app/templates/404.html +ErrorDocument 500 /app/templates/500.html \ No newline at end of file diff --git a/app/templates/404.html b/app/templates/404.html new file mode 100644 index 00000000..3924a586 --- /dev/null +++ b/app/templates/404.html @@ -0,0 +1,102 @@ + + + 404 - Page not found - HAProxy-WI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + logo + + +
+ +
+
+
+

+ 404 - Page not found +

+
+ 404 error + +

Sorry, but page not found. Try another page

+
+
+ + + + \ No newline at end of file diff --git a/app/templates/500.html b/app/templates/500.html new file mode 100644 index 00000000..d798952b --- /dev/null +++ b/app/templates/500.html @@ -0,0 +1,105 @@ + + + 500 - Internal error - HAProxy-WI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + logo + + +
+ +
+
+
+

+ 500 - Internal error +

+
+ 500 error + +

Sorry, but something went wrong..... Check httpd error log and + create issue on GitHub + or write to the chat +

+
+
+ + + + \ No newline at end of file diff --git a/config_other/httpd/haproxy-wi.conf b/config_other/httpd/haproxy-wi.conf index 144e4195..4660c0db 100644 --- a/config_other/httpd/haproxy-wi.conf +++ b/config_other/httpd/haproxy-wi.conf @@ -16,6 +16,7 @@ ScriptAlias /cgi-bin/ "/var/www/haproxy-wi/app/" + AllowOverride FileInfo DirectoryIndex overview.py Options +ExecCGI AddHandler cgi-script .py diff --git a/favicon-16x16.png b/favicon-16x16.png new file mode 100644 index 00000000..e23e8f30 Binary files /dev/null and b/favicon-16x16.png differ diff --git a/inc/images/404.png b/inc/images/404.png new file mode 100644 index 00000000..b41cf474 Binary files /dev/null and b/inc/images/404.png differ diff --git a/inc/images/500.png b/inc/images/500.png new file mode 100644 index 00000000..2e76209f Binary files /dev/null and b/inc/images/500.png differ diff --git a/inc/style.css b/inc/style.css index 21bee6ff..352d6fed 100644 --- a/inc/style.css +++ b/inc/style.css @@ -1020,6 +1020,27 @@ label { margin-top: 20px; } } +@media (max-width: 1024px) { + #logo_span { + margin-left: -5%; + } + .wrong-login { + margin-right: -150px; + } + .haproxy-info { + width: 120px; + padding-left: 10px; + } + #rows { + width: 50px; + } + #grep { + width: 100px; + } + .add-note { + display: none !important; + } +} @media (max-width: 1080px) { #logo_span { margin-left: -5%; @@ -1047,25 +1068,6 @@ label { width: 60%; } } -@media (max-width: 1024px) { - #logo_span { - margin-left: -5%; - } - .wrong-login { - margin-right: -150px; - } - .haproxy-info { - width: 120px; - padding-left: 10px; - } - #rows { - width: 50px; - } - #grep { - width: 100px; - } - -} @media (max-width: 768px) { #logo_span { margin-left: -12%; @@ -1149,3 +1151,47 @@ label { padding-top: 10px; color: #9d9d9d; } +#stats_filter { + margin-left: 5px; + margin-right: 5px; + margin-top: -4px; + float: right; + padding-top: 7px; + display: none; +} +#stats_filter_text { + float: left; + padding: 5px; + font-size: 20px; + padding-top: 0; + margin-top: -2px; + padding-right: 10px; +} +.stats_active, .stats_drain, .stats_maintain, .stats_down, .stats_not_checked, .stats_backup, .stats_frontends, .stats_backends { + color: #000 ; + border-color: rgb(221, 221, 221) !important; +} +.stats_active:hover, .stats_not_checked:hover, .stats_backup:hover { + color: darkgrey !important; +} +.stats_active { + background-color: #c0ffc0 !important; +} +.stats_drain { + background-color: #20a0FF !important; +} +.stats_maintain { + background-color: #c07820 !important; +} +.stats_down { + background-color: #ff9090 !important; +} +.stats_not_checked { + background-color: #e0e0e0 !important; +} +.stats_backup { + background-color: #b0d0ff !important; +} +.stats_frontends { + background-color: rgb(93, 156, 235) !important; +} \ No newline at end of file