rev |
line source |
bsw@616
|
1 ui.title(_"About site")
|
bsw/jbe@0
|
2
|
bsw/jbe@1309
|
3 ui.grid{ content = function()
|
bsw/jbe@1309
|
4 ui.cell_full{ content = function()
|
bsw/jbe@19
|
5
|
bsw/jbe@1309
|
6 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
|
bsw/jbe@0
|
7
|
bsw/jbe@1309
|
8 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
|
bsw/jbe@1309
|
9 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided by:" }
|
bsw/jbe@1309
|
10 end }
|
bsw/jbe@1309
|
11 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
|
bsw/jbe@1309
|
12 slot.put(config.app_service_provider)
|
bsw/jbe@1309
|
13 end }
|
bsw/jbe@1309
|
14 end }
|
bsw/jbe@1309
|
15
|
bsw/jbe@1309
|
16 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
|
bsw/jbe@1309
|
17 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
|
bsw/jbe@1309
|
18 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided using the following software components:" }
|
bsw/jbe@1309
|
19 end }
|
bsw/jbe@1309
|
20 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
|
bsw/jbe@0
|
21
|
bsw/jbe@1309
|
22 local tmp = {
|
bsw/jbe@1309
|
23 {
|
bsw/jbe@1309
|
24 name = "LiquidFeedback Frontend",
|
bsw/jbe@1309
|
25 url = "http://www.public-software-group.org/liquid_feedback",
|
bsw/jbe@1309
|
26 version = config.app_version,
|
bsw/jbe@1309
|
27 license = "MIT/X11",
|
bsw/jbe@1309
|
28 license_url = "http://www.public-software-group.org/licenses"
|
bsw/jbe@1309
|
29 },
|
bsw/jbe@1309
|
30 {
|
bsw/jbe@1309
|
31 name = "LiquidFeedback Core",
|
bsw/jbe@1309
|
32 url = "http://www.public-software-group.org/liquid_feedback",
|
bsw/jbe@1309
|
33 version = db:query("SELECT * from liquid_feedback_version;")[1].string,
|
bsw/jbe@1309
|
34 license = "MIT/X11",
|
bsw/jbe@1309
|
35 license_url = "http://www.public-software-group.org/licenses"
|
bsw/jbe@1309
|
36 },
|
bsw/jbe@1309
|
37 {
|
bsw/jbe@1309
|
38 name = "WebMCP",
|
bsw/jbe@1309
|
39 url = "http://www.public-software-group.org/webmcp",
|
bsw/jbe@1309
|
40 version = WEBMCP_VERSION or _WEBMCP_VERSION,
|
bsw/jbe@1309
|
41 license = "MIT/X11",
|
bsw/jbe@1309
|
42 license_url = "http://www.public-software-group.org/licenses"
|
bsw/jbe@1309
|
43 }
|
bsw/jbe@1309
|
44 }
|
bsw/jbe@1309
|
45
|
bsw/jbe@1309
|
46 if _MOONBRIDGE_VERSION then
|
bsw/jbe@1309
|
47 tmp[#tmp+1] = {
|
bsw/jbe@1309
|
48 name = "Moonbridge",
|
bsw/jbe@1309
|
49 url = "http://www.public-software-group.org/moonbridge",
|
bsw/jbe@1309
|
50 version = _MOONBRIDGE_VERSION,
|
bsw/jbe@1309
|
51 license = "MIT/X11",
|
bsw/jbe@1309
|
52 license_url = "http://www.public-software-group.org/licenses"
|
bsw/jbe@1309
|
53 }
|
bsw/jbe@1309
|
54 end
|
bsw/jbe@1309
|
55
|
bsw/jbe@1309
|
56 tmp[#tmp+1] = {
|
bsw/jbe@1309
|
57 name = "Lua",
|
bsw/jbe@1309
|
58 url = "http://www.lua.org",
|
bsw/jbe@1309
|
59 version = _VERSION:gsub("Lua ", ""),
|
bsw/jbe@1309
|
60 license = "MIT/X11",
|
bsw/jbe@1309
|
61 license_url = "http://www.lua.org/license.html"
|
bsw/jbe@1309
|
62 }
|
bsw/jbe@1309
|
63
|
bsw/jbe@1309
|
64 tmp[#tmp+1] = {
|
bsw/jbe@1309
|
65 name = "PostgreSQL",
|
bsw/jbe@1309
|
66 url = "http://www.postgresql.org/",
|
bsw/jbe@1309
|
67 version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
|
bsw/jbe@1309
|
68 license = "PostgreSQL License",
|
bsw/jbe@1309
|
69 license_url = "http://www.postgresql.org/about/licence"
|
bsw/jbe@1309
|
70 }
|
bsw/jbe@0
|
71
|
bsw/jbe@1309
|
72 ui.list{
|
bsw/jbe@1309
|
73 records = tmp,
|
bsw/jbe@1309
|
74 columns = {
|
bsw/jbe@1309
|
75 {
|
bsw/jbe@1309
|
76 content = function(record)
|
bsw/jbe@1309
|
77 ui.link{
|
bsw/jbe@1309
|
78 content = record.name,
|
bsw/jbe@1309
|
79 external = record.url
|
bsw/jbe@1309
|
80 }
|
bsw/jbe@1309
|
81 end
|
bsw/jbe@1309
|
82 },
|
bsw/jbe@1309
|
83 {
|
bsw/jbe@1309
|
84 content = function(record) ui.field.text{ value = record.version } end
|
bsw/jbe@1309
|
85 },
|
bsw/jbe@1309
|
86 {
|
bsw/jbe@1309
|
87 content = function(record)
|
bsw/jbe@1309
|
88 ui.link{
|
bsw/jbe@1309
|
89 content = record.license,
|
bsw/jbe@1309
|
90 external = record.license_url
|
bsw/jbe@1309
|
91 }
|
bsw/jbe@1309
|
92 end
|
bsw/jbe@1309
|
93
|
bsw@1045
|
94 }
|
bsw/jbe@1309
|
95 }
|
bsw/jbe@1309
|
96 }
|
bsw@1045
|
97
|
bsw/jbe@1309
|
98 slot.put("<br />")
|
bsw/jbe@1309
|
99 ui.container{ content = "3rd party license information:" }
|
bsw/jbe@1309
|
100 slot.put('Some of the icons used in Liquid Feedback 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@1309
|
101 end }
|
bsw/jbe@1309
|
102 end }
|
bsw/jbe@1309
|
103 end }
|
bsw/jbe@1309
|
104 end }
|