Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorSven Roederer <freifunk@it-solutions.geroedel.de>2021-05-23 02:43:44 +0300
committerSven Roederer <freifunk@it-solutions.geroedel.de>2021-05-23 02:54:05 +0300
commit184e93df5f0365d403d4d7a6243286cbe5b914de (patch)
treee2bda50b2aced2cfbdec1d598755862621e33dd6 /themes
parent398932f39b3a86ea4f7d25e18d1683acc8e76ea3 (diff)
luci-theme-openwrt-2020: use SVG-file for favicon and logo
Using the scalable graphic in place of the static png file saves some ressources in flash and network. It also aligns the filetype to the type announced to the browser. fixes GitHub-issue #5051 Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
Diffstat (limited to 'themes')
-rw-r--r--themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.pngbin2184 -> 0 bytes
-rw-r--r--themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm2
2 files changed, 1 insertions, 1 deletions
diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png
deleted file mode 100644
index ee841e823c..0000000000
--- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png
+++ /dev/null
Binary files differ
diff --git a/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm b/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
index 6370ee4d1f..1cc84acbb1 100644
--- a/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
+++ b/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm
@@ -24,7 +24,7 @@
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
-<link rel="icon" href="<%=media%>/favicon.png" type="image/svg+xml" />
+<link rel="icon" href="<%=media%>/logo.svg" type="image/svg+xml" />
<script type="text/javascript" src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script>
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>