Mercurial Hosting > linkmystyle
view src/private/reports/registers.html.luan @ 0:8f4df159f06b
start public repo
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 11 Jul 2025 20:57:49 -0600 |
| parents | |
| children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local ipairs = Luan.ipairs or error() local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local User = require "site:/lib/User.luan" local Logging = require "luan:logging/Logging.luan" local logger = Logging.logger "reports/registers.html" return function() local users = User.search("type:user","id desc",100) Io.stdout = Http.response.text_writer() %> <!doctype html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> @import "/tools/tools.css"; </style> </head> <body> <h1>registers</h1> <table> <tr> <th>email</th> <th>name</th> <th>code</th> </tr> <% for _, user in ipairs(users) do local code = user.code if code == nil then continue end %> <tr> <td><%= user.email %></td> <td><a href="/register2.html?user=<%=user.name%>"><%= user.name %></a></td> <td><%= code %></td> </tr> <% end %> </table> </body> </html> <% end
