Merge pull request 'untested changes go brrrrrrrrrrrr' (#1) from Max7/cups-webring:main into main
All checks were successful
/ deploy (push) Successful in 2s
All checks were successful
/ deploy (push) Successful in 2s
Reviewed-on: #1
This commit is contained in:
commit
3bfa505fa4
1 changed files with 2 additions and 3 deletions
|
|
@ -5,8 +5,7 @@ local config = require("lapis.config").get()
|
||||||
|
|
||||||
members = {{"fynn","https://fynngodau.de"},
|
members = {{"fynn","https://fynngodau.de"},
|
||||||
{"anton","https://anton.ehrmanntraut.de"},
|
{"anton","https://anton.ehrmanntraut.de"},
|
||||||
{"max","https://aaahhh.de"},
|
{"max","https://aaahhh.de"}}
|
||||||
{"cups",config.host}}
|
|
||||||
members[#members+1] = members[1]
|
members[#members+1] = members[1]
|
||||||
|
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
|
|
@ -20,7 +19,7 @@ app:get("/embed", function(self)
|
||||||
if from == nil then
|
if from == nil then
|
||||||
return {"cups webring embed needs from defined (.../embed?from=me)"}
|
return {"cups webring embed needs from defined (.../embed?from=me)"}
|
||||||
end
|
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)
|
end)
|
||||||
|
|
||||||
app:get("/random", function(self)
|
app:get("/random", function(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue