bsw@616: ui.title(_"About site")
bsw/jbe@0: 
bsw@943: if app.session.member_id and config.use_terms then
bsw@616:   ui.actions(function()
bsw/jbe@19:     ui.link{
bsw/jbe@19:       module = "index",
bsw/jbe@19:       view = "usage_terms",
bsw@616:       text = _"Terms of use"
bsw/jbe@19:     }
bsw/jbe@19:   end)
bsw/jbe@19: end
bsw/jbe@19: 
bsw/jbe@0: 
bsw/jbe@0: slot.put("
")
bsw@444: ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided by:" }
bsw/jbe@0: slot.put("
")
bsw/jbe@0: 
bsw/jbe@0: slot.put(config.app_service_provider)
bsw/jbe@0: 
bsw/jbe@0: slot.put("
")
bsw/jbe@0: slot.put("
")
bsw/jbe@0: slot.put("
")
bsw/jbe@0: 
bsw/jbe@0: 
bsw@444: ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided using the following software components:" }
bsw/jbe@0: slot.put("
")
bsw/jbe@0: 
bsw/jbe@0: local tmp = {
bsw/jbe@0:   {
bsw/jbe@0:     name = "LiquidFeedback Frontend",
bsw/jbe@0:     url = "http://www.public-software-group.org/liquid_feedback",
bsw/jbe@0:     version = config.app_version,
bsw/jbe@0:     license = "MIT/X11",
bsw/jbe@0:     license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0:   },
bsw/jbe@0:   {
bsw/jbe@0:     name = "LiquidFeedback Core",
bsw/jbe@0:     url = "http://www.public-software-group.org/liquid_feedback",
bsw/jbe@0:     version = db:query("SELECT * from liquid_feedback_version;")[1].string,
bsw/jbe@0:     license = "MIT/X11",
bsw/jbe@0:     license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0:   },
bsw/jbe@0:   {
bsw/jbe@0:     name = "WebMCP",
bsw/jbe@0:     url = "http://www.public-software-group.org/webmcp",
bsw/jbe@0:     version = _WEBMCP_VERSION,
bsw/jbe@0:     license = "MIT/X11",
bsw/jbe@0:     license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0:   },
bsw/jbe@0:   {
bsw/jbe@0:     name = "Lua",
bsw/jbe@0:     url = "http://www.lua.org",
bsw/jbe@0:     version = _VERSION:gsub("Lua ", ""),
bsw/jbe@0:     license = "MIT/X11",
bsw/jbe@0:     license_url = "http://www.lua.org/license.html"
bsw/jbe@0:   },
bsw/jbe@0:   {
bsw/jbe@0:     name = "PostgreSQL",
bsw/jbe@0:     url = "http://www.postgresql.org/",
bsw/jbe@0:     version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
bsw/jbe@0:     license = "BSD",
bsw/jbe@0:     license_url = "http://www.postgresql.org/about/licence"
bsw/jbe@0:   },
bsw/jbe@0: }
bsw/jbe@0: 
bsw/jbe@0: ui.list{
bsw/jbe@0:   records = tmp,
bsw/jbe@0:   columns = {
bsw/jbe@0:     {
bsw/jbe@0:       label = _"Software",
bsw/jbe@0:       content = function(record) 
bsw/jbe@0:         ui.link{
bsw/jbe@0:           content = record.name,
bsw/jbe@0:           external = record.url
bsw/jbe@0:         }
bsw/jbe@0:       end
bsw/jbe@0:     },
bsw/jbe@0:     {
bsw/jbe@0:       label = _"Version",
bsw/jbe@0:       content = function(record) ui.field.text{ value = record.version } end
bsw/jbe@0:     },
bsw/jbe@0:     {
bsw/jbe@0:       label = _"License",
bsw/jbe@0:       content = function(record) 
bsw/jbe@0:         ui.link{
bsw/jbe@0:           content = record.license,
bsw/jbe@0:           external = record.license_url
bsw/jbe@0:         }
bsw/jbe@0:       end
bsw/jbe@0: 
bsw/jbe@0:     }
bsw/jbe@0:   }
bsw/jbe@0: }
bsw/jbe@0: 
bsw/jbe@0: slot.put("
")
bsw/jbe@0: slot.put("
")
bsw/jbe@0: slot.put("
")
bsw/jbe@0: 
bsw/jbe@0: ui.field.text{ attr = { style = "font-weight: bold;" }, value = "3rd party license information:" }
bsw/jbe@0: slot.put("
")
bsw/jbe@0: slot.put('The icons used in Liquid Feedback (except national flags) are from Silk icon set 1.3 by Mark James. His work is licensed under a Creative Commons Attribution 2.5 License.')
bsw/jbe@0: