liquid_feedback_frontend
annotate env/ui/raw_title.lua @ 1118:8b9d8eb905e4
Added tag v3.0.3 for changeset 93b84dee5577
| author | bsw |
|---|---|
| date | Mon Nov 10 19:06:38 2014 +0100 (2014-11-10) |
| parents | 701a5cf6b067 |
| children |
| rev | line source |
|---|---|
| bsw@1045 | 1 function ui.raw_title ( content ) |
| bsw@1045 | 2 |
| bsw@1045 | 3 slot.select ( "title", function () |
| bsw@1045 | 4 |
| bsw@1045 | 5 -- home link |
| bsw@1045 | 6 ui.link { |
| bsw@1045 | 7 module = "index", view = "index", |
| bsw@1045 | 8 attr = { class = "home" }, |
| bsw@1045 | 9 content = function () |
| bsw@1045 | 10 ui.image { static = "icons/16/house.png" } |
| bsw@1045 | 11 end |
| bsw@1045 | 12 } |
| bsw@1045 | 13 |
| bsw@1045 | 14 slot.put ( " " ) |
| bsw@1045 | 15 |
| bsw@1045 | 16 slot.put ( content ) |
| bsw@1045 | 17 |
| bsw@1045 | 18 end ) |
| bsw@1045 | 19 |
| bsw@1045 | 20 end |