diff options
author | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2021-05-23 01:43:44 +0200 |
---|---|---|
committer | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2021-05-23 01:54:05 +0200 |
commit | 184e93df5f0365d403d4d7a6243286cbe5b914de (patch) | |
tree | e2bda50b2aced2cfbdec1d598755862621e33dd6 | |
parent | 398932f39b3a86ea4f7d25e18d1683acc8e76ea3 (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>
-rw-r--r-- | themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png | bin | 2184 -> 0 bytes | |||
-rw-r--r-- | themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm | 2 |
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 Binary files differdeleted file mode 100644 index ee841e823c..0000000000 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png +++ /dev/null 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> |