]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Users: get rid of "user modes" column. Similar to previous, at least for now.
authorBram Matthys <redacted>
Tue, 25 Apr 2023 06:39:51 +0000 (08:39 +0200)
committerBram Matthys <redacted>
Tue, 25 Apr 2023 06:39:51 +0000 (08:39 +0200)
api/users.php
users/index.php

index fa12746696376e2e519f981a2ae3e93371f9866a..109386200a68e1a0320ca50573c6056c36276680 100644 (file)
@@ -26,7 +26,6 @@ foreach($users as $user)
        $hostip = htmlspecialchars($hostip);
        
        $account = (isset($user->user->account)) ? "<a href=\"".get_config("base_url")."users/?account=".$user->user->account."\">".htmlspecialchars($user->user->account)."</a>" : '<span class="badge rounded-pill badge-primary">None</span>';
-       $modes = (isset($user->user->modes)) ? "+" . $user->user->modes : "<none>";
        $oper = (isset($user->user->operlogin)) ? $user->user->operlogin." <span class=\"badge rounded-pill badge-secondary\">".$user->user->operclass."</span>" : "";
        if (!strlen($oper))
                        $oper = (strpos($user->user->modes, "S") !== false) ? '<span class="badge rounded-pill badge-warning">Services Bot</span>' : "";
@@ -41,7 +40,6 @@ foreach($users as $user)
                "Country" => $country,
                "Host/IP" => $hostip,
                "Account" => $account,
-               "Usermodes" => $modes,
                "Oper" => $oper,
                "Connected to" => $servername,
                "Reputation" => $reputation,
index 0159ca03ddff57939bdc7176dbbdd75530eb938a..c5ea05d97f5c70ecfec6f42be13c9610b779936e 100644 (file)
@@ -116,7 +116,6 @@ Click on a username to view more information.
                <th class="countrycol" scope="col">Country</th>
                <th class="hostname" scope="col">Host / IP</th>
                <th class="accountcol" scope="col"><span data-toggle="tooltip" data-placement="bottom" title="The services account name, if the user identified to services." style="border-bottom: 1px dotted #000000">Account</span></th>
-               <th class="umodescol" scope="col">Usermodes <a href="https://www.unrealircd.org/docs/User_modes" target="_blank">ℹ️</a></th>
                <th class="opercol" scope="col">Oper</th>
                <th class="uplinkcol" scope="col">Connected to</th>
                <th class="reputationcol" scope="col"><span id="reputationheader" data-toggle="tooltip" data-placement="bottom" title="The reputation score gets higher when someone with this IP address has been connected in the past weeks. A low reputation score (like <10) is an indication of a new IP." style="border-bottom: 1px dotted #000000">Rep.</span> <a href="https://www.unrealircd.org/docs/Reputation_score" target="_blank">ℹ️</a></th>
@@ -297,7 +296,6 @@ $(document).ready( function () {
                        { 'data': 'Country', 'className':'countrycol', 'responsivePriority': 2 },
                        { 'data': 'Host/IP', 'className':'hostname', 'responsivePriority': 5 },
                        { 'data': 'Account', 'className':'accountcol', 'responsivePriority': 3 },
-                       { 'data': 'Usermodes', 'className':'umodescol', 'responsivePriority': 7 },
                        { 'data': 'Oper', 'className':'opercol', 'responsivePriority': 8 },
                        { 'data': 'Connected to', 'className':'uplinkcol', 'responsivePriority': 6 },
                        { 'data': 'Reputation', 'className':'reputationcol', 'responsivePriority': 4 },
@@ -309,7 +307,7 @@ $(document).ready( function () {
                args['dom'] = 'Pfrtip';
                args['searchPanes'] = {
                        'initCollapsed': 'true',
-                       'columns': [2,8],
+                       'columns': [2,6],
                        'dtOpts': {
                                select: { style: 'multi'},
                                order: [[ 1, "desc" ]]