liquid_feedback_frontend

annotate app/main/index/about.lua @ 943:56a741c590a0

Show link to terms of use only when terms of use available
author bsw
date Mon Nov 05 17:40:27 2012 +0100 (2012-11-05)
parents 9641331e8bdf
children 701a5cf6b067
rev   line source
bsw@616 1 ui.title(_"About site")
bsw/jbe@0 2
bsw@943 3 if app.session.member_id and config.use_terms then
bsw@616 4 ui.actions(function()
bsw/jbe@19 5 ui.link{
bsw/jbe@19 6 module = "index",
bsw/jbe@19 7 view = "usage_terms",
bsw@616 8 text = _"Terms of use"
bsw/jbe@19 9 }
bsw/jbe@19 10 end)
bsw/jbe@19 11 end
bsw/jbe@19 12
bsw/jbe@0 13
bsw/jbe@0 14 slot.put("<br />")
bsw@444 15 ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided by:" }
bsw/jbe@0 16 slot.put("<br />")
bsw/jbe@0 17
bsw/jbe@0 18 slot.put(config.app_service_provider)
bsw/jbe@0 19
bsw/jbe@0 20 slot.put("<br />")
bsw/jbe@0 21 slot.put("<br />")
bsw/jbe@0 22 slot.put("<br />")
bsw/jbe@0 23
bsw/jbe@0 24
bsw@444 25 ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided using the following software components:" }
bsw/jbe@0 26 slot.put("<br />")
bsw/jbe@0 27
bsw/jbe@0 28 local tmp = {
bsw/jbe@0 29 {
bsw/jbe@0 30 name = "LiquidFeedback Frontend",
bsw/jbe@0 31 url = "http://www.public-software-group.org/liquid_feedback",
bsw/jbe@0 32 version = config.app_version,
bsw/jbe@0 33 license = "MIT/X11",
bsw/jbe@0 34 license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0 35 },
bsw/jbe@0 36 {
bsw/jbe@0 37 name = "LiquidFeedback Core",
bsw/jbe@0 38 url = "http://www.public-software-group.org/liquid_feedback",
bsw/jbe@0 39 version = db:query("SELECT * from liquid_feedback_version;")[1].string,
bsw/jbe@0 40 license = "MIT/X11",
bsw/jbe@0 41 license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0 42 },
bsw/jbe@0 43 {
bsw/jbe@0 44 name = "WebMCP",
bsw/jbe@0 45 url = "http://www.public-software-group.org/webmcp",
bsw/jbe@0 46 version = _WEBMCP_VERSION,
bsw/jbe@0 47 license = "MIT/X11",
bsw/jbe@0 48 license_url = "http://www.public-software-group.org/licenses"
bsw/jbe@0 49 },
bsw/jbe@0 50 {
bsw/jbe@0 51 name = "Lua",
bsw/jbe@0 52 url = "http://www.lua.org",
bsw/jbe@0 53 version = _VERSION:gsub("Lua ", ""),
bsw/jbe@0 54 license = "MIT/X11",
bsw/jbe@0 55 license_url = "http://www.lua.org/license.html"
bsw/jbe@0 56 },
bsw/jbe@0 57 {
bsw/jbe@0 58 name = "PostgreSQL",
bsw/jbe@0 59 url = "http://www.postgresql.org/",
bsw/jbe@0 60 version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
bsw/jbe@0 61 license = "BSD",
bsw/jbe@0 62 license_url = "http://www.postgresql.org/about/licence"
bsw/jbe@0 63 },
bsw/jbe@0 64 }
bsw/jbe@0 65
bsw/jbe@0 66 ui.list{
bsw/jbe@0 67 records = tmp,
bsw/jbe@0 68 columns = {
bsw/jbe@0 69 {
bsw/jbe@0 70 label = _"Software",
bsw/jbe@0 71 content = function(record)
bsw/jbe@0 72 ui.link{
bsw/jbe@0 73 content = record.name,
bsw/jbe@0 74 external = record.url
bsw/jbe@0 75 }
bsw/jbe@0 76 end
bsw/jbe@0 77 },
bsw/jbe@0 78 {
bsw/jbe@0 79 label = _"Version",
bsw/jbe@0 80 content = function(record) ui.field.text{ value = record.version } end
bsw/jbe@0 81 },
bsw/jbe@0 82 {
bsw/jbe@0 83 label = _"License",
bsw/jbe@0 84 content = function(record)
bsw/jbe@0 85 ui.link{
bsw/jbe@0 86 content = record.license,
bsw/jbe@0 87 external = record.license_url
bsw/jbe@0 88 }
bsw/jbe@0 89 end
bsw/jbe@0 90
bsw/jbe@0 91 }
bsw/jbe@0 92 }
bsw/jbe@0 93 }
bsw/jbe@0 94
bsw/jbe@0 95 slot.put("<br />")
bsw/jbe@0 96 slot.put("<br />")
bsw/jbe@0 97 slot.put("<br />")
bsw/jbe@0 98
bsw/jbe@0 99 ui.field.text{ attr = { style = "font-weight: bold;" }, value = "3rd party license information:" }
bsw/jbe@0 100 slot.put("<br />")
bsw/jbe@0 101 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>')
bsw/jbe@0 102

Impressum / About Us