luci-theme-openwrt-2020: use SVG-file for favicon and logo
authorSven Roederer <freifunk@it-solutions.geroedel.de>
Sat, 22 May 2021 23:43:44 +0000 (01:43 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 12 Jun 2021 17:22:37 +0000 (19:22 +0200)
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>
(cherry picked from commit 184e93df5f0365d403d4d7a6243286cbe5b914de)

themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png [deleted file]
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm

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 (file)
index ee841e8..0000000
Binary files a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png and /dev/null differ
index ce507505019824cae5643c95b1169ceeea1108d3..23da8e46f7b68a0345fe5f8306c99d709edf77f6 100644 (file)
@@ -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>