liquid_feedback_frontend
view app/main/index/about.lua @ 814:b68880106e7e
Fixed public access to member home page
| author | bsw | 
|---|---|
| date | Fri Jul 06 14:01:28 2012 +0200 (2012-07-06) | 
| parents | 9641331e8bdf | 
| children | 56a741c590a0 | 
 line source
     1 ui.title(_"About site")
     3 if app.session.member_id then
     4   ui.actions(function()
     5     ui.link{
     6       module = "index",
     7       view = "usage_terms",
     8       text = _"Terms of use"
     9     }
    10   end)
    11 end
    14 slot.put("<br />")
    15 ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided by:" }
    16 slot.put("<br />")
    18 slot.put(config.app_service_provider)
    20 slot.put("<br />")
    21 slot.put("<br />")
    22 slot.put("<br />")
    25 ui.field.text{ attr = { style = "font-weight: bold;" }, value = _"This service is provided using the following software components:" }
    26 slot.put("<br />")
    28 local tmp = {
    29   {
    30     name = "LiquidFeedback Frontend",
    31     url = "http://www.public-software-group.org/liquid_feedback",
    32     version = config.app_version,
    33     license = "MIT/X11",
    34     license_url = "http://www.public-software-group.org/licenses"
    35   },
    36   {
    37     name = "LiquidFeedback Core",
    38     url = "http://www.public-software-group.org/liquid_feedback",
    39     version = db:query("SELECT * from liquid_feedback_version;")[1].string,
    40     license = "MIT/X11",
    41     license_url = "http://www.public-software-group.org/licenses"
    42   },
    43   {
    44     name = "WebMCP",
    45     url = "http://www.public-software-group.org/webmcp",
    46     version = _WEBMCP_VERSION,
    47     license = "MIT/X11",
    48     license_url = "http://www.public-software-group.org/licenses"
    49   },
    50   {
    51     name = "Lua",
    52     url = "http://www.lua.org",
    53     version = _VERSION:gsub("Lua ", ""),
    54     license = "MIT/X11",
    55     license_url = "http://www.lua.org/license.html"
    56   },
    57   {
    58     name = "PostgreSQL",
    59     url = "http://www.postgresql.org/",
    60     version = db:query("SELECT version();")[1].version:gsub("PostgreSQL ", ""):gsub("on.*", ""),
    61     license = "BSD",
    62     license_url = "http://www.postgresql.org/about/licence"
    63   },
    64 }
    66 ui.list{
    67   records = tmp,
    68   columns = {
    69     {
    70       label = _"Software",
    71       content = function(record) 
    72         ui.link{
    73           content = record.name,
    74           external = record.url
    75         }
    76       end
    77     },
    78     {
    79       label = _"Version",
    80       content = function(record) ui.field.text{ value = record.version } end
    81     },
    82     {
    83       label = _"License",
    84       content = function(record) 
    85         ui.link{
    86           content = record.license,
    87           external = record.license_url
    88         }
    89       end
    91     }
    92   }
    93 }
    95 slot.put("<br />")
    96 slot.put("<br />")
    97 slot.put("<br />")
    99 ui.field.text{ attr = { style = "font-weight: bold;" }, value = "3rd party license information:" }
   100 slot.put("<br />")
   101 slot.put('The icons used in Liquid Feedback (except national flags) 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>')
