Inhaltsverzeichnis
keine Gliederung
var IsLate='false'; var BackColor = 'white';
var todaysdate = date.format(date.changetimezone(date.now, user.timezone), "yyyy/MM/dd");
if(wiki.pageexists(page.path ..'/Teilprojekte')) { if(#wiki.getpage(page.path ..'/Teilprojekte').subpages > 0)
{ <table width="100%" class="sortable"><tbody> <th> <b>'Benutzer'</b> </th>
<th> <b>'Projekt Name'</b> </th> <th> <b>'Detail'</b> </th>
<th> <b>'Start'</b> </th> <th> <b>'Deadline'</b> </th>
<th> <b>'Prio'</b> </th> <th> <b>'Status'</b> </th>
foreach(var p in wiki.getpage(page.path ..'/Teilprojekte').subpages)
{
var utext = xml.text(wiki.page(p.path),"//*[@class='username']");
var stext = xml.text(wiki.page(p.path),"//*[@class='summary']");
var sdtext = xml.text(wiki.page(p.path),"//*[@class='startdate']");
var edtext = xml.text(wiki.page(p.path),"//*[@class='enddate']");
var prtext = xml.text(wiki.page(p.path),"//*[@class='priority']");
var sttext = xml.text(wiki.page(p.path),"//*[@class='status']");
if(date.IsAfter(todaysdate,edtext))
{ let IsLate = 'true'; let BackColor = '#FF9999'; }
else { if(date.IsSameDay(todaysdate,edtext)) { let IsLate = 'false'; let BackColor = '#FFFF99'; }
else { let IsLate = 'false'; let BackColor = 'white'; } }
if(string.toupper(string.trim(sttext)) == 'C')
{ <tr BGCOLOR="Mediumspringgreen"> <td> <strike> utext; </strike> </td>
<td> <strike> web.link(p.uri, p.title); </strike> </td>
<td> <strike> stext; </strike> </td>
<td> <strike> sdtext; </strike> </td>
<td> <strike> edtext; </strike> </td>
<td> <strike> prtext; </strike> </td>
<td> <strike> sttext; </strike> </td>
</tr> } else { <tr BGCOLOR=(BackColor)> <td> utext;
</td> <td> web.link(p.uri, p.title);
</td> <td> stext; </td> <td> sdtext;
</td> <td> edtext; </td> <td> prtext;
</td> <td> sttext; </td> </tr> } } </tbody></table> }
else { 'There are currently no tasks assigned' } } else { 'There are currently no tasks assigned' }