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

emmapeel at torproject.org emmapeel at torproject.org
Mon Mar 18 08:21:29 UTC 2019


commit 33ce83461f77e19ff6ff6f9140e9e1a894174205
Author: emma peel <emma.peel at riseup.net>
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>



More information about the tor-commits mailing list