liquid_feedback_frontend
changeset 205:0607056cff72
Display public last login in profile
author | bsw |
---|---|
date | Sat Feb 05 18:14:39 2011 +0100 (2011-02-05) |
parents | 30678d3935ab |
children | a9d286c873c3 |
files | app/main/member/_profile.lua |
line diff
1.1 --- a/app/main/member/_profile.lua Tue Jan 25 13:47:33 2011 +0100 1.2 +++ b/app/main/member/_profile.lua Sat Feb 05 18:14:39 2011 +0100 1.3 @@ -102,13 +102,16 @@ 1.4 end 1.5 slot.put('<br style="clear: right;" />') 1.6 1.7 + if member.statement and #member.statement > 0 then 1.8 + ui.container{ 1.9 + attr = { class = "member_statement wiki" }, 1.10 + content = function() 1.11 + slot.put(format.wiki_text(member.statement)) 1.12 + end 1.13 + } 1.14 + end 1.15 + 1.16 + ui.field.text{ label = _"Last usage (updated daily)", value = format.date(member.last_login_public) or _"not yet" } 1.17 + 1.18 end 1.19 } 1.20 -if member.statement and #member.statement > 0 then 1.21 - ui.container{ 1.22 - attr = { class = "member_statement wiki" }, 1.23 - content = function() 1.24 - slot.put(format.wiki_text(member.statement)) 1.25 - end 1.26 - } 1.27 -end