# HG changeset patch # User bsw # Date 1296926079 -3600 # Node ID 0607056cff72f39b74b1e98e246d7291b924d8d9 # Parent 30678d3935ab8b66cdebdc0f7a13046454dbd5e2 Display public last login in profile diff -r 30678d3935ab -r 0607056cff72 app/main/member/_profile.lua --- a/app/main/member/_profile.lua Tue Jan 25 13:47:33 2011 +0100 +++ b/app/main/member/_profile.lua Sat Feb 05 18:14:39 2011 +0100 @@ -102,13 +102,16 @@ end slot.put('
') + if member.statement and #member.statement > 0 then + ui.container{ + attr = { class = "member_statement wiki" }, + content = function() + slot.put(format.wiki_text(member.statement)) + end + } + end + + ui.field.text{ label = _"Last usage (updated daily)", value = format.date(member.last_login_public) or _"not yet" } + end } -if member.statement and #member.statement > 0 then - ui.container{ - attr = { class = "member_statement wiki" }, - content = function() - slot.put(format.wiki_text(member.statement)) - end - } -end