From 325fedbb9ea4ec691a1c420ba051bfc1f28b2a0d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 31 Oct 2008 12:40:41 +0000 Subject: Added modules status page. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1571 ab2d0c66-481e-0410-8bed-d214d4d58bed --- modules-controller.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules-controller.lua') 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") -- cgit v1.2.3