Changeset 6719

Show
Ignore:
Timestamp:
01/13/11 23:21:16 (2 years ago)
Author:
jow
Message:

modules/admin-full: make logout a toplevel item, remove overview menu

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/controller/admin/index.lua

    r5485 r6719  
    2323        root.index = true 
    2424    end 
    25      
    26     entry({"about"}, template("about")) 
    27      
     25 
    2826    local page   = node("admin") 
    29     page.target  = alias("admin", "index") 
     27    page.target  = alias("admin", "status") 
    3028    page.title   = i18n("Administration") 
    3129    page.order   = 10 
     
    3432    page.ucidata = true 
    3533    page.index = true 
    36      
    37     local page  = node("admin", "index") 
    38     page.target = template("admin_index/index") 
    39     page.title  = i18n("Overview") 
    40     page.order  = 10 
    41     page.index = true 
    4234 
    43     local page  = node("admin", "index", "luci") 
    44     page.target = cbi("admin_index/luci") 
    45     page.title  = i18n("User Interface") 
    46     page.order  = 10 
    47  
    48     entry({"admin", "index", "components"}, call("redir_components"), i18n("LuCI Components"), 20) 
    49     entry({"admin", "index", "logout"}, call("action_logout"), i18n("Logout"), 90) 
    50 end 
    51  
    52 function redir_components() 
    53     luci.http.redirect(luci.dispatcher.build_url("admin", "system", "packages")..'?update=1&query=luci') 
     35    entry({"admin", "logout"}, call("action_logout"), i18n("Logout"), 90) 
    5436end 
    5537