3
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Io = require "luan:Io.luan"
|
|
4 local Http = require "luan:http/Http.luan"
|
|
5 local Shared = require "site:/lib/Shared.luan"
|
|
6 local head = Shared.head or error()
|
|
7 local header = Shared.header or error()
|
|
8 local footer = Shared.footer or error()
|
|
9 local Forum = require "site:/lib/Forum.luan"
|
|
10 local forum_title = Forum.title or error()
|
|
11
|
|
12
|
|
13 return function()
|
|
14 Io.stdout = Http.response.text_writer()
|
|
15 %>
|
|
16 <!doctype html>
|
|
17 <html>
|
|
18 <head>
|
|
19 <% head() %>
|
|
20 <title><%=forum_title%> - Your Account</title>
|
|
21 </head>
|
|
22 <body>
|
|
23 <% header() %>
|
|
24 <div content>
|
|
25 <h1>Your Account</h1>
|
|
26
|
56
|
27 <p><a href="/change_name.html">Change Name</a></p>
|
57
|
28 <p><a href="/change_email.html">Change Email</a></p>
|
56
|
29 <p><a href="/logout.html">Logout</a></p>
|
3
|
30 </div>
|
|
31 <% footer() %>
|
|
32 </body>
|
|
33 </html>
|
|
34 <%
|
|
35 end
|