]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Channel list: reorder fields a bit, drop topic set by/on
authorBram Matthys <redacted>
Wed, 11 Jan 2023 09:06:13 +0000 (10:06 +0100)
committerBram Matthys <redacted>
Wed, 11 Jan 2023 09:06:13 +0000 (10:06 +0100)
channels/index.php

index 54d9b90bf86c80979a6cfa1fff3aa026d726f0af..efb65a4b4602177bb1ccb1d9aa25dd4d28c1a85a 100644 (file)
@@ -17,11 +17,10 @@ $channels = $rpc->channel()->getAll();
 <table class="table table-responsive caption-top table-striped">
        <thead class="table-primary">
        <th>Name</th>
-       <th>Created</th>
-       <th>User count</th>
-       <th>Topic</th>
-       <th>Topic Set</th>
+       <th>Users</th>
        <th>Modes</th>
+       <th>Topic</th>
+       <th>Created</th>
 </thead>
 <tbody>
        <?php
@@ -29,14 +28,12 @@ $channels = $rpc->channel()->getAll();
                {
                        echo "<tr>";
                        echo "<td>".$channel->name."</td>";
-                       echo "<td>".$channel->creation_time."</td>";
                        echo "<td>".$channel->num_users."</td>";
-                       $topic = (isset($channel->topic)) ? $channel->topic : "";
-                       echo "<td>".$topic."</td>";
-                       $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : "";
-                       echo "<td>".$setby."</td>";
                        $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>";
                        echo "<td>".$modes."</td>";
+                       $topic = (isset($channel->topic)) ? $channel->topic : "";
+                       echo "<td>".$topic."</td>";
+                       echo "<td>".$channel->creation_time."</td>";
                }
        ?>
 </tbody>