Browse Source

luci-theme-openwrt-2020: link hostname to index page

In the Material theme, clicking on the logo takes you to the status page.
This seems logical, and is very helpful. But in OpenWrt 2020, clicking on
the hostname doesn't do anything, so just pulling the same href from Material
so the link works in this theme as well.

Signed-off-by: Russell Morris <rmorris@rkmorris.us>
[adjust subject, commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Russell Morris 3 years ago
parent
commit
400ecb08f0

+ 1 - 1
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm

@@ -39,7 +39,7 @@
 <div id="menubar">
 	<h2 class="navigation"><a id="navigation" name="navigation"><%:Navigation%></a></h2>
 
-	<span class="hostname"><%=(boardinfo.hostname or "?")%></span>
+	<span class="hostname"><a href="/"><%=(boardinfo.hostname or "?")%></a></span>
 	<span class="distversion"><%=ver.distversion%></span>
 	<span id="indicators"></span>
 </div>