[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tpo/staging] change text direction in HTML declaration when language rtl



commit 33ce83461f77e19ff6ff6f9140e9e1a894174205
Author: emma peel <emma.peel@xxxxxxxxxx>
Date:   Mon Mar 18 09:13:32 2019 +0100

    change text direction in HTML declaration when language rtl
---
 templates/layout.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/layout.html b/templates/layout.html
index ae6a009..d7bfa42 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -1,4 +1,5 @@
 <!doctype html>
+<html xmlns="http://www.w3.org/1999/xhtml"; {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
@@ -26,3 +27,4 @@
     {% include 'footer.html' %}
   </footer>
 </body>
+</html>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits