liquid_feedback_frontend
view env/ui/title.lua @ 1586:1c21a43ef121
Fixed unevenly distributes white space around initiative list
| author | bsw | 
|---|---|
| date | Tue Jan 26 19:15:35 2021 +0100 (2021-01-26) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 function ui.title ( content )
     3   slot.select ( "title", function ()
     5     -- home link
     6     ui.link {
     7       module = "index", view = "index",
     8       attr = { class = "home", title = _"Home" },
     9       content = function ()
    10         ui.tag{ tag = "i", attr = { class = "material-icons" }, content = "home" }
    11       end
    12     }
    14     if content then
    15       ui.tag { attr = { class = "spacer" }, content = function()
    16         slot.put ( " ยป " )
    17       end }
    18       ui.tag { content = content }
    19     else
    20       ui.tag { attr = { class = "spacer" }, content = function()
    21         slot.put ( " " )
    22       end }
    23       ui.tag { content = _"Home" }
    24     end
    26   end )
    28 end
