mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
header_authenticated.lp: add the hostname li only if it's greater t… (#3501)
This commit is contained in:
@@ -54,12 +54,14 @@ mg.include('header.lp','r')
|
||||
</button>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li<? if string.len(hostname) == 0 then ?> class="hidden"<? end ?>>
|
||||
<p class="navbar-text">
|
||||
<span class="hidden-xs">hostname:</span>
|
||||
<code><?=hostname?></code>
|
||||
</p>
|
||||
</li>
|
||||
<? if string.len(hostname) > 0 then ?>
|
||||
<li>
|
||||
<p class="navbar-text">
|
||||
<span class="hidden-xs">hostname:</span>
|
||||
<code><?=hostname?></code>
|
||||
</p>
|
||||
</li>
|
||||
<? end ?>
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fa fa-bars"></i>
|
||||
|
||||
Reference in New Issue
Block a user