show a generic loading icon when we are doing work making an oauth request, then...
[tritium.git] / index.lp
blobaeb06ea9c2d7a0837a6ee7239ee6eb7fb1545786
1 <?lua
2 require("cgilua.cookies")
3 assert (loadfile("lib/tritium4/config.lua"))()
4 assert (loadfile("lib/tritium4/functions.lua"))()
5 if cgilua.QUERY.show == nil then
6         header("tritium4",screen_name)
7 end
8 if cgilua.QUERY.exec ~= nil then
9         switch(cgilua.QUERY.exec)
10         {
11                 ["callback"] = function() callback(redirection) end,
12                 ["connect"] = function() connect() end,
13                 ["logout"] = function() logout(redirection) end,
14                 default = function() loggedin() end
15         }
16 elseif cgilua.QUERY.show ~= nil then
17         timeline("home",nil)
18 else
20                 <div class="comment-list-wrapper">
21 <?lua
22         loggedin()
24                 </div>
25 <?lua
26 end
27 if cgilua.QUERY.show == nil then
28         footer()
29 end