diff options
author | Germain <germain@souquet.com> | 2022-10-21 18:44:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 17:44:00 +0000 |
commit | 1d45ad8b2ab1c41dd489ccd581d027077bc917e5 (patch) | |
tree | 38056b37a1bfba7e7b086cf82cf9ed2caab48ca0 /synapse/res/templates/_base.html | |
parent | Fix logging error on SIGHUP (#14258) (diff) | |
download | synapse-1d45ad8b2ab1c41dd489ccd581d027077bc917e5.tar.xz |
Improve aesthetics and reusability of HTML templates. (#13652)
Use a base template to create a cohesive feel across the HTML templates provided by Synapse. Adds basic styling to the base template for a more user-friendly look and feel.
Diffstat (limited to 'synapse/res/templates/_base.html')
-rw-r--r-- | synapse/res/templates/_base.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/synapse/res/templates/_base.html b/synapse/res/templates/_base.html new file mode 100644 index 0000000000..46439fce6a --- /dev/null +++ b/synapse/res/templates/_base.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{% block title %}{% endblock %}</title> + <style type="text/css"> + {%- include 'style.css' without context %} + </style> + {% block header %}{% endblock %} +</head> +<body> +<header class="mx_Header"> + {% if app_name == "Riot" %} + <img src="http://riot.im/img/external/riot-logo-email.png" width="83" height="83" alt="[Riot]"/> + {% elif app_name == "Vector" %} + <img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/> + {% elif app_name == "Element" %} + <img src="https://static.element.io/images/email-logo.png" width="83" height="83" alt="[Element]"/> + {% else %} + <img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/> + {% endif %} +</header> + +{% block body %}{% endblock %} + +</body> +</html> |