diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-31 12:40:41 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-31 12:40:41 +0000 |
commit | 325fedbb9ea4ec691a1c420ba051bfc1f28b2a0d (patch) | |
tree | 2b412f88b31789cefdb4c251edd9861611535810 /modules-controller.lua | |
parent | 579d59adef6ffdacb911419e0e63c599cd393530 (diff) | |
download | acf-alpine-baselayout-325fedbb9ea4ec691a1c420ba051bfc1f28b2a0d.tar.bz2 acf-alpine-baselayout-325fedbb9ea4ec691a1c420ba051bfc1f28b2a0d.tar.xz |
Added modules status page.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1571 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'modules-controller.lua')
-rw-r--r-- | modules-controller.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules-controller.lua b/modules-controller.lua index f1da11c..dc7735c 100644 --- a/modules-controller.lua +++ b/modules-controller.lua @@ -3,7 +3,11 @@ require("controllerfunctions") module (..., package.seeall) -default_action = "edit" +default_action = "status" + +status = function(self) + return self.model.read_modules() +end edit = function(self) return controllerfunctions.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved") |