liquid_feedback_frontend

view env/ui/title.lua @ 1160:65904de98d5e

Fixed basepath for image delivery with WebMCP 1.2.6
author bsw
date Tue Mar 24 12:36:19 2015 +0100 (2015-03-24)
parents 701a5cf6b067
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