liquid_feedback_frontend

view env/ui/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 418b590fa9ed
children 32cc544d5a5b
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.image {
11 attr = { class = "icon24", alt = title },
12 static = "icons/48/home.png"
13 }
14 end
15 }
17 if content then
18 ui.tag { attr = { class = "spacer" }, content = function()
19 slot.put ( " ยป " )
20 end }
21 ui.tag { tag = "span", content = content }
22 else
23 ui.tag { attr = { class = "spacer" }, content = function()
24 slot.put ( " " )
25 end }
26 ui.tag { tag = "span", content = _"Home" }
27 end
29 end )
31 end

Impressum / About Us