liquid_feedback_frontend
view env/ui/title.lua @ 1510:2b4b243f625e
French translation contributed
author | Institut de Recherche et d'Innovation |
---|---|
date | Tue Aug 18 19:54:45 2020 +0200 (2020-08-18) |
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