bsw@616: ui.title(_"About site") bsw/jbe@0: bsw/jbe@1309: ui.grid{ content = function() bsw/jbe@1309: ui.cell_full{ content = function() bsw/jbe@19: bsw/jbe@1309: ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function() bsw/jbe@0: bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() bsw/jbe@1309: ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided by:" } bsw/jbe@1309: end } bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: slot.put(config.app_service_provider) bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: bsw/jbe@1309: ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function() bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() bsw/jbe@1309: ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided using the following software components:" } bsw/jbe@1309: end } bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@0: bsw/jbe@1309: local tmp = { bsw/jbe@1309: { bsw/jbe@1309: name = "LiquidFeedback Frontend", bsw/jbe@1309: url = "http://www.public-software-group.org/liquid_feedback", bsw/jbe@1309: version = config.app_version, bsw/jbe@1309: license = "MIT/X11", bsw/jbe@1309: license_url = "http://www.public-software-group.org/licenses" bsw/jbe@1309: }, bsw/jbe@1309: { bsw/jbe@1309: name = "LiquidFeedback Core", bsw/jbe@1309: url = "http://www.public-software-group.org/liquid_feedback", bsw/jbe@1309: version = db:query("SELECT * from liquid_feedback_version;")[1].string, bsw/jbe@1309: license = "MIT/X11", bsw/jbe@1309: license_url = "http://www.public-software-group.org/licenses" bsw/jbe@1309: }, bsw/jbe@1309: { bsw/jbe@1309: name = "WebMCP", bsw/jbe@1309: url = "http://www.public-software-group.org/webmcp", bsw/jbe@1309: version = WEBMCP_VERSION or _WEBMCP_VERSION, bsw/jbe@1309: license = "MIT/X11", bsw/jbe@1309: license_url = "http://www.public-software-group.org/licenses" bsw/jbe@1309: } bsw/jbe@1309: } bsw/jbe@1309: bsw/jbe@1309: if _MOONBRIDGE_VERSION then bsw/jbe@1309: tmp[#tmp+1] = { bsw/jbe@1309: name = "Moonbridge", bsw/jbe@1309: url = "http://www.public-software-group.org/moonbridge", bsw/jbe@1309: version = _MOONBRIDGE_VERSION, bsw/jbe@1309: license = "MIT/X11", bsw/jbe@1309: license_url = "http://www.public-software-group.org/licenses" bsw/jbe@1309: } bsw/jbe@1309: end bsw/jbe@1309: bsw/jbe@1309: tmp[#tmp+1] = { bsw/jbe@1309: name = "Lua", bsw/jbe@1309: url = "http://www.lua.org", bsw/jbe@1309: version = _VERSION:gsub("Lua ", ""), bsw/jbe@1309: license = "MIT/X11", bsw/jbe@1309: license_url = "http://www.lua.org/license.html" bsw/jbe@1309: } bsw/jbe@1309: bsw/jbe@1309: tmp[#tmp+1] = { bsw/jbe@1309: name = "PostgreSQL", bsw/jbe@1309: url = "http://www.postgresql.org/", bsw/jbe@1309: version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""), bsw/jbe@1309: license = "PostgreSQL License", bsw/jbe@1309: license_url = "http://www.postgresql.org/about/licence" bsw/jbe@1309: } bsw/jbe@0: bsw/jbe@1309: ui.list{ bsw/jbe@1309: records = tmp, bsw/jbe@1309: columns = { bsw/jbe@1309: { bsw/jbe@1309: content = function(record) bsw/jbe@1309: ui.link{ bsw/jbe@1309: content = record.name, bsw/jbe@1309: external = record.url bsw/jbe@1309: } bsw/jbe@1309: end bsw/jbe@1309: }, bsw/jbe@1309: { bsw/jbe@1309: content = function(record) ui.field.text{ value = record.version } end bsw/jbe@1309: }, bsw/jbe@1309: { bsw/jbe@1309: content = function(record) bsw/jbe@1309: ui.link{ bsw/jbe@1309: content = record.license, bsw/jbe@1309: external = record.license_url bsw/jbe@1309: } bsw/jbe@1309: end bsw/jbe@1309: bsw@1045: } bsw/jbe@1309: } bsw/jbe@1309: } bsw@1045: bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end }