liquid_feedback_frontend
view app/main/index/about.lua @ 1087:3a344182f7a4
Added hook for logging admin activities
| author | bsw | 
|---|---|
| date | Fri Aug 15 12:44:33 2014 +0200 (2014-08-15) | 
| parents | 701a5cf6b067 | 
| children | 2c5353077e26 | 
 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,
    39         license = "MIT/X11",
    40         license_url = "http://www.public-software-group.org/licenses"
    41       },
    42       {
    43         name = "Lua",
    44         url = "http://www.lua.org",
    45         version = _VERSION:gsub("Lua ", ""),
    46         license = "MIT/X11",
    47         license_url = "http://www.lua.org/license.html"
    48       },
    49       {
    50         name = "PostgreSQL",
    51         url = "http://www.postgresql.org/",
    52         version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
    53         license = "BSD",
    54         license_url = "http://www.postgresql.org/about/licence"
    55       },
    56     }
    58     ui.list{
    59       records = tmp,
    60       columns = {
    61         {
    62           content = function(record) 
    63             ui.link{
    64               content = record.name,
    65               external = record.url
    66             }
    67           end
    68         },
    69         {
    70           content = function(record) ui.field.text{ value = record.version } end
    71         },
    72         {
    73           content = function(record) 
    74             ui.link{
    75               content = record.license,
    76               external = record.license_url
    77             }
    78           end
    80         }
    81       }
    82     }
    84   end )
    86   ui.sectionRow( function()
    87     ui.heading{ level = 3, content = "3rd party license information:" }
    88     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>')
    90   end )
    91 end )
