Mercurial Hosting > chat
comparison src/account.html.luan @ 88:7b339b1ccd11
add tools/users.html
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 13 Mar 2025 16:18:39 -0600 |
| parents | 625ffdf6499d |
| children | 8c3b56bb0c83 |
comparison
equal
deleted
inserted
replaced
| 87:246a792adedf | 88:7b339b1ccd11 |
|---|---|
| 2 local error = Luan.error | 2 local error = Luan.error |
| 3 local Parsers = require "luan:Parsers.luan" | 3 local Parsers = require "luan:Parsers.luan" |
| 4 local json_string = Parsers.json_string or error() | 4 local json_string = Parsers.json_string or error() |
| 5 local Html = require "luan:Html.luan" | 5 local Html = require "luan:Html.luan" |
| 6 local html_encode = Html.encode or error() | 6 local html_encode = Html.encode or error() |
| 7 local url_encode = Html.url_encode or error() | |
| 7 local Io = require "luan:Io.luan" | 8 local Io = require "luan:Io.luan" |
| 8 local Http = require "luan:http/Http.luan" | 9 local Http = require "luan:http/Http.luan" |
| 9 local Shared = require "site:/lib/Shared.luan" | 10 local Shared = require "site:/lib/Shared.luan" |
| 10 local head = Shared.head or error() | 11 local head = Shared.head or error() |
| 11 local header = Shared.header or error() | 12 local header = Shared.header or error() |
| 214 <button onclick="doDeleteUser(this)">Delete</button> | 215 <button onclick="doDeleteUser(this)">Delete</button> |
| 215 </div> | 216 </div> |
| 216 </dialog> | 217 </dialog> |
| 217 <dialog url> | 218 <dialog url> |
| 218 <h2>Your chat URL</h2> | 219 <h2>Your chat URL</h2> |
| 219 <p><%= base_url() %>/chat?with=<%=html_encode(user.email)%></p> | 220 <p><%= base_url() %>/chat?with=<%=url_encode(user.email)%></p> |
| 220 <p>Use this URL to link to your chat so that other people can chat with you by clicking on the link.</p> | 221 <p>Use this URL to link to your chat so that other people can chat with you by clicking on the link.</p> |
| 221 <div buttons> | 222 <div buttons> |
| 222 <button onclick="closeModal(this)">Close</button> | 223 <button onclick="closeModal(this)">Close</button> |
| 223 </div> | 224 </div> |
| 224 </dialog> | 225 </dialog> |
