liquid_feedback_frontend
view app/main/index/about.lua @ 1253:235a36a08da1
Fixed cases where no use_term_checkboxes are defined in config
| author | bsw | 
|---|---|
| date | Sun Apr 17 16:06:18 2016 +0200 (2016-04-17) | 
| parents | 8e36f08eaac6 | 
| children | d7890c4abe4d | 
 line source
     1 ui.title(_"About site")
     3 ui.section( function()
     5   ui.sectionHead( function()
     6     ui.heading{ level = 1, content = _"About site" }
     7   end )
     9   ui.sectionRow( function()
    11     ui.heading{ level = 3, content = _"This service is provided by:" }
    12     slot.put(config.app_service_provider)
    14   end )
    16   ui.sectionRow( function()
    18     ui.heading{ level = 3, content = _"This service is provided using the following software components:" }
    20     local tmp = {
    21       {
    22         name = "LiquidFeedback Frontend",
    23         url = "http://www.public-software-group.org/liquid_feedback",
    24         version = config.app_version,
    25         license = "MIT/X11",
    26         license_url = "http://www.public-software-group.org/licenses"
    27       },
    28       {
    29         name = "LiquidFeedback Core",
    30         url = "http://www.public-software-group.org/liquid_feedback",
    31         version = db:query("SELECT * from liquid_feedback_version;")[1].string,
    32         license = "MIT/X11",
    33         license_url = "http://www.public-software-group.org/licenses"
    34       },
    35       {
    36         name = "WebMCP",
    37         url = "http://www.public-software-group.org/webmcp",
    38         version = WEBMCP_VERSION or _WEBMCP_VERSION,
    39         license = "MIT/X11",
    40         license_url = "http://www.public-software-group.org/licenses"
    41       }
    42     }
    44     if _MOONBRIDGE_VERSION then
    45       tmp[#tmp+1] = {
    46         name = "Moonbridge",
    47         url = "http://www.public-software-group.org/moonbridge",
    48         version = _MOONBRIDGE_VERSION,
    49         license = "MIT/X11",
    50         license_url = "http://www.public-software-group.org/licenses"
    51       }
    52     end
    54     tmp[#tmp+1] = {
    55       name = "Lua",
    56       url = "http://www.lua.org",
    57       version = _VERSION:gsub("Lua ", ""),
    58       license = "MIT/X11",
    59       license_url = "http://www.lua.org/license.html"
    60     }
    62     tmp[#tmp+1] = {
    63       name = "PostgreSQL",
    64       url = "http://www.postgresql.org/",
    65       version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
    66       license = "BSD",
    67       license_url = "http://www.postgresql.org/about/licence"
    68     }
    70     ui.list{
    71       records = tmp,
    72       columns = {
    73         {
    74           content = function(record) 
    75             ui.link{
    76               content = record.name,
    77               external = record.url
    78             }
    79           end
    80         },
    81         {
    82           content = function(record) ui.field.text{ value = record.version } end
    83         },
    84         {
    85           content = function(record) 
    86             ui.link{
    87               content = record.license,
    88               external = record.license_url
    89             }
    90           end
    92         }
    93       }
    94     }
    96   end )
    98   ui.sectionRow( function()
    99     ui.heading{ level = 3, 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>')
   102   end )
   103 end )
