mirror of https://github.com/akuker/RASCSI.git
Get page title from string variable (#1056)
This commit is contained in:
parent
cde4866844
commit
1af48e6e71
|
@ -1,7 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ env["locale"] }}">
|
<html lang="{{ env["locale"] }}">
|
||||||
<head>
|
<head>
|
||||||
<title>{{ _("PiSCSI Control Page") }} [{{ env["host"] }}]</title>
|
<title>{{ page_title }} [{{ env["host"] }}]</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/pwa/apple-icon-57x57.png">
|
<link rel="apple-touch-icon" sizes="57x57" href="/pwa/apple-icon-57x57.png">
|
||||||
|
|
|
@ -260,6 +260,7 @@ def index():
|
||||||
|
|
||||||
return response(
|
return response(
|
||||||
template="index.html",
|
template="index.html",
|
||||||
|
page_title=_("PiSCSI Control Page"),
|
||||||
locales=get_supported_locales(),
|
locales=get_supported_locales(),
|
||||||
netinfo=piscsi_cmd.get_network_info(),
|
netinfo=piscsi_cmd.get_network_info(),
|
||||||
bridge_configured=sys_cmd.is_bridge_setup(),
|
bridge_configured=sys_cmd.is_bridge_setup(),
|
||||||
|
@ -305,6 +306,7 @@ def drive_list():
|
||||||
|
|
||||||
return response(
|
return response(
|
||||||
template="drives.html",
|
template="drives.html",
|
||||||
|
page_title=_("PiSCSI Create Drive"),
|
||||||
files=file_cmd.list_images()["files"],
|
files=file_cmd.list_images()["files"],
|
||||||
drive_properties=format_drive_properties(APP.config["PISCSI_DRIVE_PROPERTIES"]),
|
drive_properties=format_drive_properties(APP.config["PISCSI_DRIVE_PROPERTIES"]),
|
||||||
)
|
)
|
||||||
|
@ -318,6 +320,7 @@ def upload_page():
|
||||||
|
|
||||||
return response(
|
return response(
|
||||||
template="upload.html",
|
template="upload.html",
|
||||||
|
page_title=_("PiSCSI File Upload"),
|
||||||
max_file_size=int(int(MAX_FILE_SIZE) / 1024 / 1024),
|
max_file_size=int(int(MAX_FILE_SIZE) / 1024 / 1024),
|
||||||
FILE_SERVER_DIR=FILE_SERVER_DIR,
|
FILE_SERVER_DIR=FILE_SERVER_DIR,
|
||||||
)
|
)
|
||||||
|
@ -505,6 +508,7 @@ def show_diskinfo():
|
||||||
if returncode == 0:
|
if returncode == 0:
|
||||||
return response(
|
return response(
|
||||||
template="diskinfo.html",
|
template="diskinfo.html",
|
||||||
|
page_title=_("PiSCSI Image Info"),
|
||||||
file_name=str(file_name),
|
file_name=str(file_name),
|
||||||
diskinfo=diskinfo,
|
diskinfo=diskinfo,
|
||||||
)
|
)
|
||||||
|
@ -552,13 +556,14 @@ def show_manpage():
|
||||||
|
|
||||||
return response(
|
return response(
|
||||||
template="manpage.html",
|
template="manpage.html",
|
||||||
|
page_title=_("PiSCSI Manual"),
|
||||||
app=app,
|
app=app,
|
||||||
manpage=formatted_manpage,
|
manpage=formatted_manpage,
|
||||||
)
|
)
|
||||||
|
|
||||||
return response(
|
return response(
|
||||||
error=True,
|
error=True,
|
||||||
message=_("An error occurred when accessing man page: %(error)s", error=manpage),
|
message=_("An error occurred when accessing manual page: %(error)s", error=manpage),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -574,6 +579,7 @@ def show_logs():
|
||||||
if returncode == 0:
|
if returncode == 0:
|
||||||
return response(
|
return response(
|
||||||
template="logs.html",
|
template="logs.html",
|
||||||
|
page_title=_("PiSCSI System Logs"),
|
||||||
scope=scope,
|
scope=scope,
|
||||||
lines=lines,
|
lines=lines,
|
||||||
logs=logs,
|
logs=logs,
|
||||||
|
@ -791,6 +797,7 @@ def device_info():
|
||||||
if process["status"]:
|
if process["status"]:
|
||||||
return response(
|
return response(
|
||||||
template="deviceinfo.html",
|
template="deviceinfo.html",
|
||||||
|
page_title=_("PiSCSI Device Info"),
|
||||||
devices=process["device_list"],
|
devices=process["device_list"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue