pull/19/head
Aidaho12 2018-01-31 17:26:59 +06:00
parent 563df38f3c
commit a4f266dee1
5 changed files with 20 additions and 7 deletions

View File

@ -115,7 +115,8 @@ def head(title):
'</head>' '</head>'
'<body>' '<body>'
'<a name="top"></a>' '<a name="top"></a>'
'<div class="top-menu">') '<div class="top-menu">'
'<span class="LogoText">HAproxy-WI</span>')
if config.get('main', 'logo_enable') == "1": if config.get('main', 'logo_enable') == "1":
print('<img src="%s" title="Logo" class="logo">' % config.get('main', 'logo_path')) print('<img src="%s" title="Logo" class="logo">' % config.get('main', 'logo_path'))
print('<div class="top-link">') print('<div class="top-link">')

View File

@ -77,4 +77,7 @@ if login is not None and password is not None:
break break
login_page("error") login_page("error")
funct.footer() funct.footer()

View File

@ -25,10 +25,10 @@ ssh_user_name = root
ssh_pass = ssh_pass =
[logs] [logs]
#Logs save locally, disable by default #Logs save locally
local_path_logs = /var/log/haproxy.log local_path_logs = /var/log/haproxy.log
#If exist syslog server for HAproxy logs #If exist syslog server for HAproxy logs, disable by default
syslog_server_enable = enable syslog_server_enable = 0
syslog_server = syslog_server =
[telegram] [telegram]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 250 KiB

View File

@ -20,10 +20,19 @@ body {
left: 0; left: 0;
z-index: 1000; z-index: 1000;
} }
.logoText {
color: #fff;
font-size: 30px;
float: left;
margin-left: 50px;
margin-top: 3px;
font-style: italic;
font-weight: bold;
}
.top-menu img { .top-menu img {
max-width: 125px; max-width: 125px;
float: left; float: left;
padding-left: 100px; padding-left: 20px;
} }
.top-menu a, .footer a { .top-menu a, .footer a {
padding: 10px; padding: 10px;
@ -54,7 +63,7 @@ body {
} }
.configShow, .diff { .configShow, .diff {
margin-left: 16%; margin-left: 16%;
max-height:: 70%; height: 70%;
overflow: auto; overflow: auto;
width: 70%; width: 70%;
border: 1px solid #DCDCDC; border: 1px solid #DCDCDC;