Merge pull request #396 from fanthos/master
[project/luci.git] / applications / luci-app-ddns / luasrc / model / cbi / ddns / overview.lua
index 83b10e9..5b5925b 100644 (file)
@@ -26,10 +26,7 @@ bold_off = [[</strong>]]
 -- cbi-map definition -- #######################################################
 m = Map("ddns")
 
--- first need to close <a> from cbi map template our <a> closed by template
---m.title = [[</a><a href="javascript:alert(']] .. CTRL.show_versions() ..[[')">]] ..
---             translate("Dynamic DNS")
-m.title        = [[</a><a href="javascript:alert(']]
+m.title        = [[<a href="javascript:alert(']]
                .. translate("Version Information")
                .. [[\n\nluci-app-ddns]]
                .. [[\n\t]] .. translate("Version") .. [[:\t]] .. DDNS.ipkg_ver_installed("luci-app-ddns")
@@ -39,7 +36,7 @@ m.title       = [[</a><a href="javascript:alert(']]
                .. [[\n\t]] .. translate("Version") .. [[:\t]] .. DDNS.ipkg_ver_installed("ddns-scripts")
                .. [[\n\n]]
        .. [[')">]]
-       .. translate("Dynamic DNS")
+       .. translate("Dynamic DNS") .. [[</a>]]
 
 m.description = translate("Dynamic DNS allows that your router can be reached with " ..
                        "a fixed hostname while having a dynamically changing " ..
@@ -109,9 +106,13 @@ end
 -- TableSection definition -- ##################################################
 ts = m:section( TypedSection, "service",
        translate("Overview"),
-       translate("Below is a list of configured DDNS configurations and their current state." .. "<br />" ..
-               "If you want to send updates for IPv4 and IPv6 you need to define two separate Configurations " ..
-               "i.e. 'myddns_ipv4' and 'myddns_ipv6'") )
+       translate("Below is a list of configured DDNS configurations and their current state.") 
+       .. "<br />" 
+       .. translate("If you want to send updates for IPv4 and IPv6 you need to define two separate Configurations " 
+               .. "i.e. 'myddns_ipv4' and 'myddns_ipv6'") 
+       .. "<br />" 
+       .. [[<a href="]] .. DISP.build_url("admin", "services", "ddns", "global") .. [[">]]
+       .. translate("To change global settings click here") .. [[</a>]] )
 ts.sectionhead = translate("Configuration")
 ts.template = "cbi/tblsection"
 ts.addremove = true