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.
这个提交包含在:
Paul Beesley 2020-11-02 09:16:24 +00:00
父节点 4d193fc07f
当前提交 77a8143dc0

查看文件

@ -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>