diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-03-28 11:44:58 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-03-28 11:44:58 +0000 |
commit | 70b28419e50d7947ab1220517e5c3495aca73a93 (patch) | |
tree | da6e5122d68befca005f27b4dff04af7911bf870 /interfaces-controller.lua | |
parent | c2af45dbef7d1cd8036bb6f94e03649bd2e9b786 (diff) | |
download | acf-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.lua | 3 |
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 |