diff options
author | Steven Barth <steven@midlink.org> | 2008-04-11 18:24:25 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-11 18:24:25 +0000 |
commit | 0268c3491f5b14ffdba097e6a983ffc7c53daa13 (patch) | |
tree | 2c1e23726f304a85cd0d75ac5836a6e6c7e7dc71 /module/public-core | |
parent | 84889c281cffb8f05248e967e1897bd8a55cecd9 (diff) |
* Major repository revision
Diffstat (limited to 'module/public-core')
-rw-r--r-- | module/public-core/Makefile | 36 | ||||
-rw-r--r-- | module/public-core/src/controller/public/index.lua | 1 | ||||
-rw-r--r-- | module/public-core/src/view/public_index/contact.htm | 12 | ||||
-rw-r--r-- | module/public-core/src/view/public_index/index.htm | 5 |
4 files changed, 54 insertions, 0 deletions
diff --git a/module/public-core/Makefile b/module/public-core/Makefile new file mode 100644 index 0000000000..9b57451399 --- /dev/null +++ b/module/public-core/Makefile @@ -0,0 +1,36 @@ +LUAC = luac +LUAC_OPTIONS = -s + +FILES = i18n/* view/*/*.htm + +CFILES = controller/*/*.lua model/cbi/*/*.lua model/menu/*.lua + +DIRECTORIES = model/cbi model/menu controller i18n view + + +INFILES = $(CFILES:%=src/%) +OUTDIRS = $(DIRECTORIES:%=dist/%) +CPFILES = $(FILES:%=src/%) + +.PHONY: all compile source clean depends + +all: compile + + +depends: + mkdir -p $(OUTDIRS) + for i in $(CPFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + +compile: depends + for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i); done + + +source: depends + for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + + +clean: + rm dist -rf diff --git a/module/public-core/src/controller/public/index.lua b/module/public-core/src/controller/public/index.lua new file mode 100644 index 0000000000..4f8160a4c9 --- /dev/null +++ b/module/public-core/src/controller/public/index.lua @@ -0,0 +1 @@ +module(..., package.seeall)
\ No newline at end of file diff --git a/module/public-core/src/view/public_index/contact.htm b/module/public-core/src/view/public_index/contact.htm new file mode 100644 index 0000000000..ded0a94af0 --- /dev/null +++ b/module/public-core/src/view/public_index/contact.htm @@ -0,0 +1,12 @@ +<%+header%> +<h1><%:contact Kontakt%></h1> +<table class="contact"> + <tr><th><%:nickname Pseudonym%>:</th><td><%~luci.contact.nickname%></td></tr> + <tr><th><%:name Name%>:</th><td><%~luci.contact.name%></td></tr> + <tr><th><%:mail E-Mail%>:</th><td><%~luci.contact.mail%></td></tr> + <tr><th><%:phone Telefon%>:</th><td><%~luci.contact.phone%></td></tr> + <tr><th><%:location Standort%>:</th><td><%~luci.contact.location%></td></tr> + <tr><th><%:geocoord Geokoordinaten%>:</th><td><%~luci.contact.geo%></td></tr> + <tr><th><%:note Notiz%>:</th><td><%~luci.contact.note%></td></tr> +</table> +<%+footer%>
\ No newline at end of file diff --git a/module/public-core/src/view/public_index/index.htm b/module/public-core/src/view/public_index/index.htm new file mode 100644 index 0000000000..1f06e344cf --- /dev/null +++ b/module/public-core/src/view/public_index/index.htm @@ -0,0 +1,5 @@ +<%+header%> +<h1><%:hello Hallo!%></h1> +<p><%:admin1 Dies ist der Administrationsbereich. %> +<p><em>ToDo: Intelligenter Einleitungstext</em></p> +<%+footer%>
\ No newline at end of file |