Replace text with user icon in header bar

I noticed that on smaller screens (iPad, etc) the header bar gets a bit squashed. This patch doesn't fix that entirely but we can save a little space by using an icon instead of "Logged in as" text next to the callsign of the logged-in user.
This commit is contained in:
Paul Beesley
2020-11-02 09:16:24 +00:00
parent 4d193fc07f
commit 77a8143dc0

View File

@@ -193,7 +193,7 @@
<ul class="navbar-nav">
<!-- Logged in As -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Logged in as <?php echo $this->session->userdata('user_callsign'); ?></a>
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-user"></i> <?php echo $this->session->userdata('user_callsign'); ?></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="<?php echo site_url('user/edit')."/".$this->session->userdata('user_id'); ?>" title="Profile"><i class="far fa-user"></i> Profile</a>