liquid_feedback_frontend
diff env/ui/raw_title.lua @ 1045:701a5cf6b067
Imported LiquidFeedback Frontend 3.0 branch
| author | bsw |
|---|---|
| date | Thu Jul 10 01:19:48 2014 +0200 (2014-07-10) |
| parents | 1c70e9ea07ad |
| children |
line diff
1.1 --- a/env/ui/raw_title.lua Thu Jul 10 01:02:43 2014 +0200 1.2 +++ b/env/ui/raw_title.lua Thu Jul 10 01:19:48 2014 +0200 1.3 @@ -1,7 +1,20 @@ 1.4 -function ui.raw_title(content) 1.5 - slot.select("head", function() 1.6 - ui.container{ attr = { class = "title" }, content = function() 1.7 - slot.put(content) 1.8 - end } 1.9 - end) 1.10 -end 1.11 \ No newline at end of file 1.12 +function ui.raw_title ( content ) 1.13 + 1.14 + slot.select ( "title", function () 1.15 + 1.16 + -- home link 1.17 + ui.link { 1.18 + module = "index", view = "index", 1.19 + attr = { class = "home" }, 1.20 + content = function () 1.21 + ui.image { static = "icons/16/house.png" } 1.22 + end 1.23 + } 1.24 + 1.25 + slot.put ( " " ) 1.26 + 1.27 + slot.put ( content ) 1.28 + 1.29 + end ) 1.30 + 1.31 +end