luci-theme-openwrt-2020: link hostname to index page
authorRussell Morris <rmorris@rkmorris.us>
Sun, 26 Apr 2020 21:22:29 +0000 (16:22 -0500)
committerJo-Philipp Wich <jo@mein.io>
Tue, 16 Jun 2020 15:09:20 +0000 (17:09 +0200)
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>
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm

index 2025b67ed0f0c58d485a83487bae1e3ccaa408ca..c6bb0877a3ed826b2a8b53860e18864647a64277 100644 (file)
@@ -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>