General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
WatchListManager
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
XWiki Space
»
Watchlist for
Wiki source code of
Watchlist for
Last modified by
Administrator
on 2008/02/27 07:25
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
### ### User's watchlist ### ### #if ($request.user) #set ($udoc = $xwiki.getDocument($request.user)) #if ($udoc.getObjects("XWiki.XWikiUsers").size() > 0) #set ($profileDoc = $udoc) #set ($isMyProfile = false) #else #xwikimessageboxstart($msg.get("watchlist") $msg.get("notauser")) #xwikimessageboxend() #end #else #set ($profileDoc = $crtUserDoc) #set ($isMyProfile = true) #end #if ($profileDoc) 1 $msg.get("watchlist.title", [$xwiki.getUserName($profileDoc.fullName, false)]) <br/> #if ($request.removedocument || $request.removespace) #set ($el = "") #if ($isMyProfile) #if ($request.removedocument) #set ($el = $request.removedocument) #set ($ret = $xwiki.watchlist.removeDocument($request.removedocument)) #else #set ($el = $request.removespace) #set ($ret = $xwiki.watchlist.removeSpace($request.removespace)) #end #else #if ($request.removedocument) #set ($el = $request.removedocument) #set ($ret = $xwiki.watchlist.removeDocumentForUser($profileDoc.fullName, $request.removedocument)) #else #set ($el = $request.removespace) #set ($ret = $xwiki.watchlist.removeSpaceForUser($profileDoc.fullName, $request.removespace)) #end #end #if ($ret == true) #info($msg.get("watchlist.delete.ok", [$el])) #else #error($msg.get("watchlist.delete.ko", [$el])) #end #elseif ($request.removespace) #end ## ## Info ## 1.1 $msg.get("watchlist.staytuned") ## ## Notifications ## <div class="padded"> <div style="width:48%;float:left;"> <h3>$msg.get("watchlist.staytuned.email")</h3> $msg.get("watchlist.staytuned.email.info")<br/> <br/> <form action="$profileDoc.getURL("save")" method="post"> $msg.get("watchlist.staytuned.email.frequency") : #set ($iVal = $profileDoc.display("interval", "view")) #set ($sel = "selected=\"selected\"") <select size="1" name="XWiki.WatchListClass_0_interval" id="XWiki.WatchListClass_0_interval"> <option label="never" value="0" #if ($iVal == "never") $sel #end>never</option> <option label="hourly" value="1" #if ($iVal == "hourly") $sel #end>hourly</option> <option label="daily" value="2" #if ($iVal == "daily") $sel #end>daily</option> <option label="weekly" value="3" #if ($iVal == "weekly") $sel #end>weekly</option> <option label="monthly" value="4" #if ($iVal == "monthly") $sel #end>monthly</option> </select> <input type="hidden" name="xredirect" id="xredirect" value="$doc.getURL("view")"> <input type="submit" value="$msg.get("watchlist.staytuned.email.frequency.save")" class="button"/> </div> </form> <div style="width:48%;float:right;"> <h3>$msg.get("watchlist.staytuned.rss")</h3> <a target="_blank" href="$profileDoc.getURL("view", "xpage=watchlistrss")" style="padding-left:16px;background:url($xwiki.getSkinFile("icons/black-rss-mini2.png")) left no-repeat;font-weight:bold;">$msg.get("watchlist.staytuned.rss.info")</a><br/> <br/> </div> <div style="clear:both;"></div> </div> ## ## Watched elements ## <div class="padded"> ## ## Pages ## 1.1 $msg.get("watchlist.elements") <h3>$msg.get("watchlist.pages")</h3> <table id="searchTable" class="grid sortable filterable doOddEven"> <tr class="sortHeader"> <th>$msg.get("watchlist.page")</th> <th style="width:140px" class="selectFilter">$msg.get("watchlist.space")</th> <th style="width:180px" class="unsortable noFilter">$msg.get("watchlist.actions")</th> </tr> #set ($wlist = $xwiki.watchlist.getWatchedDocuments()) #foreach($item in $wlist) #if ($item != "") <tr> #set ($idoc = $xwiki.getDocument($item)) #if (!$idoc.isNew()) <td><a href="$idoc.getURL()">$idoc.getDisplayTitle().replaceAll("[^\\.,:]+:", "")</a></td> <td>$idoc.space</td> <td><a href="$doc.getURL("view", "removedocument=${item}")" title="$msg.get("watchlist.delete.tooltip")">$msg.get("watchlist.delete")</a></td> #else #if ($isMyProfile) #set ($ret = $xwiki.watchlist.removeDocument($item)) #else #set ($ret = $xwiki.watchlist.removeDocumentForUser($profileDoc.fullName, $item)) #end #end </tr> #end #end </table> ## ## Spaces ## <h3>$msg.get("watchlist.spaces")</h3> <table id="searchTable" class="grid sortable doOddEven"> <tr class=""> <th>$msg.get("watchlist.space")</th> <th style="width:180px" class="unsortable noFilter">$msg.get("watchlist.actions")</th> </tr> #set ($wlist = $xwiki.watchlist.getWatchedSpaces()) #foreach($item in $wlist) #if ($item != "") <tr> <td>$item.replaceAll("[^\\.,:]+:", "")</td> <td><a href="$doc.getURL("view", "removespace=${item}")" title="$msg.get("watchlist.delete.tooltip")">$msg.get("watchlist.delete")</a></td> </tr> #end #end </table> </div> #end
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox