mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Add html lang
attribute
This commit is contained in:
parent
eb5e1edf5e
commit
3f888c39d2
@ -153,7 +153,7 @@ def inject_default_variables():
|
||||
"""Inject the version number in the template variables"""
|
||||
if __version__ == "unknown":
|
||||
return {"version": ''}
|
||||
return {"version": __version__}
|
||||
return {"version": __version__, "lang": get_locale()}
|
||||
|
||||
|
||||
@app.after_request
|
||||
|
@ -1,9 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="{{ lang }}">
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta name="description" content="{{ self.title() }}" />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#eff1f5">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1e1e2e">
|
||||
<title>{% block title %}{% endblock %} - PartitionCloud</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style/style.css') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style/mobile.css') }}">
|
||||
|
Loading…
Reference in New Issue
Block a user