liquid_feedback_frontend
annotate env/ui/raw_title.lua @ 1725:4a5a79a37db1
Render links in unit and area description, updated layout of unit and area box
author | bsw |
---|---|
date | Tue Sep 28 09:43:58 2021 +0200 (2021-09-28) |
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 |