Changeset 4040

Show
Ignore:
Timestamp:
01/16/09 13:35:25 (4 years ago)
Author:
Cyrus
Message:

Add shortcut "LuCI Components" to menu for easier adding / removing

Location:
luci/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/i18n/english/luasrc/i18n/admin-core.en.lua

    r4027 r4040  
    327327hostnames_hostname = 'Hostname' 
    328328hostnames_address = 'IP address' 
     329luci_components = "LuCI Components" 
  • luci/trunk/i18n/german/luasrc/i18n/admin-core.de.lua

    r3899 r4040  
    339339hostnames_hostname = 'Rechnername' 
    340340hostnames_address = 'IP-Adresse' 
     341luci_components = "LuCI Komponenten" 
  • luci/trunk/modules/admin-full/luasrc/controller/admin/index.lua

    r3908 r4040  
    4141    page.order  = 10 
    4242    page.index = true 
    43      
     43 
    4444    local page  = node("admin", "index", "luci") 
    4545    page.target = cbi("admin_index/luci") 
    4646    page.title  = i18n("a_i_ui", "Oberfläche") 
    47      
    48     entry({"admin", "index", "logout"}, call("action_logout"), i18n("logout")) 
     47    page.order  = 10 
     48 
     49    entry({"admin", "index", "components"}, call("redir_components"), i18n("luci_components", "LuCI Components"), 20) 
     50    entry({"admin", "index", "logout"}, call("action_logout"), i18n("logout"), 90) 
     51end 
     52 
     53function redir_components() 
     54    luci.http.redirect(luci.dispatcher.build_url("admin", "system", "packages")..'?update=1&query=luci') 
    4955end 
    5056