liquid_feedback_frontend

diff env/ui/twitter.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/env/ui/twitter.lua	Wed Nov 18 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +function ui.twitter(message)
     1.5 +  ui.link{
     1.6 +    attr = { target = "_blank" },
     1.7 +    content = function()
     1.8 +      ui.image{ static = "icons/16/user_comment.png" }
     1.9 +      slot.put(encode.html("tweet it"))
    1.10 +    end,
    1.11 +    external = "http://twitter.com/?status=" .. encode.url_part(message)
    1.12 +  }
    1.13 +end
    1.14 \ No newline at end of file

Impressum / About Us