Compare commits

..

No commits in common. "3bfa505fa4c7b9a0988e11a437b3068ea473088c" and "d6221c1235606787a9dbe4a312447408d9e1e359" have entirely different histories.

View file

@ -5,7 +5,8 @@ local config = require("lapis.config").get()
members = {{"fynn","https://fynngodau.de"},
{"anton","https://anton.ehrmanntraut.de"},
{"max","https://aaahhh.de"}}
{"max","https://aaahhh.de"},
{"cups",config.host}}
members[#members+1] = members[1]
math.randomseed(os.time())
@ -19,7 +20,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><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"}
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"}
end)
app:get("/random", function(self)