summaryrefslogtreecommitdiffstats
path: root/interfaces-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-28 11:44:58 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-28 11:44:58 +0000
commit70b28419e50d7947ab1220517e5c3495aca73a93 (patch)
treeda6e5122d68befca005f27b4dff04af7911bf870 /interfaces-controller.lua
parentc2af45dbef7d1cd8036bb6f94e03649bd2e9b786 (diff)
downloadacf-alpine-baselayout-70b28419e50d7947ab1220517e5c3495aca73a93.tar.bz2
acf-alpine-baselayout-70b28419e50d7947ab1220517e5c3495aca73a93.tar.xz
Cleaned up 'read' tab so it only allows read (no edit actions).
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@856 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'interfaces-controller.lua')
-rw-r--r--interfaces-controller.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/interfaces-controller.lua b/interfaces-controller.lua
index ad4ba05..1a33bc2 100644
--- a/interfaces-controller.lua
+++ b/interfaces-controller.lua
@@ -39,6 +39,7 @@ end
read = function (self )
local iface = self.model.get_all_interfaces()
+ local status = self.model.get_status()
-- these actions are available for each interface
-- **FIXME** This is technically wrong. The controller should pass
-- the "script" "prefix" "controller" "action" as separate fields,
@@ -47,7 +48,7 @@ read = function (self )
local actions = { link = ENV["SCRIPT_NAME"] .. self.conf.prefix ..
self.conf.controller .. "/",
action = { "create", "read", "update", "delete" } }
- return ( { actions = actions, iface = iface } )
+ return ( { actions = actions, iface = iface, status=status } )
end