summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt/ucode
diff options
context:
space:
mode:
authorRamon Van Gorkom <Ramon00c00@gmail.com>2024-09-15 21:48:41 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-09-15 23:45:33 +0200
commit5a30e6c3af7f6bb1b4f02b5fcf8134c2b00ad3fb (patch)
treed76847f886fa5b297e22fecb3e68e551f36ee684 /themes/luci-theme-openwrt/ucode
parentb9751888a1f08045e589a5e3c83094a81319bf0e (diff)
luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility
luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility see also https://github.com/openwrt/luci/issues/7229 Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
Diffstat (limited to 'themes/luci-theme-openwrt/ucode')
-rw-r--r--themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut7
1 files changed, 3 insertions, 4 deletions
diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut
index f6c20be188..9f9e75d532 100644
--- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut
+++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut
@@ -10,12 +10,11 @@
const boardinfo = ubus.call('system', 'board');
const loadinfo = ubus.call("system", "info")?.load;
- http.prepare_content("application/xhtml+xml");
+ http.prepare_content('text/html; charset=UTF-8');
-%}
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ dispatcher.lang }}" lang="{{ dispatcher.lang }}">
+<!DOCTYPE html>
+<html lang="{{ dispatcher.lang }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />