Skip to content

Commit

Permalink
Change hostname link to go to main status page.
Browse files Browse the repository at this point in the history
On mobile devices without the FPP or Falcon logo, the hostname is
shown in the top left.  Make the hostname link go to the status page
just like the FPP and Falcon logo links do on desktop.

On mobile, this makes going to the status page 1-click instead of 3
to get there via the menu.

Fixes #1667
  • Loading branch information
cpinkham committed Nov 30, 2023
1 parent 042bd9b commit 1cc8bdf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions www/menu.inc
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ function list_plugin_entries($menu) {
<div class="headerCenter">
<div class="headerCenterRow headerHost">
<?
if ((!$settings["IsDesktop"]) || ($settings['uiLevel'] > 2) ) {
echo("<span class=\"headerHostName headerBox\" id=\"header_host\"><span title=\"Host: ".$settings["HostName"]."\"><a href='networkconfig.php#tab-host-dns' class='nonULLink'>".$settings['HostName']."</a></span></span>");
} else {
echo("<span class=\"headerHostName headerBox\" id=\"header_host\"><span title=\"Host: ".$settings["HostName"]."\">".$settings["HostName"]."</span></span>");
}
echo("<span class=\"headerHostName headerBox\" id=\"header_host\"><a href='index.php' class='nonULLink'>".$settings['HostName']."</a></span>");

$currentHeaderSensor = "1";
if (isset($settings['currentHeaderSensor'])) {
Expand Down

0 comments on commit 1cc8bdf

Please sign in to comment.