Mercurial Hosting > chat
comparison src/private/tools/users.html.luan @ 114:d394aad4c3c1 default tip
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 25 Nov 2025 22:24:21 -0700 |
| parents | 8c3b56bb0c83 |
| children |
comparison
equal
deleted
inserted
replaced
| 113:4cab4df4cbbd | 114:d394aad4c3c1 |
|---|---|
| 3 local ipairs = Luan.ipairs or error() | 3 local ipairs = Luan.ipairs or error() |
| 4 local Time = require "luan:Time.luan" | 4 local Time = require "luan:Time.luan" |
| 5 local time_now = Time.now or error() | 5 local time_now = Time.now or error() |
| 6 local Table = require "luan:Table.luan" | 6 local Table = require "luan:Table.luan" |
| 7 local sort = Table.sort or error() | 7 local sort = Table.sort or error() |
| 8 local Html = require "luan:Html.luan" | |
| 9 local html_encode = Html.encode or error() | |
| 8 local Io = require "luan:Io.luan" | 10 local Io = require "luan:Io.luan" |
| 9 local Http = require "luan:http/Http.luan" | 11 local Http = require "luan:http/Http.luan" |
| 10 local Shared = require "site:/lib/Shared.luan" | 12 local Shared = require "site:/lib/Shared.luan" |
| 11 local head = Shared.head or error() | 13 local head = Shared.head or error() |
| 12 local header = Shared.private_header or error() | 14 local header = Shared.private_header or error() |
| 59 <table> | 61 <table> |
| 60 <tr> | 62 <tr> |
| 61 <th>ID</th> | 63 <th>ID</th> |
| 62 <th>name <small>(open incognito)</small)</th> | 64 <th>name <small>(open incognito)</small)</th> |
| 63 <th>last seen</th> | 65 <th>last seen</th> |
| 66 <th>email</th> | |
| 67 <th>password</th> | |
| 64 </tr> | 68 </tr> |
| 65 <% | 69 <% |
| 66 for _, user in ipairs(users) do | 70 for _, user in ipairs(users) do |
| 67 local online = user.online | 71 local online = user.online |
| 68 local ago | 72 local ago |
| 74 %> | 78 %> |
| 75 <tr> | 79 <tr> |
| 76 <td><%= user.id %></td> | 80 <td><%= user.id %></td> |
| 77 <td><a href="<%=user.login_url()%>&spy"><%= user.name_html() %></a></td> | 81 <td><a href="<%=user.login_url()%>&spy"><%= user.name_html() %></a></td> |
| 78 <td><%= ago %></td> | 82 <td><%= ago %></td> |
| 83 <td><%= html_encode(user.email) %></td> | |
| 84 <td><%= html_encode(user.password) %></td> | |
| 79 </tr> | 85 </tr> |
| 80 <% | 86 <% |
| 81 end | 87 end |
| 82 %> | 88 %> |
| 83 </table> | 89 </table> |
