Skip to content

Commit

Permalink
Fix (bf2sclone): Show nicetitle for server status
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Dec 22, 2023
1 parent 80198b5 commit e7043d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bf2sclone/template/servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
<td style="white-space: nowrap; cursor: default;">';
if ($s['data'] === false) {
$template .= '
<div style="display: inline-block; vertical-align: middle; width: 10px; height: 10px; border: 0px solid #000; border-radius: 50%; background: #F6B620;" title="OFF"></div>
<span style="vertical-align: middle; color: #F6B620;">OFF</span>
<img style="vertical-align: middle;" src="game-images/serverIcons/blank.png" alt="" />
<span style="display: inline-block; vertical-align: middle; width: 10px; height: 10px; border: 0px solid #000; border-radius: 50%; background: #f6b620;" alt="OFFLINE"></span>
<span style="vertical-align: middle; color: #F6B620;" alt="OFF">OFF</span>
<img style="vertical-align: middle;" src="game-images/serverIcons/blank.png" alt="OFF" />
</td>
<td><a href="?go=servers&sid=' . esc_attr($s['id']) . '">' . esc_attr($s['name']) . '</a></td>
Expand All @@ -67,7 +67,7 @@
<td>-</td>
</tr>';
} else {
$template .= '<div style="display: inline-block; vertical-align: middle; width: 10px; height: 10px; border: 0px solid #000; border-radius: 50%; background: #b8ff6abd;" title="ONLINE"></div>';
$template .= '<span style="display: inline-block; vertical-align: middle; width: 10px; height: 10px; border: 0px solid #000; border-radius: 50%; background: #5add65;" alt="ON"></span>';
$serverLoad = $s['data']['server']['numplayers'] / $s['data']['server']['maxplayers'];
if ($serverLoad >= 0.66) {
$template .= '<img src="game-images/serverIcons/Serverload_red.png" alt="High Load" />';
Expand Down

0 comments on commit e7043d4

Please sign in to comment.