annotate src/account.html.luan @ 59:02d8876dc41d

improve change email
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Nov 2022 18:45:22 -0700
parents 169ac5fdb320
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local header = Shared.header or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 local footer = Shared.footer or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 local Forum = require "site:/lib/Forum.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 local forum_title = Forum.title or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 return function()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 Io.stdout = Http.response.text_writer()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <!doctype html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 <head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <% head() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 <title><%=forum_title%> - Your Account</title>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 </head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 <% header() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 <div content>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 <h1>Your Account</h1>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26
56
7ce54f6d93f2 add change name
Franklin Schmidt <fschmidt@gmail.com>
parents: 3
diff changeset
27 <p><a href="/change_name.html">Change Name</a></p>
57
169ac5fdb320 add change email
Franklin Schmidt <fschmidt@gmail.com>
parents: 56
diff changeset
28 <p><a href="/change_email.html">Change Email</a></p>
56
7ce54f6d93f2 add change name
Franklin Schmidt <fschmidt@gmail.com>
parents: 3
diff changeset
29 <p><a href="/logout.html">Logout</a></p>
3
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31 <% footer() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32 </body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 </html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 end