]> git.mxchange.org Git - friendica-addons.git/commitdiff
Ratioed: fix sorting by columns
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 11 Jan 2025 18:38:29 +0000 (19:38 +0100)
committerTobias Diekershoff <tobias@noreply.git.friendi.ca>
Sun, 12 Jan 2025 11:03:00 +0000 (12:03 +0100)
ratioed/templates/ratioed.tpl

index 5d92bff23707ddb0d7aa872a34c6a2850e4e4bef..d634993ecfb86fbf3e40887bffa6526d3c2a0752 100644 (file)
@@ -22,9 +22,9 @@
                                        </th>
                                        <th></th>
                                        {{foreach $th_users as $k=>$th}}
-                                               {{if $k < 2 || $order_users == $th.1 || ($k==5 && !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1])) }}
+                                               {{if $k < 2 || $order_users == $th.1 || ($k==4 && !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.5.1])) }}
                                                <th class="th-{{$k}}">
-                                                       <a href="{{$baseurl}}/moderation/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}" class="table-order">
+                                                       <a href="{{$baseurl}}/ratioed?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}" class="table-order">
                                                                {{if $order_users == $th.1}}
                                                                        {{if $order_direction_users == "+"}}
                                                                        &#8595;
                                        <td>{{$u.login_date}}</td>
                                {{/if}}
 
-                               {{if $order_users == $th_users.4.1}}
-                                       <td>{{$u.lastitem_date}}</td>
-                               {{/if}}
-
-                               {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
+                               {{if $order_users == $th_users.5.1}}
                                        <td>
                                                <i class="fa
                                                        {{if $u.page_flags_raw==0}}fa-user{{/if}}               {{* PAGE_NORMAL *}}
                                        </td>
                                {{/if}}
 
+                               {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.5.1]) }}
+                                       <td>{{$u.lastitem_date}}</td>
+                               {{/if}}
+
                                        <td class="text-right">
                                                <button type="button" class="btn-link admin-settings-action-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
                                        </td>