]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
some minor cosmetic changes
authorValerie Pond <redacted>
Wed, 5 Apr 2023 04:23:11 +0000 (05:23 +0100)
committerValerie Pond <redacted>
Wed, 5 Apr 2023 04:23:11 +0000 (05:23 +0100)
channels/details.php
channels/index.php

index ff118b17aa3a3833475fc82256c68101c572fc84..a0a3a2b1544207ef3da24d4046578fd70ee767ac 100644 (file)
@@ -208,7 +208,6 @@ if (!empty($_POST))
 ?>
 <title><?php echo $title; ?></title>
 <h6><?php echo $title; ?></h6>
-<br>
 
 
 <form method="get" action="details.php">
index f1a03c0aecd7a78b88c22f5cb762fc3177bb2ee6..975e19c3eab60253e7ea7a34cd4aa0e012fbc199 100644 (file)
@@ -32,7 +32,8 @@ $channels = $rpc->channel()->getAll();
                {
                        echo "<tr>";
                        echo "<td><a href=\"details.php?chan=".urlencode(htmlspecialchars($channel->name))."\">".htmlspecialchars($channel->name)."</a></td>";
-                       echo "<td>".$channel->num_users."</td>";
+                       $s = ($channel->num_users) ? "success" : "danger";
+                       echo "<td><span class=\"badge rounded-pill badge-$s\">".$channel->num_users."</span></td>";
                        $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
                        echo "<td>".htmlspecialchars($modes)."</td>";
                        $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : "";