untested changes go brrrrrrrrrrrr
This commit is contained in:
parent
d6221c1235
commit
8a9094e981
1 changed files with 2 additions and 3 deletions
|
|
@ -5,8 +5,7 @@ local config = require("lapis.config").get()
|
|||
|
||||
members = {{"fynn","https://fynngodau.de"},
|
||||
{"anton","https://anton.ehrmanntraut.de"},
|
||||
{"max","https://aaahhh.de"},
|
||||
{"cups",config.host}}
|
||||
{"max","https://aaahhh.de"}}
|
||||
members[#members+1] = members[1]
|
||||
|
||||
math.randomseed(os.time())
|
||||
|
|
@ -20,7 +19,7 @@ app:get("/embed", function(self)
|
|||
if from == nil then
|
||||
return {"cups webring embed needs from defined (.../embed?from=me)"}
|
||||
end
|
||||
return string.format('<div style="display:flex; flex-direction:row; align-items:center;"><a href="%s/prev?from=%s" target="_parent"><img src="%s/static/arrow_left.svg" width=50 height=50/></a><img src="%s/static/logo_cut.svg" width=200 height=100/><a href="%s/next?from=%s" target="_parent"><img src="%s/static/arrow_right.svg" width=50 height=50/></a></div>', config.host, from, config.host, config.host, config.host, from, config.host), {layout = false, content_type="text/html"}
|
||||
return string.format('<div style="display:flex; flex-direction:row; align-items:center;"><a href="%s/prev?from=%s" target="_parent"><img src="%s/static/arrow_left.svg" width=50 height=50/></a><a href="%s"><img src="%s/static/logo_cut.svg" width=200 height=100/></a><a href="%s/next?from=%s" target="_parent"><img src="%s/static/arrow_right.svg" width=50 height=50/></a></div>', config.host, from, config.host, config.host, config.host, config.host, from, config.host), {layout = false, content_type="text/html"}
|
||||
end)
|
||||
|
||||
app:get("/random", function(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue