liquid_feedback_frontend
diff app/main/index/initiator_invites.lua @ 558:18e8de7a2b6a
Show notifications on start page as ulli list with links instead of tabs
author | bsw |
---|---|
date | Tue Jun 19 21:20:46 2012 +0200 (2012-06-19) |
parents | |
children | 7dc5ab12bfe3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/initiator_invites.lua Tue Jun 19 21:20:46 2012 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 + 1.5 + 1.6 +local initiatives_selector = Initiator:selector_for_invites(app.session.member_id) 1.7 + 1.8 +if initiatives_selector:count() > 0 then 1.9 + ui.container{ 1.10 + attr = { style = "font-weight: bold;" }, 1.11 + content = _"Initiatives that invited you to become initiator:" 1.12 + } 1.13 + 1.14 + execute.view{ 1.15 + module = "initiative", 1.16 + view = "_list", 1.17 + params = { initiatives_selector = initiatives_selector } 1.18 + } 1.19 +else 1.20 + ui.field.text{ value = _"You are currently not invited to any initiative." } 1.21 +end 1.22 \ No newline at end of file