Use the dir attribute in dashboard and mailer layouts

We forgot to do so in commit d827768c0. In order to avoid the same
mistake in the future, we're extracting a method to get these
attributes. We're also adding tests, since we didn't have any tests to
check that the `dir` attribute was properly set.
This commit is contained in:
Javi Martín
2022-10-06 18:10:35 +02:00
parent 314ce70000
commit 2c0ede3aaa
11 changed files with 63 additions and 11 deletions

View File

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