summaryrefslogtreecommitdiff
path: root/lupin
diff options
context:
space:
mode:
authorbie <bie@blekksprut.net>2017-06-04 21:47:59 +0900
committerbie <bie@blekksprut.net>2017-06-04 21:47:59 +0900
commit6079d8edb941c50e773579c39f5e588b8986c8d8 (patch)
tree612c192cc140c7ed6e395af2863dfc70855ba9d7 /lupin
parent3a7cdeb20edf7c57cfec9ec7f68e0277240a3fb7 (diff)
downloadtears-6079d8edb941c50e773579c39f5e588b8986c8d8.tar.xz
tears er enda bedre
Diffstat (limited to 'lupin')
-rw-r--r--lupin/anmeldelse.lua22
-rw-r--r--lupin/artikkel.lua18
2 files changed, 0 insertions, 40 deletions
diff --git a/lupin/anmeldelse.lua b/lupin/anmeldelse.lua
deleted file mode 100644
index 37a441b..0000000
--- a/lupin/anmeldelse.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local artikkel = blueprint("anmeldelse")
-
-function artikkel.env(data)
- data.terningkast = os.getenv("POST_terningkast") or ""
- data.publisert = os.getenv("POST_publisert") or ""
-end
-
-function artikkel.form(body, data)
- html.p()
- html.label("Overskrift:")
- html.text('title', data.title, 32)
- html.p()
- html.label("Terningkast:")
- html.p(data.terningkast)
- html.select('terningkast', { 1, 2, 3, 4, 5, 6 }, data.terningkast or 1)
- html.p()
- html.textarea('tekst', body)
- html.hidden('type', 'anmeldelse')
-end
-
-return artikkel
-
diff --git a/lupin/artikkel.lua b/lupin/artikkel.lua
deleted file mode 100644
index 3ad2f4d..0000000
--- a/lupin/artikkel.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local artikkel = blueprint("default")
-
-function artikkel.env(data)
- data.bilde = os.getenv("POST_bilde")
- data.publisert = os.getenv("POST_publisert")
-end
-
-function artikkel.form(body, data)
- html.p()
- html.label("Overskrift:")
- html.text('title', data.title, 32)
- html.orz('bilde', data.bilde or '')
- html.p()
- html.textarea('tekst', body)
-end
-
-return artikkel
-