liquid_feedback_frontend
view env/ui/title.lua @ 1185:fef745f9e22f
Updated translation files
| author | bsw | 
|---|---|
| date | Thu Mar 26 21:01:05 2015 +0100 (2015-03-26) | 
| 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
