24 lines
630 B
Python
24 lines
630 B
Python
|
# Autogenerated file
|
||
|
def render(ram_free, ram_total):
|
||
|
yield """<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>S2F Terminal</title>
|
||
|
<meta charset=\"utf-8\">
|
||
|
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">
|
||
|
<link href=\"/static/styles.css\" rel=\"stylesheet\">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>by Alexander Popov</h1>
|
||
|
<p>Free RAM: """
|
||
|
yield str(ram_free)
|
||
|
yield """ of """
|
||
|
yield str(ram_total)
|
||
|
yield """</p>
|
||
|
<div>
|
||
|
<a href=\"/?cmd=ftp\">Поднять FTP сервер</a><br>
|
||
|
<a href=\"/?cmd=reboot\">Перезапустить</a><br>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>"""
|