liquid_feedback_frontend
diff app/main/index/about.lua @ 0:3bfb2fcf7ab9
Version alpha1
author | bsw/jbe |
---|---|
date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents | |
children | 00d1004545f1 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/about.lua Wed Nov 18 12:00:00 2009 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +slot.put_into("title", encode.html(_"About LiquidFeedback")) 1.5 + 1.6 + 1.7 +slot.put("<br />") 1.8 +ui.field.text{ attr = { style = "font-weight: bold;" }, value = "Diensteanbieter:" } 1.9 +slot.put("<br />") 1.10 + 1.11 +slot.put(config.app_service_provider) 1.12 + 1.13 +slot.put("<br />") 1.14 +slot.put("<br />") 1.15 +slot.put("<br />") 1.16 + 1.17 + 1.18 +ui.field.text{ attr = { style = "font-weight: bold;" }, value = "Dieser Dienst ist mit folgender Software realisiert worden:" } 1.19 +slot.put("<br />") 1.20 + 1.21 +local tmp = { 1.22 + { 1.23 + name = "LiquidFeedback Frontend", 1.24 + url = "http://www.public-software-group.org/liquid_feedback", 1.25 + version = config.app_version, 1.26 + license = "MIT/X11", 1.27 + license_url = "http://www.public-software-group.org/licenses" 1.28 + }, 1.29 + { 1.30 + name = "LiquidFeedback Core", 1.31 + url = "http://www.public-software-group.org/liquid_feedback", 1.32 + version = db:query("SELECT * from liquid_feedback_version;")[1].string, 1.33 + license = "MIT/X11", 1.34 + license_url = "http://www.public-software-group.org/licenses" 1.35 + }, 1.36 + { 1.37 + name = "WebMCP", 1.38 + url = "http://www.public-software-group.org/webmcp", 1.39 + version = _WEBMCP_VERSION, 1.40 + license = "MIT/X11", 1.41 + license_url = "http://www.public-software-group.org/licenses" 1.42 + }, 1.43 + { 1.44 + name = "Lua", 1.45 + url = "http://www.lua.org", 1.46 + version = _VERSION:gsub("Lua ", ""), 1.47 + license = "MIT/X11", 1.48 + license_url = "http://www.lua.org/license.html" 1.49 + }, 1.50 + { 1.51 + name = "PostgreSQL", 1.52 + url = "http://www.postgresql.org/", 1.53 + version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""), 1.54 + license = "BSD", 1.55 + license_url = "http://www.postgresql.org/about/licence" 1.56 + }, 1.57 +} 1.58 + 1.59 +ui.list{ 1.60 + records = tmp, 1.61 + columns = { 1.62 + { 1.63 + label = _"Software", 1.64 + content = function(record) 1.65 + ui.link{ 1.66 + content = record.name, 1.67 + external = record.url 1.68 + } 1.69 + end 1.70 + }, 1.71 + { 1.72 + label = _"Version", 1.73 + content = function(record) ui.field.text{ value = record.version } end 1.74 + }, 1.75 + { 1.76 + label = _"License", 1.77 + content = function(record) 1.78 + ui.link{ 1.79 + content = record.license, 1.80 + external = record.license_url 1.81 + } 1.82 + end 1.83 + 1.84 + } 1.85 + } 1.86 +} 1.87 + 1.88 +slot.put("<br />") 1.89 +slot.put("<br />") 1.90 +slot.put("<br />") 1.91 + 1.92 +ui.field.text{ attr = { style = "font-weight: bold;" }, value = "3rd party license information:" } 1.93 +slot.put("<br />") 1.94 +slot.put('The icons used in Liquid Feedback (except national flags) are from <a href="http://www.famfamfam.com/lab/icons/silk/">Silk icon set 1.3</a> by Mark James. His work is licensed under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License.</a>') 1.95 +