annotate app/main/index/_initiator_invites.lua @ 178:bf799314a20f
Highlight the current member itself too
 | author | 
 bsw | 
 | date | 
 Sun Oct 31 20:12:20 2010 +0100 (2010-10-31) | 
 | parents | 
 4f39f0a0d5b5  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
bsw@57
 | 
     1 local initiatives_selector = param.get("initiatives_selector", "table")
 | 
| 
bsw@57
 | 
     2 
 | 
| 
bsw@57
 | 
     3 if initiatives_selector:count() > 0 then
 | 
| 
bsw@57
 | 
     4   ui.container{
 | 
| 
bsw@57
 | 
     5     attr = { style = "font-weight: bold;" },
 | 
| 
bsw@57
 | 
     6     content = _"Initiatives that invited you to become initiator:"
 | 
| 
bsw@57
 | 
     7   }
 | 
| 
bsw@57
 | 
     8 
 | 
| 
bsw@57
 | 
     9   execute.view{
 | 
| 
bsw@57
 | 
    10     module = "initiative",
 | 
| 
bsw@57
 | 
    11     view = "_list",
 | 
| 
bsw@57
 | 
    12     params = { initiatives_selector = initiatives_selector }
 | 
| 
bsw@57
 | 
    13   }
 | 
| 
bsw@57
 | 
    14 else
 | 
| 
bsw@57
 | 
    15   ui.field.text{ value = _"You are currently not invited to any initiative." }
 | 
| 
bsw@57
 | 
    16 end |