liquid_feedback_frontend
view app/main/index/about.lua @ 1416:b06da8ab308d
Do not show identification twice in profile, made form labels distinctive
| author | bsw | 
|---|---|
| date | Thu Aug 30 10:42:48 2018 +0200 (2018-08-30) | 
| parents | 32cc544d5a5b | 
| children | dcbe505ddf24 | 
 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.*", ""),
    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         slot.put("<br />")
    99         ui.container{ content = "3rd party license information:" }
   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>')
   101       end }
   102     end }
   103   end }
   104 end }
