liquid_feedback_frontend

view app/main/index/about.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents 9e26d81775a1
children
line source
1 ui.title(_"About site")
3 ui.grid{ content = function()
4 ui.cell_full{ content = function()
6 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
8 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
9 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided by:" }
10 end }
11 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
12 slot.put(config.app_service_provider)
13 end }
14 end }
16 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
17 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
18 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"This service is provided using the following software components:" }
19 end }
20 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
22 local tmp = {
23 {
24 name = "LiquidFeedback Frontend",
25 url = "http://www.public-software-group.org/liquid_feedback",
26 version = config.app_version,
27 license = "MIT/X11",
28 license_url = "http://www.public-software-group.org/licenses"
29 },
30 {
31 name = "LiquidFeedback Core",
32 url = "http://www.public-software-group.org/liquid_feedback",
33 version = db:query("SELECT * from liquid_feedback_version;")[1].string,
34 license = "MIT/X11",
35 license_url = "http://www.public-software-group.org/licenses"
36 },
37 {
38 name = "WebMCP",
39 url = "http://www.public-software-group.org/webmcp",
40 version = WEBMCP_VERSION or _WEBMCP_VERSION,
41 license = "MIT/X11",
42 license_url = "http://www.public-software-group.org/licenses"
43 }
44 }
46 if _MOONBRIDGE_VERSION then
47 tmp[#tmp+1] = {
48 name = "Moonbridge",
49 url = "http://www.public-software-group.org/moonbridge",
50 version = _MOONBRIDGE_VERSION,
51 license = "MIT/X11",
52 license_url = "http://www.public-software-group.org/licenses"
53 }
54 end
56 tmp[#tmp+1] = {
57 name = "Lua",
58 url = "http://www.lua.org",
59 version = _VERSION:gsub("Lua ", ""),
60 license = "MIT/X11",
61 license_url = "http://www.lua.org/license.html"
62 }
64 tmp[#tmp+1] = {
65 name = "PostgreSQL",
66 url = "http://www.postgresql.org/",
67 version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""):gsub(" .*", ""),
68 license = "PostgreSQL License",
69 license_url = "http://www.postgresql.org/about/licence"
70 }
72 ui.list{
73 records = tmp,
74 columns = {
75 {
76 content = function(record)
77 ui.link{
78 content = record.name,
79 external = record.url
80 }
81 end
82 },
83 {
84 content = function(record) ui.field.text{ value = record.version } end
85 },
86 {
87 content = function(record)
88 ui.link{
89 content = record.license,
90 external = record.license_url
91 }
92 end
94 }
95 }
96 }
98 end }
99 end }
100 end }
101 end }

Impressum / About Us