Set HTML dir attribute in RTL languages

This way properties flex layouts text direction will work properly.
This commit is contained in:
Javi Martín
2021-06-21 23:59:31 +02:00
parent a868a5ff35
commit d827768c07
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= I18n.locale %>"> <html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>">
<head> <head>
<%= render "layouts/common_head", default_title: "Admin" %> <%= render "layouts/common_head", default_title: "Admin" %>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>"> <html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
<head> <head>
<%= render "layouts/common_head", default_title: setting["org_name"] %> <%= render "layouts/common_head", default_title: setting["org_name"] %>
<%= render "layouts/tracking_data" %> <%= render "layouts/tracking_data" %>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= I18n.locale %>"> <html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>">
<head> <head>
<%= render "layouts/common_head", default_title: setting["org_name"] %> <%= render "layouts/common_head", default_title: setting["org_name"] %>
<%= render "layouts/meta_tags" %> <%= render "layouts/meta_tags" %>

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<%= I18n.locale %>"> <html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>">
<head> <head>
<%= render "layouts/common_head", default_title: "Management" %> <%= render "layouts/common_head", default_title: "Management" %>