MicroPython stuff
This commit is contained in:
23
code/MicroPython/templates/index_html.py
Normal file
23
code/MicroPython/templates/index_html.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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>"""
|
||||
Reference in New Issue
Block a user