diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 23:21:39 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 23:21:39 +0200 |
| commit | 3b321ff637f431e16a13cef657a184041f605e68 (patch) | |
| tree | c4c3f6246dc6b6bc5dbc1423b9b256d36c731656 /app/views | |
| parent | f8ce323663debb22890ad1ed29f385b8b832abc6 (diff) | |
Give our layouts proper language meta and viewports
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 6 | ||||
| -rw-r--r-- | app/views/layouts/application.html.erb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index e056489f..f6ceaaff 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | 1 | <!DOCTYPE html> |
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 3 | 2 | ||
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 3 | <html lang="<%= I18n.locale %>"> |
| 5 | <head> | 4 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 6 | <meta name="viewport" content="width=device-width,initial-scale=1"/> | ||
| 7 | <%= csrf_meta_tags %> | 7 | <%= csrf_meta_tags %> |
| 8 | 8 | ||
| 9 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> | 9 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> |
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f95ea889..6a31104a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | <!DOCTYPE HTML> | 1 | <!DOCTYPE HTML> |
| 2 | 2 | ||
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 3 | <html lang="<%= I18n.locale %>"> |
| 4 | <head> | 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 6 | <meta name="viewport" content="width=device-width,initial-scale=1"/> | 6 | <meta name="viewport" content="width=device-width,initial-scale=1"/> |
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | </head> | 28 | </head> |
| 29 | 29 | ||
| 30 | <body lang="<%= @page ? @page.effective_lang : 'de' %>"> | 30 | <body> |
| 31 | <div id="wrapper"> | 31 | <div id="wrapper"> |
| 32 | <div id="header"> | 32 | <div id="header"> |
| 33 | <img src="/images/header.png" alt=""> | 33 | <img src="/images/header.png" alt=""> |
