mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-24 16:40:24 +00:00
Stylize sidebar status indicators
This commit is contained in:
parent
774d7e90ef
commit
d874668ce1
4 changed files with 14 additions and 10 deletions
|
@ -52,7 +52,11 @@ License: GNU General Public License v3.0
|
|||
|
||||
.info-item-xs {
|
||||
font-size: 0.7rem;
|
||||
margin-left: 0.3rem;
|
||||
margin-left: 0.75rem;
|
||||
}
|
||||
|
||||
.sb-status {
|
||||
margin-left: 0.75rem!important;
|
||||
}
|
||||
|
||||
.info-item-wifi {
|
||||
|
|
|
@ -10,15 +10,15 @@
|
|||
<img src="app/img/raspAP-logo.php" class="navbar-logo" width="64" height="64">
|
||||
</div>
|
||||
<div class="col-xs ml-2">
|
||||
<div class="ml-1">Status</div>
|
||||
<div class="ml-1 sb-status">Status</div>
|
||||
<div class="info-item-xs"><span class="icon">
|
||||
<i class="fas fa-circle <?php echo ($hostapd_led); ?>"></i></span> <?php echo _("Hotspot").' '. _($hostapd_status); ?>
|
||||
</div>
|
||||
<div class="info-item-xs"><span class="icon">
|
||||
<i class="fas fa-circle <?php echo ($memused_led); ?>"></i></span> <?php echo _("Memory Use").': '. htmlspecialchars(strval($memused), ENT_QUOTES); ?>%
|
||||
<i class="fas fa-circle <?php echo ($memused_led); ?>"></i></span> <?php echo _("Mem Use").': '. htmlspecialchars(strval($memused), ENT_QUOTES); ?>%
|
||||
</div>
|
||||
<div class="info-item-xs"><span class="icon">
|
||||
<i class="fas fa-circle <?php echo ($cputemp_led); ?>"></i></span> <?php echo _("CPU Temp").': '. htmlspecialchars($cputemp, ENT_QUOTES); ?>°C
|
||||
<i class="fas fa-circle <?php echo ($cputemp_led); ?>"></i></span> <?php echo _("CPU").': '. htmlspecialchars($cputemp, ENT_QUOTES); ?>°C
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -46,10 +46,10 @@ if ($cputemp > 70) {
|
|||
// hostapd status
|
||||
$hostapd = $system->hostapdStatus();
|
||||
if ($hostapd[0] ==1) {
|
||||
$hostapd_status = "active";
|
||||
$hostapd_status = "up";
|
||||
$hostapd_led = "service-status-up";
|
||||
} else {
|
||||
$hostapd_status = "inactive";
|
||||
$hostapd_status = "down";
|
||||
$hostapd_led = "service-status-down";
|
||||
}
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ msgstr "WiFi client"
|
|||
msgid "Hotspot"
|
||||
msgstr "Hotspot"
|
||||
|
||||
msgid "Memory Use"
|
||||
msgstr "Memory Use"
|
||||
msgid "Mem Use"
|
||||
msgstr "Mem Use"
|
||||
|
||||
msgid "CPU Temp"
|
||||
msgstr "CPU Temp"
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
msgid "Networking"
|
||||
msgstr "Networking"
|
||||
|
|
Loading…
Reference in a new issue