Code source wiki de MeetingParticipantsService
Modifié par Vincent Massol le 2011/08/12 21:26
Masquer les derniers auteurs
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{include document="MMCode.MeetingManagerMacros" /}} |
2 | {{velocity}} | ||
3 | {{html}} | ||
4 | #set($meetingDoc = $xwiki.getDocument($request.meeting)) | ||
5 | #set($ok = $meetingDoc.use("MMCode.MeetingClass")) | ||
6 | #set($status = $!meetingDoc.getValue('status')) | ||
7 | #set($isManager = false) | ||
8 | #isManager($meetingDoc, $isManager) | ||
9 | #set($participants = $meetingDoc.getObjects("MMCode.MeetingParticipantClass")) | ||
10 | #if(!$participants || $participants.size() == 0) | ||
11 | <div id="noparticipant">#warning("$msg.get('meetings.meeting.participants.noparticipant')")</div> | ||
12 | #end | ||
13 | <ul class="xlist participants left" id="participantsleft"> | ||
14 | #if($participants && $participants.size() > 0) | ||
15 | #foreach($p in $participants) | ||
16 | #participantitem($p $isManager $status) | ||
17 | #if($velocityCount == $mathtool.round($mathtool.div($participants.size(),2))|| $participants.size() <= 1) | ||
18 | </ul> | ||
19 | <ul class="xlist participants right" id="participantsright"> | ||
20 | #end | ||
21 | #end | ||
22 | #else | ||
23 | </ul> | ||
24 | <ul class="xlist participants right" id="participantsright"> | ||
25 | #end | ||
26 | </ul> | ||
27 | <div class="clearfloat"></div> | ||
28 | {{/html}} | ||
29 | {{/velocity}} |